I actually have similar questions on URLValidator and its associated test cases:
1. it allows the ftps scheme but Java doesn't support it by default… Do we provide
support for it using an external lib?
2. it forbids 127.0.0.01 which is a valid IP address in my book… Why?
3. is it meant that it doesn't allow relative URLs?
Thanks in advance.
On Feb 2, 2012, at 3:22 PM, Boleslaw Dawidowicz wrote:
On Feb 2, 2012, at 12:09 PM, Christophe Laprun wrote:
>
> On Feb 2, 2012, at 9:11 AM, Trong Tran wrote:
>
>> I just created documentation JIRA issue for username validation
https://issues.jboss.org/browse/GTNPORTAL-2345. All current rules are described in
Description part
>
> Thank you. However, I would like to know the reason behind these rules (as I could
infer them reading the code for UsernameValidator). My original question was more about
why these rules are in place as opposed to what are they. In particular, are these rules
needed by other GateIn and/or eXo components? Can we remove all these rules without
issues?
Trong thanks for the start however Chris is right - we need to provide some context also.
I understand that it can be hard to track all requirements but if we provide users
configuration capabilities they need some clear info if those are hard constraints or not.
Basically we need to agree if putting less restrictive validation can cause issues on
JCR/DB level or not. What do you think?
Bolek
Cordialement / Best,
Chris
==
Principal Software Engineer / JBoss Enterprise Middleware Red Hat, Inc.
Follow GateIn:
http://blog.gatein.org /
http://twitter.com/gatein
Follow me:
http://metacosm.info/metacosm /
http://twitter.com/metacosm