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

DefaultGetServlet does not set response content type when rendering an index file for a directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • Servlets Get 2.0.8
    • Servlets Get 2.1.0
    • Servlets
    • None

    Description

      When generating the response to a directory (trailing slash in the request URL), the default GET servlet checks whether one of a configured list of index files exists. If such a file exists it is returned. This mechanism, though, fails to set the response content type because the index file is included in the request and included request handling does not (always) set the response content type.

      This is particulary the case if the file to include is a file to be spooled back by the Default GET servlet itself.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: