microsoftgraph / microsoftgraph/msgraph-sdk-java

Misleading Error Message When Creating a Task in a Full Mailbox

Đang mở
#2,334 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

status:waiting-for-triage type:bug
Ngôn ngữ chính
Java
Star
444
Fork
154
Merge trung bình
18 giờ 28 phút
Pull request đã merge (30 ngày)
4

Mô tả

Describe the bug

When we try to create a TodoTask in a full Mailbox, we get this error Message:
"com.microsoft.graph.models.odataerrors.ODataError: Access is denied to the requested resource. The user might not have enough permission."

Stacktrace:
See "Debug Output"

Expected behavior

A better Error Message or Status Code. We can correctly create >99% of our TodoTasks for our Users and we only get this Error Message for Users, which have a full Mailbox. Developers who don't know this wired Behavior maybe think, that the Service Principle has not the correct permissions.
Please fix this behavior.

How to reproduce

Create a TodoTask for a MailBox, which is full.

SDK Version

6.23.0

Latest version known to work for scenario above?

No response

Known Workarounds

-No

Debug output

com.microsoft.graph.models.odataerrors.ODataError: Access is denied to the requested resource. The user might not have enough permission.
at com.microsoft.graph.models.odataerrors.ODataError.createFromDiscriminatorValue(ODataError.java:36)
at com.microsoft.kiota.serialization.JsonParseNode.getObjectValue(JsonParseNode.java:212)
at com.microsoft.kiota.http.OkHttpRequestAdapter.lambda$throwIfFailedResponse$0(OkHttpRequestAdapter.java:673)
at com.microsoft.kiota.ApiExceptionBuilder.(ApiExceptionBuilder.java:26)
at com.microsoft.kiota.http.OkHttpRequestAdapter.throwIfFailedResponse(OkHttpRequestAdapter.java:672)
at com.microsoft.kiota.http.OkHttpRequestAdapter.send(OkHttpRequestAdapter.java:280)
at com.microsoft.graph.users.item.todo.lists.item.tasks.TasksRequestBuilder.post(TasksRequestBuilder.java:116)
at com.microsoft.graph.users.item.todo.lists.item.tasks.TasksRequestBuilder.post(TasksRequestBuilder.java:101)
at ... (Our Code in an SpringBoot App)

Configuration

Spring Boot App in an Azure AKS

Other information

The mailboxes of the users are very full. This often happens with users who had an "E3" license, which was downgraded to an "EOK" license. They now have only a 50MB quota, down from their previous 2GB quota, and their mailboxes are often over 1000% full. This Problem is persistent and occurs for the users every day when we try to create a TodoTask

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện việc tạo TodoTask khi mailbox đầy và xem xét stacktrace của TasksRequestBuilder được hiển thị trong báo cáo. Issue được hoàn thành khi điều kiện này tạo ra thông báo lỗi hoặc mã trạng thái chính xác hơn, phân biệt mailbox đầy với vấn đề quyền.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
api
Loại issue
Lỗi
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.