Repository navigation
Conversation
zRains
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue: AMBARI-26682
What changes were proposed in this pull request?
Creating a View on a running Jetty 12 Server fails because Servlet cookie configuration rejects updates in the already started request context. After that is corrected, CGLIB's transitive ASM 7.1 prevents Jetty from scanning the View's Java 17 classes.
Configure new session handlers through Jetty's equivalent setters, preserving the cookie name, path, HttpOnly, HTTPS Secure flag, and inactivity timeout. Import the ASM 9.10.1 BOM to align the runtime family with Jetty. Add regressions for initialization during an actual HTTP request and discovery of a compiled Java 17 annotated servlet. Update the existing Server test to assert real cookie attributes instead of specific setter calls.
How was this patch tested?
All 30 tests passed: AmbariServerTest (14), SessionHandlerConfigurerTest (4), JettyViewJspIntegrationTest (2), AmbariHandlerListTest (5), and AmbariSessionManagerTest (5).
Before the production fixes, the new live-request cases returned HTTP 500 for both HTTP and HTTPS cookie settings, and the annotated-servlet test failed with
Unsupported class file major version 61. The existing JSP rendering and custom error page test also passes after the fix.mvn -B -ntp -o -pl ambari-server -am dependency:tree '-Dincludes=org.ow2.asm:*' -Dverboseconfirms that asm, asm-commons, and asm-tree resolve to 9.10.1, including the older CGLIB and Hadoop transitive paths. Python and frontend builds were skipped for this Java-only change.mvn -B -ntp -o -pl ambari-server -am test -Dtest=AmbariServerTest,SessionHandlerConfigurerTest,JettyViewJspIntegrationTest,AmbariHandlerListTest,AmbariSessionManagerTest -Dsurefire.failIfNoSpecifiedTests=false -DskipPythonTests -DskipUiBuild -Dcheckstyle.skip -Drat.skipPlease review Ambari Contributing Guide before opening a pull request.