-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New dav endpoint register tags plugin #26098
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
Conversation
This makes it possible to retrieve and PROPPATCH the favorite info
|
@PVince81, thanks for your PR! By analyzing the annotation information on this pull request, we identified @DeepDiver1975, @LukasReschke and @rullzer to be potential reviewers |
|
The properties are the same as in old webdav endpoint? ("{http://owncloud.org/ns}favorite" with value "1") I'm getting an error so far (404) |
|
@SergioBertolinSG yes, same properties. It's the same plugin with the same behavior. |
|
Very strange... when debugging I can see that the integration test's call is passing the "favorite" property, it also detects it in the plugin's "handleUpdateProperties" but for some strange reason it doesn't go into the handler function. However if I set the property with cadaver on the new endpoint, it goes there. |
|
From the integration test: from cadaver: No difference ?! |
|
There's an ignored exception: Maybe the test is using the wrong DAV path when setting the property ? |
|
Indeed, dav URL is wrong in the test in This is probably due to the bizarre magic when the path is "remote.php/dav" it gets changed to another one, but doesn't do it for all functions. I suggest to get rid of this and use the expression "when using the old dav path" and "when using the new dav path". |
|
@SergioBertolinSG can you fix the test ? |
|
@PVince81 sure. |
67f6217 to
3498402
Compare
3498402 to
71e11c9
Compare
|
There is something wrong here, but I am not seeing why |
|
Looks like |
|
At that point the url is: remote.php/dav/files/admin/FOLDER But the propfind is raising an exception HTTP error: 404 (Sabre\DAV\Exception) |
|
Yes, it's using the wrong user... Because I think this needs a good refactoring, it's quite messed up. |
|
Ok user is wrong, I'll fix that. |
We can improve it in a separate PR, it affects many test cases. |
|
👍 for the tests part |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
This makes it possible to retrieve and PROPPATCH the favorite info
Related Issue
None raised, discovered while testing #25494
Motivation and Context
Make new dav behave like old dav
How Has This Been Tested?
Check out this PR #25494 which makes the web UI use the new DAV endpoint.
Favorite a file then refresh the page.
Before: no favorite info.
After: favorited file still appears as favorite.
Screenshots (if appropriate):
Types of changes
Checklist:
Please review @DeepDiver1975 @guruz @SergioBertolinSG