This is an automated email from the ASF dual-hosted git repository.

radu pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-servlets-resolver.git


The following commit(s) were added to refs/heads/master by this push:
     new dc8483d  SLING-10934 - Bundled scripts in the form of 
<resourceLabel>.<METHOD>.<extension> override the Sling POST Servlet
dc8483d is described below

commit dc8483d87b10c38511c05de7fdf70f1219fc2b64
Author: Karl Pauls <[email protected]>
AuthorDate: Mon Nov 22 11:59:05 2021 +0100

    SLING-10934 - Bundled scripts in the form of 
<resourceLabel>.<METHOD>.<extension> override the Sling POST Servlet
---
 .../resolver/internal/resource/ServletResourceProviderFactory.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/sling/servlets/resolver/internal/resource/ServletResourceProviderFactory.java
 
b/src/main/java/org/apache/sling/servlets/resolver/internal/resource/ServletResourceProviderFactory.java
index 169066f..203bc8c 100644
--- 
a/src/main/java/org/apache/sling/servlets/resolver/internal/resource/ServletResourceProviderFactory.java
+++ 
b/src/main/java/org/apache/sling/servlets/resolver/internal/resource/ServletResourceProviderFactory.java
@@ -324,7 +324,7 @@ public class ServletResourceProviderFactory {
                             pathAdded = true;
                         }
                     }
-                } else if (methods != null) {
+                } else if (methods != null && !hasPathRegistration) {
                     // only methods declared
                     for (String method : methods) {
                         pathSet.add(selPath + method + SERVLET_PATH_EXTENSION);

Reply via email to