-
Notifications
You must be signed in to change notification settings - Fork 265
Open
Labels
status:waiting-for-triageAn issue that is yet to be reviewed or assignedAn issue that is yet to be reviewed or assignedtype:bugA broken experienceA broken experience
Description
Describe the bug
Hello,
I'm using Microsoft.Graph C# nuget package version 5.97.0.
I'm getting emails from outlook, process them and delete at the end.
Sometimes during delete attempt, message already doesn't exists in the mailbox. In such a case I get HTTP 404 response. It's normal. But when I use immutable ids - I get HTTP 403 response instead of 404. I think it should be still 404...
Expected behavior
If we want to delete message that doesn't exists we should get HTTP 404 response nevertheless we use immutable ids or not
How to reproduce
- Get message using Prefer: "IdType="ImmutableId"" header
- Delete message using id retrieved in step 1.
- Try to delete the same message again
Expected: second delete call returns 404
Current: second delete call return 403 with content {"error":{"code":"ErrorCannotDeleteObject","message":"Object cannot be deleted."}}
SDK Version
5.97.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_
Metadata
Metadata
Assignees
Labels
status:waiting-for-triageAn issue that is yet to be reviewed or assignedAn issue that is yet to be reviewed or assignedtype:bugA broken experienceA broken experience