You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@jena.apache.org by GitBox <gi...@apache.org> on 2020/09/10 09:39:23 UTC

[GitHub] [jena] afs commented on a change in pull request #794: JENA-1960: Clean up Fuseki dispatch

afs commented on a change in pull request #794:
URL: https://github.com/apache/jena/pull/794#discussion_r486203790



##########
File path: jena-fuseki2/jena-fuseki-core/src/main/java/org/apache/jena/fuseki/server/Dispatcher.java
##########
@@ -144,19 +146,16 @@ private static ActionProcessor chooseProcessor(HttpAction action) {
 
         // ---- Determine Endpoint.
         String endpointName = mapRequestToEndpointName(action, dataAccessPoint);
+        // Main step of choosing the endpoint for the dispatch of the request.
+        // An endpoint is a (name, operation).
+        // There may be multiple operations for an endpointName of this data service.
 
         Endpoint endpoint = chooseEndpoint(action, dataService, endpointName);
-        if ( endpoint == null ) {
-            if ( isEmpty(endpointName) )
-                ServletOps.errorBadRequest("No operation for request: "+action.getActionURI());
-            else {
-                // No dispatch - the filter passes these through if the ActionProcessor is null.
-                return null;
-                // If this is used, resources (servlets, sttaic files) under "/dataset/" are not accessible.
-                //ServletOps.errorNotFound("No endpoint: "+action.getActionURI());
-            }
+        if ( endpoint == null )
+            // Named service, no such endpoint.
+            // Allows for resources under /dataset/
+            // Does to Jetty's default handling (404 for GET, 405 other methods).

Review comment:
       This is actually out of date. This PR also changes the default handling of this case, replacing the Jetty default handling because Jetty is different to other servers.
   




----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org