janhoy commented on a change in pull request #1018: SOLR-13941: Configure 
JettySolrRunner same as in web.xml
URL: https://github.com/apache/lucene-solr/pull/1018#discussion_r348091182
 
 

 ##########
 File path: 
solr/core/src/java/org/apache/solr/client/solrj/embedded/JettySolrRunner.java
 ##########
 @@ -381,7 +381,8 @@ public void lifeCycleStarted(LifeCycle arg0) {
         dispatchFilter = 
root.getServletHandler().newFilterHolder(Source.EMBEDDED);
         dispatchFilter.setHeldClass(SolrDispatchFilter.class);
         dispatchFilter.setInitParameter("excludePatterns", excludePatterns);
-        root.addFilter(dispatchFilter, "*", 
EnumSet.of(DispatcherType.REQUEST));
+        // Map dispatchFilter in same path as in web.xml
+        root.addFilter(dispatchFilter, "/*", 
EnumSet.of(DispatcherType.REQUEST));
 
 Review comment:
   Done

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to