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

Send POST requests to another user's webDav endpoints as normal user #1287

Closed
C0rby opened this issue May 7, 2020 · 4 comments
Closed

Send POST requests to another user's webDav endpoints as normal user #1287

C0rby opened this issue May 7, 2020 · 4 comments
Labels

Comments

@C0rby
Copy link
Contributor

C0rby commented May 7, 2020

The test fails because of the tus-webdav handler.
tests/acceptance/features/apiAuthWebDav/webDavPOSTAuth.feature:36

@butonic butonic transferred this issue from owncloud/ocis-reva Jan 18, 2021
@refs refs changed the title send POST requests to another user's webDav endpoints as normal user Send POST requests to another user's webDav endpoints as normal user Jan 18, 2021
@refs refs added the Type:Bug label Jan 18, 2021
@settings settings bot removed the p3-medium label Apr 7, 2021
@kobergj
Copy link
Collaborator

kobergj commented Jun 4, 2024

No longer relevant

@kobergj kobergj closed this as completed Jun 4, 2024
@saw-jan
Copy link
Member

saw-jan commented Aug 12, 2024

@kobergj
Trying to POST to another user's dav path returns 412 Precondition Failed. Is it the expected one?

curl -XPOST "https://localhost:9200/remote.php/dav/files/demo/lorem.txt" -d"lorem" -uadmin:admin -vk

< HTTP/1.1 412 Precondition Failed

Test expects 404 Not Found.

PUT request to another user's existing resource returns 404 Not Found

@kobergj
Copy link
Collaborator

kobergj commented Aug 12, 2024

@saw-jan
It seems to be the correct behaviour. The server explicitly converts the 404 into a 412. This was introduced with this PR cs3org/reva#1901 So it looks to me like this was a deliberate decision. Should we reopen the discussion?

@saw-jan
Copy link
Member

saw-jan commented Aug 13, 2024

Should be fine if that's the deliberate decision.
Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants