Github user afs commented on a diff in the pull request:

    https://github.com/apache/jena/pull/463#discussion_r210891477
  
    --- Diff: 
jena-fuseki2/jena-fuseki-embedded/src/main/java/org/apache/jena/fuseki/embedded/FusekiServer.java
 ---
    @@ -455,30 +527,36 @@ private static void 
setMimeTypes(ServletContextHandler context) {
     
             private void servlets(ServletContextHandler context) {
                 // Fuseki dataset services filter
    +            // This goes as the filter at the end of any filter chaining.
                 FusekiFilter ff = new FusekiFilter();
    -            FilterHolder h = new FilterHolder(ff);
    -            context.addFilter(h, "/*", null);
    -
    -            other.forEach(p->addServlet(context, p.getLeft(), 
p.getRight()));
    +            addFilter(context, "/*", ff);
                 
                 if ( withStats )
                     addServlet(context, "/$/stats", new ActionStats());
                 if ( withPing )
                     addServlet(context, "/$/ping", new ActionPing());
                 
    +            servlets.forEach(p->addServlet(context, p.getLeft(), 
p.getRight()));
    +            filters.forEach (p-> addFilter(context, p.getLeft(), 
p.getRight()));
    +
                 if ( staticContentDir != null ) {
                     DefaultServlet staticServlet = new DefaultServlet();
                     ServletHolder staticContent = new 
ServletHolder(staticServlet);
                     staticContent.setInitParameter("resourceBase", 
staticContentDir);
                     context.addServlet(staticContent, "/");
                 }
             }
    -
    +        
    --- End diff --
    
    There is a tradeoff here - simply turning on the save action to remove 
trailing spaces is likely to cause such formatting changes on files with 
functional changes. Previously, keeping formatting changes separate from 
functional changes has been requested. (I'm neutral.)


---

Reply via email to