-
Bug
-
Resolution: Done
-
Major
-
None
-
None
As a followup to RESTEASY-1099, when calling setRequestUri, the current query parameters aren't cleared, and new query parameters are merged into existing ones.
In my specific case (OAuth/OpenID Connect implementation, setRequestUri being called from a pre-matching filter to rewrite the URI depending on X-Forwarded-Proto), the problem is that having parameters appearing more than once is seen as an error (even if repeated with the same value). So my filter (see code snippet in RESTEASY-1099) is breaking my downstream resource by artificially duplicating the query parameters.
Note that the workaround highlights another bug: UriInfo.getQueryParameters returns mutable maps.
- clones
-
RESTEASY-1308 ContainerRequestContext setRequestUri doesn't clear previous query parameters
- Closed
- is incorporated by
-
JBEAP-4600 Upgrade Resteasy to 3.0.17.Final
- Closed