You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interesting, web has correct destination with prefix (1)https://host.docker.internal:9200/remote.php/dav/spaces/27e7e0f6-cd60-4ad8-9684-223e0eb7c39f%24c0f63a6e-db39-4156-979b-cbf69af40473/new%20(1)
we need a get second folder a (1)
restore old New folder from trash using "keep both"
Actual: 2 New folder folders, both are empty. No way to restore file which was inside
Expected: user has two folders: - new empty New folder and restored folder with file New folder (1)
I wrote a test for this case and was surprised because it passed.
Scenario Outline: restore deleted file when folder with same name exists in a different case
Given using <dav-path-version> DAV path
And user "Alice" has created folder "new"
And user "Alice" has uploaded file with content "content" to "new/test.txt"
And user "Alice" has deleted folder "new"
And user "Alice" has created folder "new"
And user "Alice" has uploaded file with content "new content" to "new/new-file.txt"
When user "Alice" restores the folder with original path "/new" to "/new (1)" using the trashbin API
Then the HTTP status code should be "201"
And as "Alice" folder "new (1)" should exist
And as "Alice" file "new (1)/test.txt" should exist
And as "Alice" folder "new" should exist
And as "Alice" file "new/new-file.txt" should exist
Examples:
| dav-path-version |
| spaces |
| new |
diving deeper, I found that propfind of personal space has 2 new folders
I start to open folder new and see that it's one fileId
Actual: Propfind request of personal space returns wrong <oc:name>new</oc:name> and <d:href>/remote.php/dav/spaces/12482e33-5541-4d2c-898f-b1fd6f3bc70e$51f8ea54-5746-46d7-83bf-34502c922205/new/</d:href> so we see on web 2 folders new. oc:fileid is correct
Expected: Propfind request of personal space returns correct response with correct name. then we can see on web two folders new and new (1)
Update: I have a solution that seems to be working as it should, but before I can give the all-clear, I'll have to write unit tests! Cant guarantee to have it done by today, expect the solution tomorrow!
Activity
v-scharf commentedon Sep 19, 2025
interesting, web has correct destination with prefix
(1)https://host.docker.internal:9200/remote.php/dav/spaces/27e7e0f6-cd60-4ad8-9684-223e0eb7c39f%24c0f63a6e-db39-4156-979b-cbf69af40473/new%20(1)we need a get second folder
a (1)v-scharf commentedon Oct 10, 2025
tested on demo instance https://demo.opencloud.eu/
OpenCloud 3.5.0 OpenCloud Web UI 4.0.0Steps:
New folderwith fileNew folderNew folderNew folderfrom trash using "keep both"Actual: 2
New folderfolders, both are empty. No way to restore file which was insideExpected: user has two folders: - new empty
New folderand restored folder with fileNew folder (1)[-]Conflict with restored Folder[/-][+]Data loss from a restored folder[/+]fschade commentedon Oct 13, 2025
bug is posix fs related, decomposed (
export STORAGE_USERS_DRIVER=decomposed) works as designed!posix fs has another critical error case (which is similar):
Steps
Result
FILE C is gone
fschade commentedon Oct 14, 2025
❓
Steps
Result
Folder A is empty, File B is still in the trash-bin
Q
is it expected that the folder A is empty? In decomposed fs the behavior is the same!
rhafer commentedon Oct 14, 2025
Since
File Bwas already in the trash before you trashedFolder AI think that is the expected behavior.v-scharf commentedon Oct 14, 2025
I wrote a test for this case and was surprised because it passed.
diving deeper, I found that propfind of personal space has 2
newfoldersI start to open folder new and see that it's one fileId
https://localhost:9200/files/spaces/personal/alice/new?fileId=12482e33-5541-4d2c-898f-b1fd6f3bc70e%2451f8ea54-5746-46d7-83bf-34502c922205%210e32d009-8396-4138-9503-8907f2ebd415&items-per-page=100&files-spaces-generic-view-mode=resource-tiles&tiles-size=2
I replace
newwithnew (1)and fileId in the URL and get the lost file. -> Now that explains why the test is green.https://localhost:9200/files/spaces/personal/alice/new%20(1)?fileId=12482e33-5541-4d2c-898f-b1fd6f3bc70e%2451f8ea54-5746-46d7-83bf-34502c922205%210cfc476e-83a5-47a7-916a-411756802388&items-per-page=100&files-spaces-generic-view-mode=resource-tiles&tiles-size=2
Actual: Propfind request of personal space returns wrong
<oc:name>new</oc:name>and<d:href>/remote.php/dav/spaces/12482e33-5541-4d2c-898f-b1fd6f3bc70e$51f8ea54-5746-46d7-83bf-34502c922205/new/</d:href>so we see on web 2 foldersnew.oc:fileidis correctExpected: Propfind request of personal space returns correct response with correct name. then we can see on web two folders
newandnew (1)apiTest-coverage for #1523
fschade commentedon Oct 14, 2025
Update: I have a solution that seems to be working as it should, but before I can give the all-clear, I'll have to write unit tests! Cant guarantee to have it done by today, expect the solution tomorrow!
There's no data loss in my test cases!!!
FYI: @dragotin, @ScharfViktor, @dragonchaser, and @tammi-23
apiTest-coverage for #1523
apiTest-coverage for #1523 (#1660)
apiTest-coverage for #1523
apiTest-coverage for opencloud-eu#1523 (opencloud-eu#1660)