Hi,

Am Montag, den 14.04.2008, 14:19 +0200 schrieb Carsten Ziegeler:
> Hi,
> 
> I'm currently working on SLING-354 [1]
> 
> My idea is to rename the parameter as discussed to "nameHint" with the 
> semantics that this hint is used as specified if it is a valid node 
> name. Invalid characters will be replaced with a "_".

In this respect, I would also treat blanks as "invalid" as it tends to
create issues with URLs.

> If a node with the name already exists, a number is prefixed to the node 
> name (like it is currently done).

I assume you mean "suffix", that is _append_ the number, right ?

> Now, there is already a filtering for node names if the special 
> properties like jcr:title, name etc. are used. But this filtering is 
> much more strikter: it always creates a lower case name and replaces 
> valid characters (like spaces etc.) as well.
> 
> I think we should have the same behaviour when it comes to filtering and 
> think we should only replace invalid characters.
> 
> WDYT?

+1

In fact, I would be rather strict in accepting "valid" characters,
probably reducing the accepted set to just [ a..z, A..Z, 0..9 ]. Not
sure about the case mangling. But if we apply it in one place (when
mangling a title), we should also apply it in the other place (when
mangling the "nameHint". Whatever we do, it should be consistent.

Regards
Felix

Reply via email to