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

Do not render directory on included request

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Servlets Get 2.0.4
    • Servlets Get 2.0.8
    • Servlets
    • None

    Description

      As of SLING-723, the StreamRendererServlet contains functionality to render an index (directory listing) or send 403/FORBIDDEN if rendering the index is disabled by configuration.

      This works like this:

      • If request has trailing slash -> render directory or send 403
      • Else If resource adapts to a stream -> spool the stream
      • Else redirect to the same URL with a trailing slash

      This all perfectly works if this mechanism handles the request directly. If this mechanism is triggered in an included resource, where a directly addressed resource includes another resource, which is then handled by the StreamRendererServlet, this should probably be different:

      • If the resource adapts to a stream -> spool the stream
      • Else do nothing (but log this situation and add an entry in the RequestProgressTracker

      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: