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 14:28:36 UTC

[sling-org-apache-sling-testing-sling-mock-oak] branch master updated: SLING-9659 fix Sling NS URI (#2)

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

kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-sling-mock-oak.git


The following commit(s) were added to refs/heads/master by this push:
     new 322aaad  SLING-9659 fix Sling NS URI (#2)
322aaad is described below

commit 322aaad2c22bfe764afc8ec9c40fb078cdf31250
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Mon May 10 16:28:29 2021 +0200

    SLING-9659 fix Sling NS URI (#2)
---
 .../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);
             }
         }