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

NullPotinerException trying to authenticate when requesting the SlingMainServlet directly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Engine 2.0.2
    • Engine 2.0.4
    • Engine
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: