Description
I am a beginner of apache knox. When I use knox to proxy my sparkhistoryui, I meet this problem.
<a href="/history/application_1505879554093_0036/stages/stage?id=0&attempt=0" class="name-link">
Some query parameters in the response body of the spark history ui contain a
&
org.apache.hadoop.gateway.util.urltemplate.Parser#consumeQueryToken does not handle this case
StringTokenizer tokenizer = new StringTokenizer( token, "?&" ); while( tokenizer.hasMoreTokens() ) { consumeQuerySegment( builder, tokenizer.nextToken() ); }
so,I changed the code block as bellows
String[] tokens = token.split("(&|\\?|&)"); if (tokens != null){ for (String nextToken : tokens){ consumeQuerySegment(builder,nextToken); } }