Azure / Azure/azure-libraries-for-java

VirtualMachineImages getImage with empty version generates ClassCastException

Aperta
#377 1 commento 0 reazioni 1 assegnatario Rivendicata da @anuchandy Vedi su GitHub
Bug Compute - Images customer-reported Mgmt
Lingua principale
Java
Stelle
97
Fork
102
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.