github.com/cs3org/reva/v2@v2.27.7/changelog/1.11.0_2021-08-03/trash-bin-operations-ocis.md (about)

     1  Bugfix: Trash Bin in oCIS Storage Operations
     2  
     3  Support for restoring a target folder nested deep inside the trash bin in oCIS storage. The use case is:
     4  
     5  ```console
     6  curl 'https://localhost:9200/remote.php/dav/trash-bin/einstein/f1/f2' -X MOVE -H 'Destination: https://localhost:9200/remote.php/dav/files/einstein/destination'
     7  ```
     8  
     9  The previous command creates the `destination` folder and moves the contents of `/trash-bin/einstein/f1/f2` onto it.
    10  
    11  Retro-compatibility in the response code with ownCloud 10. Restoring a collection to a non-existent nested target is not supported and MUST return `409`. The use case is:
    12  
    13  ```console
    14  curl 'https://localhost:9200/remote.php/dav/trash-bin/einstein/f1/f2' -X MOVE -H 'Destination: https://localhost:9200/remote.php/dav/files/einstein/this/does/not/exist'
    15  ``` 
    16  
    17  The previous command used to return `404` instead of the expected `409` by the clients.
    18  
    19  https://github.com/cs3org/reva/pull/1926