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

Moved node is deleted if @Delete parameter points to its name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • Servlets Post 2.3.26
    • None
    • Servlets
    • None

    Description

      If a file is moved to a new location with the @MoveFrom parameter and the request contains the @Delete parameter at the same time, the file is dropped and never saved to the new location.

      Step to reproduce the issue:

      1. Create a node of type nt:file at the location /content/file
      2. Execute the following curl command:
        curl -u admin:admin -F './test/title=Hello World' -F './test/file@MoveFrom=/content/file' -F './test@Delete=true' http://localhost:4502/content

      Observed behaviour:
      The file is not saved at the new location at /content/test/file and it is not available anymore at the old location /content/file

      Expected:
      The file is saved at the new location /content/test/file as long as other properties are saved when the request contains the delete operation (like the title property in the example above).

      Attachments

        1. patch.diff
          1 kB
          Burkhard Pauli

        Activity

          People

            bdelacretaz Bertrand Delacretaz
            bupauli Burkhard Pauli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: