Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QA] eos trashbin not accessible in WEB UI #863

Closed
jnweiger opened this issue Nov 16, 2020 · 9 comments · Fixed by cs3org/reva#1326
Closed

[QA] eos trashbin not accessible in WEB UI #863

jnweiger opened this issue Nov 16, 2020 · 9 comments · Fixed by cs3org/reva#1326
Labels
OCIS-Fastlane Planned outside of the sprint Type:Bug

Comments

@jnweiger
Copy link
Contributor

jnweiger commented Nov 16, 2020

Setup:

  • docker-compose-eos-test.yml
  • enable trashbin via
eos space config default space.policy.recycle=on
eos recycle config --add-bin /eos/dockertest/reva/users
eos recycle config --size 1G

Reproduce:

  • User marie deletes a file crypt-o.mp3
  • We can see the file in the eos trashcan
eos -r 0 0 recycle ls -g
# Deletion Time            UID      GID      SIZE         TYPE          RESTORE-KEY          RESTORE-PATH
# ==============================================================================================================================
Mon Nov 16 14:07:26 2020   20001    30000    1583104      file          fxid:0000000000000009 /eos/dockertest/reva/users/f/f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c/crypt-o.mp3
Mon Nov 16 14:07:26 2020   20001    30000    0            recursive-dir pxid:0000000000000020 /eos/dockertest/reva/users/f/f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c/.sys.v#.crypt-o.mp3/

When marie visits the deleted files, there is an error:
image
image

Trying the failing request with curl:

$ curl 'https://localhost:9200/remote.php/dav/trash-bin/marie/' -X PROPFIND -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'X-Requested-With: XMLHttpRequest' -H 'OCS-APIREQUEST: true' -H 'authorization: Bearer eyJhbGciOiJQUzI1NiIsImtpZCI6IiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJwaG9lbml4IiwiZXhwIjoxNjA1NTM4NTg2LCJqdGkiOiJ0eEt1SUE4X0E2WEhob2JZdjNwd0pEUWZCWjVhZFQzaCIsImlhdCI6MTYwNTUzNzk4NiwiaXNzIjoiaHR0cHM6Ly9sb2NhbGhvc3Q6OTIwMCIsInN1YiI6ImxlV1I2Q3RZdEpfQWZEbVBGWk5YYUZQZHJCbnZaZU9SZ2p1dlYzUlcyRzM5VDV3bDdtaFZNVzVVRXRza1NRU2N6eGlwY1R5UGZDQzdqZ25vVG1ObTVBQGtvbm5lY3QiLCJrYy5pc0FjY2Vzc1Rva2VuIjp0cnVlLCJrYy5hdXRob3JpemVkU2NvcGVzIjpbIm9wZW5pZCIsInByb2ZpbGUiLCJlbWFpbCJdLCJrYy5pZGVudGl0eSI6eyJrYy5pLmRuIjoibWFyaWUiLCJrYy5pLmlkIjoiY249bWFyaWUsb3U9dXNlcnMsZGM9ZXhhbXBsZSxkYz1vcmciLCJrYy5pLnVuIjoibWFyaWUifSwia2MucHJvdmlkZXIiOiJpZGVudGlmaWVyLWxkYXAifQ.imXnSHShkMJUx8ULO41zGaB-Bly50B4YrR9_vVfpe9qB-TNcH3qIUaEX4KSKqEzqh0CLhTV2c5ZUVJWvT5ikA9Lc_4W1e9J2hYDXW_Doxs6y-cQI1WC-iodRyi9tkyvzpLiR91HGd4dkro_GpR1x1XbihjEuUN27RVXlDU5hf6FplNwf1Nx-rJ51cNMcIpzC5hxTPHnK1WaEXeOUAvWHZo-3RWYPA9pyNmb_ryqRQhMHhsvsVLk5kOJVPfBfoiJ5T9SYcrceK6HM65416QVKh3oJiWIOCcklMCFzLz3DE9AxyM_9AIEo6GA06MWzlaPbmf28MIDN0tfv4C7ycBVk5A' -H 'Depth: 1' -H 'Content-Type: application/xml; charset=utf-8' -H 'Origin: https://localhost:9200' -H 'Connection: keep-alive' -H 'Referer: https://localhost:9200/' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -k 
$ curl 'https://localhost:9200/remote.php/dav/trash-bin/f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c/' -X PROPFIND -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'X-Requested-With: XMLHttpRequest' -H 'OCS-APIREQUEST: true' -H 'authorization: Bearer eyJhbGciOiJQUzI1NiIsImtpZCI6IiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJwaG9lbml4IiwiZXhwIjoxNjA1NTM4NTg2LCJqdGkiOiJ0eEt1SUE4X0E2WEhob2JZdjNwd0pEUWZCWjVhZFQzaCIsImlhdCI6MTYwNTUzNzk4NiwiaXNzIjoiaHR0cHM6Ly9sb2NhbGhvc3Q6OTIwMCIsInN1YiI6ImxlV1I2Q3RZdEpfQWZEbVBGWk5YYUZQZHJCbnZaZU9SZ2p1dlYzUlcyRzM5VDV3bDdtaFZNVzVVRXRza1NRU2N6eGlwY1R5UGZDQzdqZ25vVG1ObTVBQGtvbm5lY3QiLCJrYy5pc0FjY2Vzc1Rva2VuIjp0cnVlLCJrYy5hdXRob3JpemVkU2NvcGVzIjpbIm9wZW5pZCIsInByb2ZpbGUiLCJlbWFpbCJdLCJrYy5pZGVudGl0eSI6eyJrYy5pLmRuIjoibWFyaWUiLCJrYy5pLmlkIjoiY249bWFyaWUsb3U9dXNlcnMsZGM9ZXhhbXBsZSxkYz1vcmciLCJrYy5pLnVuIjoibWFyaWUifSwia2MucHJvdmlkZXIiOiJpZGVudGlmaWVyLWxkYXAifQ.imXnSHShkMJUx8ULO41zGaB-Bly50B4YrR9_vVfpe9qB-TNcH3qIUaEX4KSKqEzqh0CLhTV2c5ZUVJWvT5ikA9Lc_4W1e9J2hYDXW_Doxs6y-cQI1WC-iodRyi9tkyvzpLiR91HGd4dkro_GpR1x1XbihjEuUN27RVXlDU5hf6FplNwf1Nx-rJ51cNMcIpzC5hxTPHnK1WaEXeOUAvWHZo-3RWYPA9pyNmb_ryqRQhMHhsvsVLk5kOJVPfBfoiJ5T9SYcrceK6HM65416QVKh3oJiWIOCcklMCFzLz3DE9AxyM_9AIEo6GA06MWzlaPbmf28MIDN0tfv4C7ycBVk5A' -H 'Depth: 1' -H 'Content-Type: application/xml; charset=utf-8' -H 'Origin: https://localhost:9200' -H 'Connection: keep-alive' -H 'Referer: https://localhost:9200/' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -k 
<?xml version="1.0" encoding="utf-8"?><d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns"><d:response><d:href>/remote.php/dav/trash-bin/</d:href><d:propstat><d:prop><d:resourcetype><d:collection/></d:resourcetype></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat><d:propstat><d:prop><oc:trashbin-original-filename></oc:trashbin-original-filename><oc:trashbin-original-location></oc:trashbin-original-location><oc:trashbin-delete-datetime></oc:trashbin-delete-datetime><d:getcontentlength></d:getcontentlength></d:prop><d:status>HTTP/1.1 404 Not Found</d:status></d:propstat></d:response><d:response><d:href>/remote.php/dav/trash-bin/fxid:0000000000000009</d:href><d:propstat><d:prop><oc:trashbin-original-filename>crypt-o.mp3</oc:trashbin-original-filename><oc:trashbin-original-location>crypt-o.mp3</oc:trashbin-original-location><oc:trashbin-delete-datetime>Mon, 19 Jan 1970 13:58:55 +0000</oc:trashbin-delete-datetime><d:resourcetype></d:resourcetype><d:getcontentlength>1583104</d:getcontentlength></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response></d:multistatus>
$

