Azure / Azure/azure-libraries-for-java

VirtualMachineImages getImage with empty version generates ClassCastException

Open
#377 1 comment 0 reactions 1 assignee Claimed by @anuchandy View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.