[ https://issues.apache.org/jira/browse/SLING-3492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oliver Lietz resolved SLING-3492. --------------------------------- Resolution: Fixed r1584705 > failed authentication 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 > Assignee: Oliver Lietz > Fix For: Auth Core 1.1.8 > > > As reported in [0] SLING-2998 reverted a fix introduced in SLING-722. > The problem with the current code is > {noformat} > 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(); > } > {noformat} > 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)