Dropping a list (stack) does not persist: PUT stacks/{id}/reorder is sent with order: null (400)
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
- 1-2 ngày
- Mức phù hợp với người mới
- 65/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Start in src/components/board/Board.vue at onDropStack, then trace how src/stores/stack.js orderStack passes addedIndex to the reorder request. Reproduce a list drag and investigate why the index is null and whether the card drop handler also receives the event. Done when dropping a list sends a valid order, the order survives reload, and no unintended card reorder request is sent.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
Dropping a list (stack) at a new position on a board does not persist. The list moves on screen, but a reload puts it back where it was.
In the browser network log, the drop sends
PUT /ocs/v2.php/apps/deck/api/v1.0/stacks/16/reorder with body {"order":null,"boardId":5}
and the server answers 400 with an empty body. Just before it, a second request is sent:
PUT /ocs/v2.php/apps/deck/api/v1.0/cards/undefined/reorder with body {"stackId":13,"order":0,"boardId":5}
which is answered 403 (Permission denied).
To Reproduce
- As the board owner (all permissions), open a board with four lists: Priorities, To Do, In Progress, Completed.
- Drag the "Completed" list by its header to the left of the other lists and drop it.
- The list moves on screen. Reload the page: it is back in its original place.
Expected behavior
The new list order is saved.
Additional information
- The server accepts a valid request.
PUT .../stacks/16/reorderwith{"order":1}returned 200 and the new position was saved. So the problem is the value the web UI sends, not the server or permissions. - Reading the code (current
main):src/components/board/Board.vuecallsorderStack({ stack, removedIndex, addedIndex })fromonDropStack, andsrc/stores/stack.jsorderStack()passesaddedIndexstraight toapiClient.reorderStack(stack.id, addedIndex, stack.boardId)without checking it. In my captureaddedIndexarrived asnull. I have not worked out why it is null. - The
cards/undefined/reorderrequest suggests a card drop handler also receives the same drop event (possibly nested drag containers). I have not verified this. - It still happens when each list has its own distinct
ordervalue (0, 1, 2, 3). It first showed up on boards whose lists all hadorder: 0, but I captured thenullrequest after assigning distinct values, so that is not the cause. - Caveat on reproduction: the request above was captured from a drag performed with browser automation (synthetic mouse events). A manual drag by a person shows the same visible symptom (the list reverts after reload), but I have not captured the request from a manual drag.
Client details:
- OS: Windows 10
- Browser: Chrome (desktop)
- Version: current stable
Server details
Operating system: Linux (Docker container on a Synology NAS)
Web server: Apache (official nextcloud:35-apache image), behind a reverse proxy
Database: MariaDB 11.4
PHP version: 8.5.12
Nextcloud version: 35.0.2
Deck version: 1.19.2 (from the app store)
Where did you install Nextcloud from: Official Docker image
Are you using an external user-backend, if yes which one: No
Logs
Nextcloud log
No Deck entries were logged when the drop failed.
Browser log (network)
PUT /ocs/v2.php/apps/deck/api/v1.0/cards/undefined/reorder
{"stackId":13,"order":0,"boardId":5} -> 403 Permission denied
PUT /ocs/v2.php/apps/deck/api/v1.0/stacks/16/reorder
{"order":null,"boardId":5} -> 400 (empty body)
- 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