microsoftgraph / microsoftgraph/msgraph-sdk-java

Misleading Error Message When Creating a Task in a Full Mailbox

オープン
#2,334 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

status:waiting-for-triage type:bug
主要言語
Java
スター
444
フォーク
154
平均マージ
18時間 28分
マージ済み PR(30日)
4

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、メールボックスが満杯の状態での TodoTask の作成を再現し、レポートに示されている TasksRequestBuilder のスタックトレースを確認します。この条件によって、メールボックスが満杯である場合と権限の問題を区別できる、より正確なエラーメッセージまたはステータスコードが生成されれば、Issue は完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
api
issue の種類
バグ
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。