Sharing sidebar offers federated users when Deck federation is disabled
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 56/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, php
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- JavaScript
- Star
- 1.4k
- Fork
- 380
- Merge trung bình
- 1 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 72
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nextcloud/deck
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
2 small URL BugsĐang mở1. to develop bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
nextcloud/deck#8834 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Updating a card without `done` clears its done stateCó thể đã có người làm @whoalin1 đã nhận 5 ngày trước. Đang mở0. Needs triage bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Updating a card on an incoming federated board without `done` returns 500Có thể đã có người làm @AlirezaAghaee1996 đã nhận 5 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của nextcloud/deck
Issue tương tự
-
area-integrations
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Trac-Systems/main_settlement_bus#1071 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug kind/bug pulumi/pulumi R1 S1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Document that Search Attributes on Standalone Activity start are not billed as additional ActionsĐang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 90/100
temporalio/documentation#5883 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Stanley03-arch/Rabbit#15 ·
Maintainer thường phản hồi trong vòng 1 ngày