Skip to content

Misleading Error Message When Creating a Task in a Full Mailbox #2334

@frederikHartung-extern

Description

@frederikHartung-extern

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:waiting-for-triageAn issue that is yet to be reviewed or assignedtype:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions