[xwiki-devs] [Discussion] Filtering document names at creation time?
Vincent Massol
vincent at massol.net
Wed Jun 25 10:51:48 CEST 2008
Hi,
I'd like to discuss about filtering document names when they are
created, i.e directly in the XWikiDocument.setFullName()/setName()/
setSpace()/setDatabase() methods.
We could filter out (i.e. remove) the following characters:
* pipe: |
* greater than: >
* brackets: [ and ]
* apostrophe: '
* quote: "
* colon: :
* dot: .
* forward slash: /
Any other?
The reason for ., :, |, >, [ and ] is because these are reserved
characters in wiki link format.
Another option is to allow some escaping for these chars when writing
a wiki link.
Last we need to think about documents in the DB and which already have
these chars. Should we write a migrator to filter these chars too?
Probably.
WDYT?
Some related jira issues:
* http://jira.xwiki.org/jira/browse/XWIKI-1443
* http://jira.xwiki.org/jira/browse/XWIKI-2501
Thanks
-Vincent
More information about the devs
mailing list