sarutak commented on code in PR #53116:
URL: https://github.com/apache/spark/pull/53116#discussion_r2540210923
##########
core/src/test/scala/org/apache/spark/ui/UISuite.scala:
##########
@@ -400,7 +403,7 @@ class UISuite extends SparkFunSuite {
}
}
- test("SPARK-45522: Jetty 10 and above shouuld return status code 302 with
correct redirect url" +
+ test("SPARK-47086: Jetty 12 and above should return status code 301 with
correct redirect url" +
Review Comment:
Yes. When a context root path is accessed without trailing slash, `301` is
returned.
*
https://github.com/jetty/jetty.project/blob/4137e00793d583cfc4ce76bf607e482178a85597/jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/handler/ContextHandler.java#L1205
*
https://github.com/jetty/jetty.project/blob/4137e00793d583cfc4ce76bf607e482178a85597/jetty-core/jetty-server/src/main/java/org/eclipse/jetty/server/handler/ContextHandler.java#L1259
While Servlet's `HttpServletResponse.sendRedirect` still returns `302`.
*
https://github.com/jetty/jetty.project/blob/4137e00793d583cfc4ce76bf607e482178a85597/jetty-ee10/jetty-ee10-servlet/src/main/java/org/eclipse/jetty/ee10/servlet/ServletApiResponse.java#L175
--
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]