Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-722

NullPotinerException trying to authenticate when requesting the SlingMainServlet directly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Engine 2.0.2
    • Fix Version/s: Engine 2.0.4
    • Component/s: Engine
    • Labels:
      None

      Description

      Consider the SlingServlet being registered in a servlet container as /somepath and it being called as http://host/somepath, the HttpServletRequest.getPathInfo() will return null and thus the SlingAuthenticator.getAuthenticationInfo method will throw a NullPointerException.

      In case of only addressing the Sling servlet, the SlingAuthenticator should assume the / to select the authenticator.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmeschbe Felix Meschberger
                Reporter:
                fmeschbe Felix Meschberger
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: