Skip to content

[stable33] fix(dav): scope stored and principal properties to their owner - #67191

Merged
2 commits merged into
stable33from
backport/66989/stable33
Nov 30, 2026
Merged

2 commits merged into
stable33from
backport/66989/stable33

Conversation

@GVodyanov

Copy link
Copy Markdown
Contributor

Backport of #66989

Builds on #67186, please merge that one first. Until then, this diff also shows its commit.

The backport bot couldn't apply this one because DavAclPluginTest only exists on this branch once #67186 is in. The commit is the original, applied on top of #67186 without changes.

Assisted by ClaudeCode:claude-opus-5-5

Group principal search returned every group matching the term, and
searchUserPrincipals() kept its own copy of the enumeration rules,
which had drifted from the share dialog: the phone book restriction
had no effect unless the group restriction was also enabled, and the
group-members-only exclude list was not applied. Both searches now
use the same rules as GroupPlugin and Share20\Manager. Default
settings are unaffected.

DavAclPlugin answered inaccessible calendar and address book paths
with its own message, which differed from the collection's regular
not-found response, and multiget hrefs, If: header URIs and
expand-property paths could get different status codes for the same
case. These paths now resolve the same way and return one consistent
"Node with name … could not be found".

Full-match principal search and the remote-calendars/ and
system-calendars/ roots are left as is.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Grigory Vodyanov <scratchx@gmx.com>
Published properties such as calendar availability and the default
calendar URL were looked up in oc_properties by path only. Rows that
another user stored under the same path, which the legacy webdav
endpoint does because its paths are relative to the user's home, were
returned as well, together with any other property on that path. Only
rows stored by the node's owner, and only the published property
names, are read now, as UserStatusAutomation and TimezoneService
already do.

CalendarProvider merged every property a user stored for their view
of a calendar over the backend's calendar info, so stored values for
computed properties such as read-only or owner-principal overrode the
real ones for IManager consumers like calendar import and upcoming
events. Only per-user display properties are taken from oc_properties
now.

Group memberships and calendar delegations of a principal are only
served to the principal itself. Clients only need them for the
current user; other principals answer 403 for these properties.

Not included: prefixing legacy webdav property paths on write, which
needs a repair step for existing rows, and rejecting computed property
names in propPatch(), which the provider now ignores.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Grigory Vodyanov <scratchx@gmx.com>
@susnux susnux closed this pull request by merging all changes into stable33 in 2c15705 Nov 30, 2026
@susnux
susnux deleted the backport/66989/stable33 branch November 30, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants