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 Frühbeck (JIRA)" <ji...@apache.org> on 2014/02/02 21:06:10 UTC

[jira] [Created] (DELTASPIKE-516) ClientWindowHelper.handleInitialRedirect mutilates URL, pathInfo is omitted

Thomas Frühbeck created DELTASPIKE-516:
------------------------------------------

             Summary: 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



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)