1. [SPARK-24506][UI] Add UI filters to tabs added after binding (details)
Commit a55de387db901975e68e88c68ec464d49f240270 by vanzin
[SPARK-24506][UI] Add UI filters to tabs added after binding
## What changes were proposed in this pull request?
Currently, `spark.ui.filters` are not applied to the handlers added
after binding the server. This means that every page which is added
after starting the UI will not have the filters configured on it. This
can allow unauthorized access to the pages.
The PR adds the filters also to the handlers added after the UI starts.
## How was this patch tested?
manual tests (without the patch, starting the thriftserver with `--conf
you can access `http://localhost:4040/sqlserver`; with the patch, 401 is
the response as for the other pages).
Author: Marco Gaido <>
Closes #21523 from mgaido91/SPARK-24506.
(cherry picked from commit f53818d35bdef5d20a2718b14a2fed4c468545c6)
Signed-off-by: Marcelo Vanzin <>
The file was modifiedcore/src/main/scala/org/apache/spark/deploy/history/HistoryServer.scala (diff)
The file was modifiedcore/src/main/scala/org/apache/spark/ui/JettyUtils.scala (diff)