dev@jersey.java.net

Re: URI //customers// bug

From: Jakub Podlesak <Jakub.Podlesak_at_Sun.COM>
Date: Wed, 15 Aug 2007 11:06:02 +0200

Hi Ayub,

On Tue, Aug 14, 2007 at 08:42:19PM +0200, Paul Sandoz wrote:
> 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.

The fix should be available at the beggining of the next week.
I will keep you posted.

Thanks,

~Jakub

>
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: dev-help_at_jersey.dev.java.net
>