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/[email protected]/msg28252.html
--
This message was sent by Atlassian JIRA
(v6.2#6252)