[
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