myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Resolved] (MYFACES-3726) root context induces wrong urls
Date Tue, 28 May 2013 04:24:20 GMT

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

Leonardo Uribe resolved MYFACES-3726.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1.12
                   2.0.18
         Assignee: Leonardo Uribe
    
> root context induces wrong urls
> -------------------------------
>
>                 Key: MYFACES-3726
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3726
>             Project: MyFaces Core
>          Issue Type: Bug
>            Reporter: Romain Manni-Bucau
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.18, 2.1.12
>
>
> When the webapp context is root ("/") its name is still appended before the urls (i didn't
check all cases) so we end up with urls like //index.xhtml which makes the navigation not
working anymore.
> I'm sure it happens at least in org.apache.myfaces.shared.application.DefaultViewHandlerSupport#calculateActionURL
where
>        builder.append(contextPath);
> should be replaced by
>        if (!"/".equals(contextPath)) {
>             builder.append(contextPath);
>         }
> We saw this issue in tomee (here a sample to reproduce it https://github.com/maxtorzito/tomee-codi)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message