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

Test case for SLING-6271

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Done
    • None
    • Security 1.1.4
    • Extensions
    • None

    Description

      Attached is a proposed unit test for the issue reported in SLING-6271.

      In the case of setContentType being called before and after requestDispatcher.forward() each with the same content type SLING-6271 reported that the response ended up with no content type header.

      The key aspect of forward() was that it calls reset() which clears all headers on the response.

      The attached patch adds test cases for two scenarios around this: in case a content disposition header is also needed, or in case a content disposition header is not needed.

      Attachments

        1. sling6271test.patch
          6 kB
          Rob Ryan

        Activity

          People

            asanso Antonio Sanso
            rryan@adobe.com Rob Ryan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: