You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "echonesis (via GitHub)" <gi...@apache.org> on 2026/07/22 10:19:41 UTC
[PR] HDDS-15933. Remove usage of jersey internal ContainerRequest [ozone]
echonesis opened a new pull request, #10839:
URL: https://github.com/apache/ozone/pull/10839
## What changes were proposed in this pull request?
`TestVirtualHostStyleFilter` used Jersey's internal `ContainerRequest` implementation to construct requests for testing. This introduced an unnecessary dependency on Jersey implementation details.
This PR:
- replaces `ContainerRequest` with mocked standard JAX-RS `ContainerRequestContext` and `UriInfo` interfaces;
- verifies request URI updates through `ContainerRequestContext#setRequestUri`;
- preserves query parameter coverage without relying on query parameter ordering; and
- removes the unused direct `jersey-common` dependency from `ozone-s3gateway`. The dependency remains available transitively through `jersey-server`.
Generated-by: Codex (GPT-5)
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-15933
## How was this patch tested?
Local Test
```
mvn -pl :ozone-s3gateway test \
-Dtest=TestVirtualHostStyleFilter \
-DskipShade -DskipRecon -DskipDocs
```
GitHub Actions CI: https://github.com/echonesis/ozone/actions/runs/29900380211
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-15933. Remove usage of jersey internal ContainerRequest [ozone]
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #10839:
URL: https://github.com/apache/ozone/pull/10839#issuecomment-5078539130
Thanks @echonesis for the patch, @chihsuan, @chungen0126 for the review.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-15933. Remove usage of jersey internal ContainerRequest [ozone]
Posted by "echonesis (via GitHub)" <gi...@apache.org>.
echonesis commented on PR #10839:
URL: https://github.com/apache/ozone/pull/10839#issuecomment-5086433365
Thanks @chihsuan, @chungen0126 for the review, @adoroszlai for the merge.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-15933. Remove usage of jersey internal ContainerRequest [ozone]
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai merged PR #10839:
URL: https://github.com/apache/ozone/pull/10839
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org