When trying marie's user-id instead of the username, then we get a response.
This is the old api. A username should work.

@micbar
Copy link
Contributor

micbar commented Nov 16, 2020

enable trashbin should be fixed in newly pushed eos images
I pushed new eos-base and eos-stack images.

Will need an rc4 to get into your stack.

@micbar
Copy link
Contributor

micbar commented Nov 16, 2020

@butonic old friend? userid vs username?

@exalate-issue-sync exalate-issue-sync bot added p3-medium OCIS-Fastlane Planned outside of the sprint and removed ocis-acounts labels Nov 17, 2020
@jnweiger
Copy link
Contributor Author

retested with RC5 localhost setup: unchanged.

@micbar
Copy link
Contributor

micbar commented Nov 19, 2020

that was expected. Not fixed in RC5. pending

@micbar
Copy link
Contributor

micbar commented Nov 19, 2020

@butonic Is that part of the reva update?

@C0rby
Copy link
Contributor

C0rby commented Nov 19, 2020

@micbar, I don't think so. I just implemented a fix and will open a PR in reva.

C0rby pushed a commit to owncloud/reva that referenced this issue Nov 19, 2020
The dav api now expects username instead of userid.

Fixes owncloud/ocis#863
@exalate-issue-sync
Copy link

David Christofas commented: Should be fixed by cs3org/reva#1326

@micbar
Copy link
Contributor

micbar commented Nov 20, 2020

needs to be fixed before 1.0.0 -> please @C0rby Ping CERN for merge

@C0rby
Copy link
Contributor

C0rby commented Nov 20, 2020

The PR was merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCIS-Fastlane Planned outside of the sprint Type:Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants