microsoftgraph / microsoftgraph/msgraph-sdk-java
OperationStatus not correctly decoded from JSON
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 444
- Forks
- 154
- Avg merge
- 18h 28m
- Merged PRs (30d)
- 4
Description
Describe the bug
OperationStatus.forValue() expects the value to be capitalized, however the webhooks receive e.g. PlayPromptOperation entities with the value starts with a small letter. So the SDK expects "Running", but receives "running".
Expected behavior
Status is properly decoded
How to reproduce
Decode a webhook notification collection that contains a PlayPromptOperation entity as data.
SDK Version
6.20
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
No response
Configuration
No response
Other information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at OperationStatus.forValue() and trace how a webhook notification collection containing a PlayPromptOperation entity is decoded. Reproduce the lowercase "running" status from the issue, then verify that the status is decoded correctly in the relevant webhook path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100