validateIntParameter/validateLongParameter in KiwiResources should throw IllegalArgumentException given null params #666
Labels
enhancement
A request for change or improvement to an existing feature
Milestone
Currently
validateIntParameter
andvalidateLongParameter
inKiwiResources
throw aJaxrsBadRequestException
if they are given anull
parameter map. This really is not correct, since these methods are designed to check a given non-null map containing request/query parameters. Instead, if given anull
parameter map, these methods should throwIllegalArgumentException
.JAX-RS methods that return a
MultivaluedMap
containing request/response headers or containing request query parameters do not returnnull
values, therefore we should assume that is the case and consider anull
to be an illegal argument,The text was updated successfully, but these errors were encountered: