You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Christian Stettler (Created) (JIRA)" <ji...@apache.org> on 2012/02/02 14:11:53 UTC

[jira] [Created] (CXF-4082) Wrong realm calculation for relying party applications deployed in root context

Wrong realm calculation for relying party applications deployed in root context
-------------------------------------------------------------------------------

                 Key: CXF-4082
                 URL: https://issues.apache.org/jira/browse/CXF-4082
             Project: CXF
          Issue Type: Bug
          Components: Services
         Environment: Tomcat 7.0.16
Fediz Tomcat Plugin 0.6-SNAPSHOT
            Reporter: Christian Stettler


If the relying party application is deployed in the root context of Tomcat, the FederationAuthenticator is not able to correctly calculate the realm value used for the "wtrealm" request parameter of the IDP.

{code}
String requestUrl = request.getRequestURL().toString();
int ctxIn = requestUrl.indexOf(contextPath);
String realm = requestUrl.substring(0, ctxIn + contextPath.length() + 1);
{code}

The realm is wrongly calculated as "h":

https://localhost:9443/idp/?wa=wsignin1.0&wreply=http%3A%2F%2Flocalhost%3A8080%2Fsecure%2Ftest.html&wtrealm=h

Deploying the application in another context and adjusting the realm definition in RPClaims.xml helps.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CXF-4082) Wrong realm calculation for relying party applications deployed in root context

Posted by "Oliver Wulff (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Wulff reassigned CXF-4082:
---------------------------------

    Assignee: Oliver Wulff
    
> Wrong realm calculation for relying party applications deployed in root context
> -------------------------------------------------------------------------------
>
>                 Key: CXF-4082
>                 URL: https://issues.apache.org/jira/browse/CXF-4082
>             Project: CXF
>          Issue Type: Bug
>          Components: Services
>         Environment: Tomcat 7.0.16
> Fediz Tomcat Plugin 0.6-SNAPSHOT
>            Reporter: Christian Stettler
>            Assignee: Oliver Wulff
>              Labels: IDP, Plugin, Tomcat
>
> If the relying party application is deployed in the root context of Tomcat, the FederationAuthenticator is not able to correctly calculate the realm value used for the "wtrealm" request parameter of the IDP.
> {code}
> String requestUrl = request.getRequestURL().toString();
> int ctxIn = requestUrl.indexOf(contextPath);
> String realm = requestUrl.substring(0, ctxIn + contextPath.length() + 1);
> {code}
> The realm is wrongly calculated as "h":
> https://localhost:9443/idp/?wa=wsignin1.0&wreply=http%3A%2F%2Flocalhost%3A8080%2Fsecure%2Ftest.html&wtrealm=h
> Deploying the application in another context and adjusting the realm definition in RPClaims.xml helps.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CXF-4082) Wrong realm calculation for relying party applications deployed in root context

Posted by "Oliver Wulff (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Wulff resolved CXF-4082.
-------------------------------

    Resolution: Fixed
    
> Wrong realm calculation for relying party applications deployed in root context
> -------------------------------------------------------------------------------
>
>                 Key: CXF-4082
>                 URL: https://issues.apache.org/jira/browse/CXF-4082
>             Project: CXF
>          Issue Type: Bug
>          Components: Services
>         Environment: Tomcat 7.0.16
> Fediz Tomcat Plugin 0.6-SNAPSHOT
>            Reporter: Christian Stettler
>            Assignee: Oliver Wulff
>              Labels: IDP, Plugin, Tomcat
>
> If the relying party application is deployed in the root context of Tomcat, the FederationAuthenticator is not able to correctly calculate the realm value used for the "wtrealm" request parameter of the IDP.
> {code}
> String requestUrl = request.getRequestURL().toString();
> int ctxIn = requestUrl.indexOf(contextPath);
> String realm = requestUrl.substring(0, ctxIn + contextPath.length() + 1);
> {code}
> The realm is wrongly calculated as "h":
> https://localhost:9443/idp/?wa=wsignin1.0&wreply=http%3A%2F%2Flocalhost%3A8080%2Fsecure%2Ftest.html&wtrealm=h
> Deploying the application in another context and adjusting the realm definition in RPClaims.xml helps.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira