You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Thomas Andraschko (JIRA)" <ji...@apache.org> on 2014/02/02 22:14:10 UTC
[jira] [Resolved] (DELTASPIKE-516)
ClientWindowHelper.handleInitialRedirect mutilates URL, pathInfo is omitted
[ https://issues.apache.org/jira/browse/DELTASPIKE-516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Andraschko resolved DELTASPIKE-516.
------------------------------------------
Resolution: Fixed
Fix Version/s: 0.6
> ClientWindowHelper.handleInitialRedirect mutilates URL, pathInfo is omitted
> ---------------------------------------------------------------------------
>
> Key: DELTASPIKE-516
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-516
> Project: DeltaSpike
> Issue Type: Bug
> Components: JSF-Module
> Affects Versions: 0.6
> Reporter: Thomas Frühbeck
> Assignee: Thomas Andraschko
> Labels: faces, path, pathinfo, redirect, window
> Fix For: 0.6
>
>
> On LAZY redirect, ClientWindowHelper rewrites the URL:
> public static void handleInitialRedirect(FacesContext facesContext, String newWindowId)
> {
> // store the new windowId as context attribute to prevent infinite loops
> <snip>
> String url = externalContext.getRequestScheme()
> + "://" + externalContext.getRequestServerName()
> + ":" + externalContext.getRequestServerPort()
> + externalContext.getRequestContextPath()
> + externalContext.getRequestServletPath();
> Here it seems, that externalContext.getPathInfo() is missing, the rewritten URL is mutilated and the redirected request fails
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)