[ https://issues.apache.org/jira/browse/SPARK-33611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17240815#comment-17240815 ]
Apache Spark commented on SPARK-33611: -------------------------------------- User 'gengliangwang' has created a pull request for this issue: https://github.com/apache/spark/pull/30552 > Decode Query parameters of the redirect URL for reverse proxy > ------------------------------------------------------------- > > Key: SPARK-33611 > URL: https://issues.apache.org/jira/browse/SPARK-33611 > Project: Spark > Issue Type: Bug > Components: Web UI > Affects Versions: 3.0.0, 3.1.0 > Reporter: Gengliang Wang > Assignee: Gengliang Wang > Priority: Major > > When running Spark with reverse proxy enabled, the query parameter of the > request URL can be encoded twice: one from the browser and another one from > the reverse proxy(e.g. Nginx). > In Spark's stage page, the URL of "/taskTable" contains query parameter > order[0][dir]. After encoding twice, the query parameter becomes > `order%255B0%255D%255Bdir%255D` and it will be decoded as > `order%5B0%5D%5Bdir%5D` instead of `order[0][dir]`. As a result, there will > be NullPointerException from > https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/status/api/v1/StagesResource.scala#L176 > Other than that, the other parameter may not work as expected after encoded > twice. > We should decode the query parameters and fix the problem -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org