microsoftgraph / microsoftgraph/msgraph-sdk-java
Misleading Error Message When Creating a Task in a Full Mailbox
Personne n'a encore pris cette issue.
- Langage dominant
- Java
- Étoiles
- 444
- Forks
- 154
- Merge moyen
- 18 h 28 min
- PR mergées (30 j)
- 4
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
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par reproduire la création de TodoTask pour une boîte aux lettres pleine et examinez la stacktrace de TasksRequestBuilder indiquée dans le rapport. L’issue est terminée lorsque cette condition produit un message d’erreur ou un code d’état plus précis qui distingue une boîte aux lettres pleine d’un problème de permissions.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- api
- Type d'issue
- Bug
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100