Open pakoito opened 2 years ago
@pakoito Are you already working on the feature? If not, I can develop the feature. I just have to ask my manager beforehand if I can devote working hours to this issue. If yes, I can take care of that.
I am not working on it and it's bitten us already once more, so happy that you do it :D
Resteasy behaves the same way. If no values are passed, the array is empty. Thus, the for loop is never executed.
If I understand the code correctly.
Unfortunately, the behavior discussed here is not described in the specification: https://jakarta.ee/specifications/restful-ws/3.0/apidocs/jakarta/ws/rs/core/uribuilder#queryParam(java.lang.String,java.lang.Object...)
We have URIs encoded as
?key=value&flag&key2=value
, where you can see thatflag
has no value.In the current implementation of
JerseyUriBuilder
these are not allowedhttps://github.com/eclipse-ee4j/jersey/blob/3716939adb721351e01b78bc54845b97bb6c836d/core-common/src/main/java/org/glassfish/jersey/uri/internal/JerseyUriBuilder.java#L534-L544
We would like for Jersey to please support this feature, as it's frequently used by JS frontends as defined by rfc3986.