Re: Question about URLValidator#isValid

2016-09-10 Thread Paulo Roberto Massa Cereda
'ello, I believe it's case for using a RegexValidator in order to accept localhost and passing it to the URLValidator constructor. Cheerio! Paulo Em 10-09-2016 11:42, Philippe Mouawad escreveu: Hello, Is this URL valid: http://localhost/IqGo6EM1JEVZ+MSRJqUSo@qhjVMSFBTs/37/0/1 For me it

Re: Question about URLValidator#isValid

2016-09-10 Thread Paulo Roberto Massa Cereda
'ello, The lack of a domain suffix in the first URL (that is, only 'localhost') is the reason the first URL is failing. :) Best, Paulo Em 10-09-2016 18:16, Philippe Mouawad escreveu: But it appears it's not the reason for which false is return: -

Re: Question about URLValidator#isValid

2016-09-10 Thread Philippe Mouawad
But it appears it's not the reason for which false is return: - System.out.println(urlValidator.isValid(" http://localhost/IqGo6EM1JEVZ+MSRJqUSo@qhjVMSFBTs/37/0/1;)); - System.out.println(urlValidator.isValid(" http://www.apache.com/IqGo6EM1JEVZ+MSRJqUSo@qhjVMSFBTs/37/0/1;));

Re: Question about URLValidator#isValid

2016-09-10 Thread Philippe Mouawad
Thank you On Sat, Sep 10, 2016 at 5:30 PM, William Speirs wrote: > The @ symbol is reserved. > > On Sep 10, 2016 10:42 AM, "Philippe Mouawad" wrote: > > > Hello, > > Is this URL valid: > > http://localhost/IqGo6EM1JEVZ+MSRJqUSo@qhjVMSFBTs/37/0/1 > > > >

Re: Question about URLValidator#isValid

2016-09-10 Thread William Speirs
The @ symbol is reserved. On Sep 10, 2016 10:42 AM, "Philippe Mouawad" wrote: > Hello, > Is this URL valid: > http://localhost/IqGo6EM1JEVZ+MSRJqUSo@qhjVMSFBTs/37/0/1 > > For me it is, but > org.apache.commons.validator.routines.UrlValidator#isValid return false > for > it.

Question about URLValidator#isValid

2016-09-10 Thread Philippe Mouawad
Hello, Is this URL valid: http://localhost/IqGo6EM1JEVZ+MSRJqUSo@qhjVMSFBTs/37/0/1 For me it is, but org.apache.commons.validator.routines.UrlValidator#isValid return false for it. My reference is: https://tools.ietf.org/html/rfc3986#section-2.2 Regards Philippe M.