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

Missing WWW-Authenticate header on OPTIONS request with trunk servlets.resolver bundle

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • JCR Webdav 2.1.2
    • Servlets
    • None

    Description

      Running the launchpad/builder standalone jar from the trunk correctly returns an WWW-Authenticate header on an OPTIONS request with no credentials:

      $ curl -D - -X OPTIONS http://localhost:8080/
      HTTP/1.1 401 Unauthorized
      WWW-Authenticate: Basic realm="Jackrabbit Webdav Server"
      Content-Type: ...

      But if I replace the org.apache.sling.servlets.resolver 2.1.0 bundle that's in there with the latest snapshot (revision 1302994) that header is missing: it gets removed by the response.reset() call in DefaultErrorHandlerServlet.sendIntro(...), which makes it impossible to connect with WebDAV.

      That response.reset() call was not present in 2.1.0.

      Attachments

        Activity

          People

            bdelacretaz Bertrand Delacretaz
            bdelacretaz Bertrand Delacretaz
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: