Azure / Azure/azure-libraries-for-java
VirtualMachineImages getImage with empty version generates ClassCastException
Open
Bug
Compute - Images
customer-reported
Mgmt
- Dominant language
- Java
- Stars
- 97
- Forks
- 102
- PR merge metrics
- No merged PRs in 30d
Description
Whilst the method prevents passing in null values it allows empty String. If you do this it generates a ClassCastException way down in Jackson deserialization as it doesn't expect an ArrayNode to be provided. It would make sense to improve the validation of the input parameters.
Contributor guide
Assessment
This issue has not been assessed yet.