[ 
https://issues.apache.org/jira/browse/CXF-3024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sergey Beryozkin resolved CXF-3024.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.11
                   2.3
         Assignee: Sergey Beryozkin

this is fixed now, thanks.
Workaround for 2.2.10 :

@Context UriInfo ui;


....

return Response.status(307).header("Location", 
ui.getBaseUriBuilder().path("/some/path").queryParam("css", 
"http://...";).build()).build()

cheers, Sergey

> Response.temporaryRedirect() cannot handle query parameter correctly
> --------------------------------------------------------------------
>
>                 Key: CXF-3024
>                 URL: https://issues.apache.org/jira/browse/CXF-3024
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.2.10
>            Reporter: Andreas Sahlbach
>            Assignee: Sergey Beryozkin
>             Fix For: 2.3, 2.2.11
>
>
> Consider the following code that wants to redirect to a non-absolute URL 
> containing query parameters:
> {code:java}
> String cssLink1="http://yui.yahooapis.com/3.2.0/build/cssreset/reset-min.css";
> return 
> Response.temporaryRedirect(UriBuilder.fromPath("whatever/redirection").queryParam("css1",cssLink1).build()).build();
> {code}
> The created Location header of the response will contain the following value:
> {{http://myserver/app/services/public/whatever/redirection%3Fcss1=http:/yui.yahooapis.com/3.2.0/build/cssreset/reset-min.css}}
> IMHO this should be:
> {{http://myserver/app/services/public/whatever/redirection?css1=http:/yui.yahooapis.com/3.2.0/build/cssreset/reset-min.css}}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to