-
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
PROPPATCH updates same properties multiple times #32660
Comments
Seems that this code https://github.com/owncloud/core/blob/v10.0.10RC1/apps/dav/lib/DAV/AbstractCustomPropertiesBackend.php#L205 that calls We might need to use a different approach/method here. |
well, it was the same way before me
|
yeah, I also see this used that way in some Sabre's properties backend, so wonder if it's a Sabre bug... |
Steps
curl -u admin:admin -X PROPPATCH -H "Content-Type: text/xml" --data-binary "@proppatch.xml" "http://localhost/owncloud/remote.php/webdav/test"
Expected result
Only a single call to
updateProperties()
Actual
Multiple calls, despite the fact that we already have all properties in the first call.
It seems that there are as many callback as there are properties.
Version
OC 10.0.10 RC1
Doing this could reduce performance. However, updating file properties with PROPPATCH is hopefully rare. I do wonder if mounting Webdav as Windows drive have more property updates...
Found while investigating Oracle issue: #32639 (comment)
cc @VicDeo
The text was updated successfully, but these errors were encountered: