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

Background servlets uses the user's session to create job node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Background Servlets 1.0.6
    • None
    • Extensions
    • None

    Description

      When you call a background servlet, it will create a node by default in /var/bg/jobs. This is done using the same session of the user that made the request.

      This causes problems since it is possible that the user does not have write access to that directory. If this is the case the request will fail due to an AccessDeniedException.

      Also, the node doesn't seem exist by default, so you have to manually create it to apply any permissions to it.

      Instead the job node should be created with a dedicated user.

      I reproduced this with org.apache.sling.bgservlets 1.0.6

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              santiagozky Santiago GarcĂ­a Pimentel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: