Cross-user free/busy queries fail due to restrictive principal ACLs
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
调研方向
Start by locating PublicAwareDAVACLPlugin::getAcl() and review how it combines SabreDAV’s default principal permissions with the proposed authenticated read rule. Reproduce the cross-user PROPFIND and CalDAV scheduling request from the issue, checking that calendar-home-set is returned and busy periods are visible without exposing event details. The issue leaves the permanent permission scope open, so that decision needs review before the change is complete.
由索引模型根据 Issue 内容生成。
描述
Davis version
5.6.2
Installation method
Docker – standalone (with Caddy)
Database
MariaDB
Reverse proxy
Caddy
Authentication method
Internal (ADMIN_LOGIN / ADMIN_PASSWORD)
Affected protocol(s)
- CalDAV
- CardDAV
- WebDAV
- Admin dashboard
- API
Client(s) exhibiting the issue
Apple Calendar (macOS), also reproducible with direct CalDAV requests through curl. The issue is server-side and likely affects other clients using CalDAV scheduling.
Relevant environment variables
AUTH_METHOD=Basic
APP_ENV=prod
WEBDAV_ENABLED=false
CARDDAV_ENABLED=true
CALDAV_ENABLED=true
Steps to reproduce
- Create two users,
test-01andtest-02. - Create an event in
test-02's private calendar withTRANSP:OPAQUE. Verify that its calendar instance hastransparent=0. - As
test-01, querytest-02's availability through the CalDAV scheduling outbox.
Expected behaviour
Authenticated users should be able to retrieve other users' availability without gaining access to their private calendar events.
Actual behaviour
The scheduling request fails with:
<cal:request-status>3.7;No calendar-home-set property found</cal:request-status>
A cross-user PROPFIND on /dav/principals/test-02/ also returns an empty multistatus response, whereas the same request authenticated as test-02 succeeds.
Additional context
Cross-user free/busy queries fail because authenticated users cannot read other users' CalDAV principal properties, particularly calendar-home-set.
This prevents clients from retrieving attendees' availability, even when their calendars contain correctly configured busy events.
Proposed fix
The default SabreDAV principal ACL grants access to the owner and calendar delegates, but not other authenticated users.
I tested adding the following rule to PublicAwareDAVACLPlugin::getAcl(), immediately after $acl = parent::getAcl($node);:
if ($node instanceof \Sabre\CalDAV\Principal\User) {
$acl[] = [
'principal' => '{DAV:}authenticated',
'privilege' => '{DAV:}read',
'protected' => true,
];
}
This resolves the issue: cross-user PROPFIND requests now return calendar-home-set, and Apple Calendar correctly displays the attendee's busy period without exposing the appointment details.
The patch is a working proof of concept. It would be worth reviewing whether this is the appropriate permission scope for a permanent fix.
Any thoughts on this?
- 主要语言
- PHP
- 星标
- 769
- 派生
- 45
- 平均合并
- 2 天 9 小时
- 30 天内合并 PR
- 4
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tchapi/davis 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
-
Run Doctrine migrations automatically on container start可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭feature request
难度 2/5 1-3 小时 新手友好度 66/100
-
feature request
难度 3/5 1-2 天 新手友好度 58/100
-
bug
难度 3/5 1-2 天 新手友好度 65/100
-
feature request
难度 4/5 3-5 天 新手友好度 42/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
Adyen/adyen-magento2#3453 ·
维护者通常 8 天内回复
-
component/media domain/discovery
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 1 天内回复
-
bug docker
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
enhancement priority: low
难度 2/5 1-3 小时 新手友好度 82/100
magicsunday/webtrees-statistics#664 ·
维护者通常 1 天内回复