[Cosmo-dev] Re: [Bug 5886] cannot sign up for account with single quote character in username

Brian Moseley bcm at osafoundation.org
Thu May 11 13:53:57 PDT 2006


On 5/11/06, Todd Agulnick <todd at agulnick.com> wrote:

>  I think it would be helpful to be crystal clear about what's legal for
> usernames.

yes, sorry, i wasn't precise when i said "any utf-8".

> As I understand what you're saying, a username can be any
> character that can be represented in UTF-8 excluding:
>
>  - the forward slash
>  - whitespace characters
>  - control characters
>  - null
>
>  Is this correct?

yes.

>  If I understand you correctly, the implication is that we would want to
> roll this fix into the production service before we allow Foxmarks users to
> create usernames with a broader character set (i.e., any character that
> might need to be escaped for JCR). Is this correct?

at this point, if a user tries to use one of the characters illegal in
jcr names, he'll get an error (not a validation error, a server
error). so you won't get into a state where he creates an account but
then can't use it.

foxmarks will need to incorporate this fix in order to allow existing
users with this problem to access their data and to allow new users to
include the characters at issue.

>  Sounds like an opportunity to refactor to support re-use. But that's just
> my outsider perspective.

you're right, of course, but reality isn't always that easy or simple
:) i'll probably spend the time to refactor the next time we require a
migration.


More information about the cosmo-dev mailing list