Repository navigation
Closed as not planned
Labels
Milestone
Description
Steps
- Create a file "proppatch.xml"
<?xml version="1.0" encoding="utf-8" ?>
<D:propertyupdate xmlns:D="DAV:"><D:set><D:prop><somename xmlns="http://example.com/alpha">manynsvalue</somename></D:prop></D:set>
<D:set><D:prop><somename xmlns="http://example.com/beta">manynsvalue</somename></D:prop></D:set>
<D:set><D:prop><somename xmlns="http://example.com/gamma">manynsvalue</somename></D:prop></D:set>
<D:set><D:prop><somename xmlns="http://example.com/delta">manynsvalue</somename></D:prop></D:set>
<D:set><D:prop><somename xmlns="http://example.com/epsilon">manynsvalue</somename></D:prop></D:set>
<D:set><D:prop><somename xmlns="http://example.com/zeta">manynsvalue</somename></D:prop></D:set>
<D:set><D:prop><somename xmlns="http://example.com/eta">manynsvalue</somename></D:prop></D:set>
<D:set><D:prop><somename xmlns="http://example.com/theta">manynsvalue</somename></D:prop></D:set>
<D:set><D:prop><somename xmlns="http://example.com/iota">manynsvalue</somename></D:prop></D:set>
<D:set><D:prop><somename xmlns="http://example.com/kappa">manynsvalue</somename></D:prop></D:set>
</D:propertyupdate>- Create a folder "test"
- Set a breakpoint in FileCustomPropertiesBackend->updateProperties()
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.
0 OCA\DAV\DAV\FileCustomPropertiesBackend->updateProperties() /srv/www/htdocs/owncloud/apps/dav/lib/DAV/FileCustomPropertiesBackend.php:157
1 OCA\DAV\DAV\FileCustomPropertiesBackend->OCA\DAV\DAV\{closure}() /srv/www/htdocs/owncloud/apps/dav/lib/DAV/AbstractCustomPropertiesBackend.php:206
2 Sabre\DAV\PropPatch->doCallBackMultiProp() /srv/www/htdocs/owncloud/lib/composer/sabre/dav/lib/DAV/PropPatch.php:317
3 Sabre\DAV\PropPatch->commit() /srv/www/htdocs/owncloud/lib/composer/sabre/dav/lib/DAV/PropPatch.php:245
4 OCA\DAV\Connector\Sabre\Server->updateProperties() /srv/www/htdocs/owncloud/lib/composer/sabre/dav/lib/DAV/Server.php:1265
5 Sabre\DAV\CorePlugin->httpPropPatch() /srv/www/htdocs/owncloud/lib/composer/sabre/dav/lib/DAV/CorePlugin.php:385
6 call_user_func_array:{/srv/www/htdocs/owncloud/lib/composer/sabre/event/lib/EventEmitterTrait.php:105}() /srv/www/htdocs/owncloud/lib/composer/sabre/event/lib/EventEmitterTrait.php:105
7 OCA\DAV\Connector\Sabre\Server->emit() /srv/www/htdocs/owncloud/lib/composer/sabre/event/lib/EventEmitterTrait.php:105
8 OCA\DAV\Connector\Sabre\Server->invokeMethod() /srv/www/htdocs/owncloud/lib/composer/sabre/dav/lib/DAV/Server.php:479
9 OCA\DAV\Connector\Sabre\Server->exec() /srv/www/htdocs/owncloud/lib/composer/sabre/dav/lib/DAV/Server.php:254
10 require_once() /srv/www/htdocs/owncloud/apps/dav/appinfo/v1/webdav.php:64
11 {main} /srv/www/htdocs/owncloud/remote.php:165
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
Activity
PVince81 commentedon Sep 10, 2018
Seems that this code https://github.com/owncloud/core/blob/v10.0.10RC1/apps/dav/lib/DAV/AbstractCustomPropertiesBackend.php#L205 that calls
handleRemainingis making Sabre create one callback per property instead of using a single callback for all.We might need to use a different approach/method here.
VicDeo commentedon Sep 10, 2018
well, it was the same way before me
core/apps/dav/lib/Files/CustomPropertiesBackend.php
Line 121 in 416306f
PVince81 commentedon Sep 10, 2018
yeah, I also see this used that way in some Sabre's properties backend, so wonder if it's a Sabre bug...
ownclouders commentedon Sep 10, 2018
GitMate.io thinks possibly related issues are #20661 (Update), #21366 (Update), #19642 (Can not download multiple times from public page), #14835 (Share dialog shows the same user multiple times), and #15477 (When updating).
DeepDiver1975 commentedon Jun 19, 2026
🤖 Automated issue triage by Claude Code review agent.
This issue was opened before 2020 and has had no activity since then, so we are closing it as outdated. If this is still relevant on a current ownCloud release, please reopen (or open a fresh issue) with up-to-date details — thank you!