You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Burkhard Pauli (JIRA)" <ji...@apache.org> on 2018/12/21 10:48:00 UTC

[jira] [Updated] (SLING-8186) Moved nt:file node disappears when @Delte parameter is used in same request

     [ https://issues.apache.org/jira/browse/SLING-8186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Burkhard Pauli updated SLING-8186:
----------------------------------
    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:
 # Create a node of type nt:file at the location {{/content/file}}
 # 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 is not available anymore at the old location {{/content/file}}

Expected:
 The file is moved to the new location at {{/content/test/file}} as other properties are saved when the request contains the delete operation - like the title property in the example above.

  was:
If a file is moved to 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:
 # Create a node of type nt:file at the location {{/content/file}}
 # 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 is not available anymore at the old location {{/content/file}}

Expected:
The file is moved to the new location at {{/content/test/file}} as other properties are saved when the request contains the delete operation - like the title property in the example above.


> Moved nt:file node disappears when @Delte parameter is used in same request
> ---------------------------------------------------------------------------
>
>                 Key: SLING-8186
>                 URL: https://issues.apache.org/jira/browse/SLING-8186
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets
>    Affects Versions: Servlets Post 2.3.26
>            Reporter: Burkhard Pauli
>            Priority: Major
>
> 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:
>  # Create a node of type nt:file at the location {{/content/file}}
>  # 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 is not available anymore at the old location {{/content/file}}
> Expected:
>  The file is moved to the new location at {{/content/test/file}} as other properties are saved when the request contains the delete operation - like the title property in the example above.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)