hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <be...@u.washington.edu>
Subject Re: Bug in HTTPUrl?
Date Sat, 01 May 2004 22:31:07 GMT
I think I've found a suitable solution to this problem.  Please take a 
look at bug #28728 
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28728>.

Mike

On Apr 28, 2004, at 2:47 AM, Ortwin Glück wrote:

>
>
> Roland Weber wrote:
>
>> Hi Ortwin,
>> the quote was not meant as an estimation.
>> Just a hint why that part of the URI spec
>> might be less well known as others.
>
> Ok :-)
>
>> BTW, the section also defines the valid characters:
>>       userinfo      = *( unreserved | escaped |
>>                          ";" | ":" | "&" | "=" | "+" | "$" | "," )
>
> unreserved    = alphanum | mark
>       mark          = "-" | "_" | "." | "!" | "~" | "*" | "'" |
>                       "(" | ")"
> escaped       = "%" hex hex
> alphanum      = (is just [a-zA-Z0-9])
>
> So, actually this seems not to be a bug in the URI classes directly. 
> The hash # character should have been escaped with %23 in the first 
> place. All we could do is check for invalid characters and throw an 
> exception here. I'm just not sure if this check is actually worth it. 
> Probably not. It makes parsing overly complicated. We should just well 
> formatted input for URI and HttpURL classes.
>
> Gustav, can you live with this answer?
>
> Ortwin Glück
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> commons-httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: 
> commons-httpclient-dev-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Mime
View raw message