Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have JaxRsService save response headers and, if Jersey does not handle the request, restore the saved headers #9683

Merged
merged 3 commits into from
Feb 4, 2025

Conversation

tjquinno
Copy link
Member

@tjquinno tjquinno commented Jan 23, 2025

Description

Resolves #9675

If JaxRsService#doHandle finds that Jersey does not handle a request, it resets the routing and lets the SE request handling have a chance.

Resetting the routing also clears any response headers (for example, set by an upstream SE filter).

With this PR, #doHandle saves the current response headers and, if Jersey did not handle the request, resets the routing _and restores the saved headers` before handing the request off to SE.

The PR also adds an integration test.

Documentation

No impact.

@tjquinno tjquinno self-assigned this Jan 23, 2025
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jan 23, 2025
@tjquinno tjquinno force-pushed the 4.x-jaxrsservice-save-headers branch from dec5224 to fed0002 Compare January 24, 2025 17:57
@tjquinno tjquinno merged commit f856670 into helidon-io:main Feb 4, 2025
58 checks passed
@tjquinno tjquinno deleted the 4.x-jaxrsservice-save-headers branch February 4, 2025 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4.x Header set in SE-style filter is cleared by JAX-RS handling
2 participants