-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
public locking on folder returning 403 instead of 405 in new web dav api version #40882
Comments
A bug-demo test scenario was added in PR #40883 |
@jvillafanez I had a quick look at this and it seems that PR #36402 implemented the code that checks for public-link endpoints and returns Somehow the behavior is different when trying to lock a resource that is a folder. But I don't see anything special in that PR about folders, and I don't see code that specifically handles the 2 different public link paths. Do you have any ideas? Is this something that can be fixed easily? |
No idea why the code isn't going through https://github.com/owncloud/core/blob/master/apps/dav/lib/Connector/Sabre/PublicDavLocksPlugin.php#L63 So, it doesn't seems the code is wrong, but something is interfering with the code flow and it doesn't go through the "httpLock" method. |
It might be an issue with the dav ACLs... following patch seems to fix the issue, although I'm not sure if we want to go that way
I can make a PR after @DeepDiver1975 confirmation. |
The issue has probably been there the whole time. We discovered that the test scenario for "new" public webdav API was not actually doing what it said. We fixed the test code in #40883 and noticed the scenario that fails. |
Steps to reproduce
parent
andparent/child
parent/parent.txt
andparent/child/child.txt
parent
child
using new webdav api endpoint versionExpected behaviour
the response should be:
Actual behaviour
but the response is:
Note: this issue does not persist on files of pubic share but only on the subfolders in the public share in new webdav api version
Server configuration
Operating system: ubuntu
Database: mysql
PHP version: 7.4
ownCloud version: ownCloud 10.13.0 prealpha (git)
The text was updated successfully, but these errors were encountered: