Yes, definitely the fragment has no business in a RedirectHandler. It only makes sense maybe to provide it at the final destination, so the caller can check where he has ended up.

Johannes Koch wrote:
Johannes Koch schrieb:
Ortwin Glück schrieb:
Yep, what about the fragment component?

No, fragments are not handled by HTTP Servers. They are only handeled by clients (browser).

Then to make it consistent, I will also change

URI absoluteRequestURI = new URI(
        target.getSchemeName(),
        null,
        target.getHostName(),
        target.getPort(),
        requestURI.getPath(),
        requestURI.getQuery(),
        requestURI.getFragment());

to
...
        requestURI.getQuery(),
        null);


See attached patch.


------------------------------------------------------------------------

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

--
[web]  http://www.odi.ch/
[blog] http://www.odi.ch/weblog/
[pgp]  key 0x81CF3416
       finger print F2B1 B21F F056 D53E 5D79 A5AF 02BE 70F5 81CF 3416

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

Reply via email to