-
Notifications
You must be signed in to change notification settings - Fork 144
Description
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