Skip to content
Snippets Groups Projects
Unverified Commit 021062af authored by Stan Zhai's avatar Stan Zhai Committed by Sean Owen
Browse files

[SPARK-19622][WEBUI] Fix a http error in a paged table when using a `Go` button to search.

## What changes were proposed in this pull request?

The search function of paged table is not available because of we don't skip the hash data of the reqeust path.

![](https://issues.apache.org/jira/secure/attachment/12852996/screenshot-1.png)

## How was this patch tested?

Tested manually with my browser.

Author: Stan Zhai <zhaishidan@haizhi.com>

Closes #16953 from stanzhai/fix-webui-paged-table.
parent 9d2d2204
No related branches found
No related tags found
No related merge requests found
...@@ -175,13 +175,14 @@ private[ui] trait PagedTable[T] { ...@@ -175,13 +175,14 @@ private[ui] trait PagedTable[T] {
val hiddenFormFields = { val hiddenFormFields = {
if (goButtonFormPath.contains('?')) { if (goButtonFormPath.contains('?')) {
val querystring = goButtonFormPath.split("\\?", 2)(1) val queryString = goButtonFormPath.split("\\?", 2)(1)
val search = queryString.split("#")(0)
Splitter Splitter
.on('&') .on('&')
.trimResults() .trimResults()
.omitEmptyStrings() .omitEmptyStrings()
.withKeyValueSeparator("=") .withKeyValueSeparator("=")
.split(querystring) .split(search)
.asScala .asScala
.filterKeys(_ != pageSizeFormField) .filterKeys(_ != pageSizeFormField)
.filterKeys(_ != prevPageSizeFormField) .filterKeys(_ != prevPageSizeFormField)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment