JiaLiangC opened a new pull request, #4265:
URL: https://github.com/apache/ambari/pull/4265

   Issue: [AMBARI-26682](https://issues.apache.org/jira/browse/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.
   
   ## How was this patch tested?
   
   All 16 tests passed: 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:*' -Dverbose` confirms 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.
   
   ```shell
   mvn -B -ntp -o -pl ambari-server -am test 
-Dtest=SessionHandlerConfigurerTest,JettyViewJspIntegrationTest,AmbariHandlerListTest,AmbariSessionManagerTest
 -Dsurefire.failIfNoSpecifiedTests=false -DskipPythonTests -DskipUiBuild 
-Dcheckstyle.skip -Drat.skip
   ```
   
   Please review [Ambari Contributing 
Guide](https://cwiki.apache.org/confluence/display/AMBARI/How+to+Contribute) 
before opening a pull request.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to