dev@jersey.java.net

Re: URI //customers// bug

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 14 Aug 2007 20:42:19 +0200

Hi Ayub,

[Moving to the dev list]

Is the problem that the browser is performing an automatic second
request in response to the redirect *but* it is not reusing the HTTP
accept that was used in the first request ? A browser bug perhaps ?

Jakub is working on a fix so we can switch on/off redirection for URI
normalization and path canonicalization.

This is making me think we should switch off redirection by default...

Paul.

Ayub Khan wrote:
> Hi Paul,
>
> See the attachment for the issue I was talking about. You need a AJAX
> code to test this. From browser there is no problem.
>
> Issue is if I use the uri "/A/restbean//customers//" instead of
> "/A/restbean/customers/", there is a 307 Redirect happening, that causes
> the Client (AJAX) code to fail. I could fix the client code, this is not
> a problem. I think the issue is client developers will spend
> some amount of time figuring out why a simple XHR call failed.
>
> Attachments:
>
> - 307Redirect.PNG, 307Redirect_Header.PNG show the Request and Header on
> the server.
> - result_307Redirect.PNG, result_307Redirect_Header.PNG show the Request
> and Header on the server after the redirect.
>
> Thanks
> Ayub
>
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_jsr311.dev.java.net
For additional commands, e-mail: dev-help_at_jsr311.dev.java.net