This is an automated email from the ASF dual-hosted git repository. jsedding pushed a commit to branch jsedding/SLING-13251-mbean-registration-robustness in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-engine.git
commit a8bab6e2e30d01af2c9f19bcc6be862cb2dd4d40 Author: Julian Sedding <[email protected]> AuthorDate: Wed Jun 24 11:47:05 2026 +0200 SLING-13251 - MBean registration in ServletFilterManager fails for factory components - prefer service.pid over component.name, as the former is unique (if present), whereas the latter is not unique --- .../java/org/apache/sling/engine/impl/helper/SlingFilterConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/sling/engine/impl/helper/SlingFilterConfig.java b/src/main/java/org/apache/sling/engine/impl/helper/SlingFilterConfig.java index 692ec9f..7d4c513 100644 --- a/src/main/java/org/apache/sling/engine/impl/helper/SlingFilterConfig.java +++ b/src/main/java/org/apache/sling/engine/impl/helper/SlingFilterConfig.java @@ -35,7 +35,7 @@ import static org.osgi.service.component.ComponentConstants.COMPONENT_NAME; public class SlingFilterConfig implements FilterConfig { /** The list of property names checked by {@link #getName(ServiceReference)} */ - private static final String[] NAME_PROPERTIES = {"sling.core.servletName", COMPONENT_NAME, SERVICE_PID, SERVICE_ID}; + private static final String[] NAME_PROPERTIES = {"sling.core.servletName", SERVICE_PID, COMPONENT_NAME, SERVICE_ID}; /** The <code>ServletContext</code> of this configuration object */ private ServletContext servletContext;
