On Thu, 2007-10-25 at 14:54 +0200, Johannes Koch wrote:
> Ortwin Glück schrieb:
> > Johannes Koch wrote:
> >> is a URI where the path component does not start with a '/'. And so I get
> >>
> >> java.net.URISyntaxException: Relative path in absolute URI:
> >> http://www.example.orgfoo.bar
> > 
> > Yes, it's currently broken, and your suggested fix would break it even more.
> 
> Yes. You suggest
> 
> > Instead
> > the resulting URI must be resolved against the request URI
> 
> But currently it is not. Instead a new URI is created from the target 
> URI scheme, host, port and the location header value.
> 

Johannes,

You are right about current logic in the DefaultRedirectHandler being
broken. But I also have to agree with Odi about the proposed solution
not actually improving things that much. Please go ahead and open a JIRA
for this issue. We will also happily accept a patch ;) You just have to
tweak your code a little and take the original request URI into
consideration when resolving the redirect URI.

Cheers

Oleg 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to