Drive item `discardCheckout` fails with `resourceCheckedOut` error when using application permissions, despite docs stating this should work
Maintainer thường phản hồi trong vòng 2 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
- 57/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- api
Hướng nghiên cứu
Start by comparing the issue’s delegated and application permission requests with the driveitem-discardcheckout documentation linked in the report. Determine whether the observed error conflicts with the documented application permission behavior, and identify the relevant metadata or documentation entry in this repository; the issue does not name a file. Done means the behavior and documentation discrepancy is resolved or clearly explained.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
The documentation for discardCheckout states that application permissions can discard any checkout, regardless of who created it. In practice, discarding a checkout that was created via delegated auth fails with notAllowed / resourceCheckedOut when called with application permissions.
Steps to reproduce
- Checkout a file using delegated credentials:
POST https://graph.microsoft.com/v1.0/drives/{DriveID}/items/{ItemID}/checkout
- Discard the checkout using application credentials:
POST https://graph.microsoft.com/v1.0/drives/{DriveID}/items/{ItemID}/checkout
Expected behavior
Per the docs, application access should be able to discard any checkout.
Requests made with application access can discard any checkout.
Actual behavior
{
"error": {
"code": "notAllowed",
"message": "The resource has been checked-out by another user",
"innerError": {
"code": "resourceLocked",
"innerError": {
"code": "resourceCheckedOut"
},
"date": "2026-09-30T09:39:25",
"request-id": "588b93bb-eb52-4d98-879c-74c5cd475338",
"client-request-id": "588b93bb-eb52-4d98-879c-74c5cd475338"
}
}
}
Reference
- Ngôn ngữ chính
- XSLT
- Star
- 171
- Fork
- 56
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 9
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 microsoftgraph/msgraph-metadata
-
ToTriage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
microsoftgraph/msgraph-metadata#1217 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
ToTriage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
microsoftgraph/msgraph-metadata#1192 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
`microsoft.graph.managedDevice` is missing a filter restrictions annotation.Có thể đã có người làm @esidorenko-sl đã nhận 86 ngày trước. Đang mởToTriage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
microsoftgraph/msgraph-metadata#1193 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
ToTriage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
microsoftgraph/msgraph-metadata#1169 · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
@odata.type is marked required in the OpenAPI schemas but is omitted from most GET responsesĐang mởToTriage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
microsoftgraph/msgraph-metadata#1166 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của microsoftgraph/msgraph-metadata
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
fb55/htmlparser2#2579 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue needs-review
Độ 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
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
trycua/hermes-cua-spaces#17 ·
-
area/channels kind/bug priority/medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nanocoai/nanoclaw#4501 · 1 bình luận ·
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 69/100
AndyHazz/bookends.koplugin#134 ·