Sharing sidebar offers federated users when Deck federation is disabled
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 半天
- 新手友好度
- 56/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript, php
调研方向
The sharee search types are hard-coded in src/stores/settings.js around line 103, so start there and check where type 6 is added. The payload also points to ConfigService::getAll(), which exposes federationEnabled only to admins, and to lib/Capabilities.php as a place to publish a flag for all users. Done means that with federation disabled, the sharing sidebar no longer offers type 6 results, and that the frontend reads the flag the backend now provides. The fix location is untested, so confirm it by reproducing on a local instance first.
由索引模型根据 Issue 内容生成。
描述
Describe the bug
The sharee search always requests share types [0, 1, 6, 7], so federated users (type 6) are offered even when Deck federation is disabled:
https://github.com/nextcloud/deck/blob/bf65da22e13a366c70c72391beaee00ed2152810/src/stores/settings.js#L103
Selecting one fails with "Federation is disabled" (400), and the sidebar only shows "Failed to create share with …".
To Reproduce
- Leave Deck federation disabled.
- In a board's sharing sidebar, type a federated cloud ID such as
[email protected]. - It is offered as a result; selecting it fails.
Expected behavior
Federated users are only offered when Deck federation is enabled.
Suggested fix
Not tested; a direction based on the current code.
The frontend cannot see the setting today: ConfigService::getAll() only returns federationEnabled to admins. Expose it to every user, for example as a federationEnabled flag in the deck capability (lib/Capabilities.php) or by returning it from getAll() for all users. Whether federation is enabled is not sensitive. Then only include share type 6 in src/stores/settings.js when the flag is true.
Server details
Two instances, both Docker, MariaDB 11.8 / MySQL, PHP 8.5.13:
- Instance A: Nextcloud 35.0.3, Deck 1.19.2
- Instance B: Nextcloud 34.0.6, Deck 1.18.7
The code paths are unchanged on main (bf65da22e).
This report was drafted with AI assistance (Claude Code) and reproduced on the two instances above.
- 主要语言
- JavaScript
- 星标
- 1.4k
- 派生
- 380
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 72
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/deck 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
2 small URL Bugs未关闭1. to develop bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
Updating a card without `done` clears its done state可能已有人在做 @whoalin1 于 5 天前认领。 未关闭0. Needs triage bug
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
Updating a card on an incoming federated board without `done` returns 500可能已有人在做 @AlirezaAghaee1996 于 5 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
相似的 Issue
-
area-integrations
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
Trac-Systems/main_settlement_bus#1071 ·
维护者通常 1 天内回复
-
Bug kind/bug pulumi/pulumi R1 S1
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
Document that Search Attributes on Standalone Activity start are not billed as additional Actions未关闭
难度 1/5 1-3 小时 新手友好度 90/100
temporalio/documentation#5883 ·
维护者通常 1 天内回复
-
good first issue help wanted
难度 1/5 1 小时以内 新手友好度 88/100
Stanley03-arch/Rabbit#15 ·
维护者通常 1 天内回复