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

Sling Post Servlet: Do not hide original exception in AbstractPostResponse.setError

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Servlets Post 2.3.14
    • Servlets Post 2.3.16
    • Servlets
    • None

    Description

      Currently AbstractPostResponse.setError (https://github.com/apache/sling/blob/4df9ab2d6592422889c71fa13afd453a10a5a626/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractPostResponse.java#L221) always ignores the given Throwable and just creates a new generic SlingException.

      To e.g. allow SlingPostProcessor to throw meaningful exceptions which appear in the response body, the given exception should not be wrapped but just the given throwable's message text should be given out in the document.

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: