haythemkh commented on a change in pull request #115: URL: https://github.com/apache/solr/pull/115#discussion_r633587123
########## File path: solr/core/src/java/org/apache/solr/servlet/SolrRequestParsers.java ########## @@ -171,23 +169,22 @@ public SolrQueryRequest parse( SolrCore core, String path, HttpServletRequest re ArrayList<ContentStream> streams = new ArrayList<>(1); SolrParams params = parser.parseParamsAndFillStreams( req, streams ); - Span span = (Span) req.getAttribute(Span.class.getName()); // not null but maybe in some tests? - if (span != null && !(span instanceof NoopSpan)) { - span.setTag("params", params.toString()); - } SolrQueryRequest sreq = buildRequestFrom(core, params, streams, getRequestTimer(req), req); // Handlers and login will want to know the path. If it contains a ':' // the handler could use it for RESTful URLs - sreq.getContext().put(PATH, RequestHandlers.normalize(path)); + String pathNormalized = RequestHandlers.normalize(path); Review comment: why did you need to split the above row in two? we only use the variable introduced `pathNormalized` for the setting below -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org