commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Mouawad <philippe.moua...@gmail.com>
Subject Re: Question about URLValidator#isValid
Date Sat, 10 Sep 2016 21:16:27 GMT
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"));


outputs:

   - false
   - true

Regards



On Sat, Sep 10, 2016 at 11:03 PM, Philippe Mouawad <
philippe.mouawad@gmail.com> wrote:

> Thank you
>
> On Sat, Sep 10, 2016 at 5:30 PM, William Speirs <wspeirs@apache.org>
> wrote:
>
>> The @ symbol is reserved.
>>
>> On Sep 10, 2016 10:42 AM, "Philippe Mouawad" <pmouawad@apache.org> 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.
>> >
>> > My reference is:
>> > https://tools.ietf.org/html/rfc3986#section-2.2
>> >
>> >
>> > Regards
>> > Philippe M.
>> >
>>
>
>
>
> --
> Cordialement.
> Philippe Mouawad.
>
>
>


-- 
Cordialement.
Philippe Mouawad.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message