You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2021/05/10 07:46:25 UTC
[sling-org-apache-sling-testing-sling-mock-oak] 01/01: SLING-9659
fix Sling NS URI
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch bugfix/SLING-9659-fix-sling-ns-uri
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-sling-mock-oak.git
commit 5fcfab57f2f92836e42f9ff07cb38cbe2ccfdbca
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Mon May 10 09:46:09 2021 +0200
SLING-9659 fix Sling NS URI
---
.../org/apache/sling/testing/mock/sling/oak/ExtraSlingContent.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/sling/testing/mock/sling/oak/ExtraSlingContent.java b/src/main/java/org/apache/sling/testing/mock/sling/oak/ExtraSlingContent.java
index 01fb09f..94c38f4 100644
--- a/src/main/java/org/apache/sling/testing/mock/sling/oak/ExtraSlingContent.java
+++ b/src/main/java/org/apache/sling/testing/mock/sling/oak/ExtraSlingContent.java
@@ -23,7 +23,7 @@ import static org.apache.jackrabbit.JcrConstants.JCR_SYSTEM;
import static org.apache.jackrabbit.oak.plugins.index.IndexConstants.INDEX_DEFINITIONS_NAME;
import static org.apache.jackrabbit.oak.plugins.index.IndexUtils.createIndexDefinition;
import static org.apache.jackrabbit.oak.spi.namespace.NamespaceConstants.REP_NAMESPACES;
-import static org.apache.sling.api.SlingConstants.NAMESPACE_URI_ROOT;
+import static org.apache.sling.jcr.resource.api.JcrResourceConstants.SLING_NAMESPACE_URI;
import org.apache.jackrabbit.oak.plugins.name.Namespaces;
import org.apache.jackrabbit.oak.spi.lifecycle.RepositoryInitializer;
@@ -45,7 +45,7 @@ final class ExtraSlingContent implements RepositoryInitializer {
NodeBuilder jcrSystem = root.getChildNode(JCR_SYSTEM);
if (jcrSystem.hasChildNode(REP_NAMESPACES)) {
NodeBuilder namespaces = jcrSystem.getChildNode(REP_NAMESPACES);
- slingNs = Namespaces.addCustomMapping(namespaces, NAMESPACE_URI_ROOT, slingNs);
+ slingNs = Namespaces.addCustomMapping(namespaces, SLING_NAMESPACE_URI, slingNs);
Namespaces.buildIndexNode(namespaces);
}
}