[bitweaver-core] Content titles with leading or trailing spaces in their names
[bitweaver-core] Content titles with leading or trailing spaces in their names
Posted: Sun 23 of Mar, 2008 (23:19 UTC),Bitweaver allows creation of wiki pages (and possibly other content) with
leading and/or trailing spaces in their names.
I'm not sure if this is an oversight or the way its intended to work.
Depending on how your database does lookups, the processing of these names
may vary.
Also the tikiwiki format parser doesn't allow you to recognize links of the
form:
((page name ))
where where are spaces after the name, but you can create these pages using
the "page create" menu choice, and
possibly other ways.
I discovered this problem when writing a utility to rebuild the wiki
backlinks table and
pages with tailing spaces caused bitweaver to crash due to a duplicate key
error.
We could:
silently trim leading/trailing spaces before creating the pages
or reject creation of page names with leading/trailing spaces
or leave as it currently is
I'm inclined to do the first choice, automatically trim page names before
creating them.
Might also be a good idea to check in the verify functions to verify the
names are in correct format.
Thoughts?
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
bitweaver-core mailing list
https://lists.sourceforge.net/lists/listinfo/bitweaver-core
leading and/or trailing spaces in their names.
I'm not sure if this is an oversight or the way its intended to work.
Depending on how your database does lookups, the processing of these names
may vary.
Also the tikiwiki format parser doesn't allow you to recognize links of the
form:
((page name ))
where where are spaces after the name, but you can create these pages using
the "page create" menu choice, and
possibly other ways.
I discovered this problem when writing a utility to rebuild the wiki
backlinks table and
pages with tailing spaces caused bitweaver to crash due to a duplicate key
error.
We could:
silently trim leading/trailing spaces before creating the pages
or reject creation of page names with leading/trailing spaces
or leave as it currently is
I'm inclined to do the first choice, automatically trim page names before
creating them.
Might also be a good idea to check in the verify functions to verify the
names are in correct format.
Thoughts?
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
bitweaver-core mailing list
https://lists.sourceforge.net/lists/listinfo/bitweaver-core
Christian Fowler
Re: [bitweaver-core] Content titles with leading or trailing spaces in their names
Posted: Mon 24 of Mar, 2008 (03:23 UTC),> silently trim leading/trailing spaces before creating the pages
> or reject creation of page names with leading/trailing spaces
> or leave as it currently is
>
> I'm inclined to do the first choice, automatically trim page names before
> creating them.
Yes, I agree. All input type=text fields should be trimmed.
> Might also be a good idea to check in the verify functions to verify the
> names are in correct format.
What is a correct format name?
[ \ / Christian Fowler | spider AT viovio.com
[ >X< http://www.viovio.com/spider | http://www.bitweaver.org/spider
[ / \ ~~~ always plan in the millions ~~~
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
bitweaver-core mailing list
https://lists.sourceforge.net/lists/listinfo/bitweaver-core
Re: [bitweaver-core] Content titles with leading or trailing spaces in their names
Posted: Mon 24 of Mar, 2008 (04:26 UTC),>> silently trim leading/trailing spaces before creating the pages
>> or reject creation of page names with leading/trailing spaces
>> or leave as it currently is
>>
>> I'm inclined to do the first choice, automatically trim page names before
>> creating them.
>
> Yes, I agree. All input type=text fields should be trimmed.
>
>> Might also be a good idea to check in the verify functions to verify the
>> names are in correct format.
>
> What is a correct format name?
Sorry, I meant the input values in the correct format.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
bitweaver-core mailing list
https://lists.sourceforge.net/lists/listinfo/bitweaver-core
>> or reject creation of page names with leading/trailing spaces
>> or leave as it currently is
>>
>> I'm inclined to do the first choice, automatically trim page names before
>> creating them.
>
> Yes, I agree. All input type=text fields should be trimmed.
>
>> Might also be a good idea to check in the verify functions to verify the
>> names are in correct format.
>
> What is a correct format name?
Sorry, I meant the input values in the correct format.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
bitweaver-core mailing list
https://lists.sourceforge.net/lists/listinfo/bitweaver-core
Re: [bitweaver-core] Content titles with leading or trailing spaces in their names
Posted: Mon 24 of Mar, 2008 (07:22 UTC),Christian Fowler wrote:
>> silently trim leading/trailing spaces before creating the pages
>> or reject creation of page names with leading/trailing spaces
>> or leave as it currently is
>>
>> I'm inclined to do the first choice, automatically trim page names before
>> creating them.
>
> Yes, I agree. All input type=text fields should be trimmed.
Seconded
I was looking to see if it could be applied at the ADOdb level anyway, the
contact and nlpg packages I have working here need that timing everywhere ;)
--
Lester Caine - G8HFL
-----------------------------
Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://home.lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
bitweaver-core mailing list
https://lists.sourceforge.net/lists/listinfo/bitweaver-core
>> silently trim leading/trailing spaces before creating the pages
>> or reject creation of page names with leading/trailing spaces
>> or leave as it currently is
>>
>> I'm inclined to do the first choice, automatically trim page names before
>> creating them.
>
> Yes, I agree. All input type=text fields should be trimmed.
Seconded
I was looking to see if it could be applied at the ADOdb level anyway, the
contact and nlpg packages I have working here need that timing everywhere ;)
--
Lester Caine - G8HFL
-----------------------------
Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://home.lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
bitweaver-core mailing list
https://lists.sourceforge.net/lists/listinfo/bitweaver-core