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

Potential infinite loop in the :copy operation of the POST servlet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • Servlets Post 2.0.2, Servlets Post 2.0.4, Servlets Post 2.1.0
    • None
    • Servlets
    • None

    Description

      The following puts Sling into a loop that will only end when an OutOfMemoryError is caused by a too large transient space:

      $ curl -u admin:admin -F x=y http://localhost:8080/foo
      $ curl -u admin:admin -F :operation=copy -F :dest=/foo/bar http://localhost:8080/foo

      The solution would be to either fail early with such recursive copies or to use the JCR Workspace.copy() operation or a similar mechanism that copies only previously persisted content, so that the recursion within the transient space is avoided.

      Attachments

        Issue Links

          Activity

            People

              bdelacretaz Bertrand Delacretaz
              jukkaz Jukka Zitting
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: