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

Provide error handling for POST operations

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Servlets Post 2.3.0
    • Servlets
    • None

    Description

      The error handling mechanism described here [0] doesn't seem to apply also to POST operations.
      If an error occurs while posting a resource to repository (e.g. avax.jcr.nodetype.ConstraintViolationException: no matching property definition found for) the HtmlResponse.html template is rendered.

      This can also represent a security issue since information as REFERRER/technology stack are shown.
      IMHO this page should be at least configurable (if the mechanism in [0] doesn't suite here).

      [0] http://sling.apache.org/site/errorhandling.html

      Attachments

        1. post_error_handling
          2 kB
          Antonio Sanso
        2. SLING-2156-patch.txt
          3 kB
          Antonio Sanso
        3. SLING-2156-patch.txt
          2 kB
          Antonio Sanso
        4. SLING-2156-patch.txt
          2 kB
          Antonio Sanso
        5. SLING-2156-patch.txt
          3 kB
          Antonio Sanso

        Issue Links

          Activity

            People

              asanso Antonio Sanso
              asanso Antonio Sanso
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: