You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Antonio Sanso (JIRA)" <ji...@apache.org> on 2014/04/04 15:51:16 UTC
[jira] [Created] (SLING-3492) failed authnetication when Sling is
deployed in an app server
Antonio Sanso created SLING-3492:
------------------------------------
Summary: failed authnetication when Sling is deployed in an app server
Key: SLING-3492
URL: https://issues.apache.org/jira/browse/SLING-3492
Project: Sling
Issue Type: Bug
Components: Authentication
Reporter: Antonio Sanso
As reported in [0] SLING-2998 reverted a fix introduced in SLING-722.
The problem with the current code is
{code}
private String getPath(HttpServletRequest request) {
final StringBuilder sb = new StringBuilder();
if (request.getServletPath() != null) {
sb.append(request.getServletPath());
}
if (request.getPathInfo() != null) {
sb.append(request.getPathInfo());
}
return sb.toString();
}
{code}
that if I deploy sling in a servlet container (e.g. web logic ) using
contextPath ‘test' and requesting http://localhost:4502/test getPath() returns
an empty string and this leads to getAnonymousCredentials();
[0] http://www.mail-archive.com/dev@sling.apache.org/msg28252.html
--
This message was sent by Atlassian JIRA
(v6.2#6252)