Improve ACR support
authorMathieu Baudier <mbaudier@argeo.org>
Sun, 18 Jun 2023 06:17:51 +0000 (08:17 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Sun, 18 Jun 2023 06:17:51 +0000 (08:17 +0200)
org.argeo.cms.jcr/src/org/argeo/cms/jcr/acr/JcrContentProvider.java

index bc4aa5be418b33c966e87e95eb2a955bd2670996..0e641b19a7c0f8bc06522dae41f68a997530a6c3 100644 (file)
@@ -69,8 +69,7 @@ public class JcrContentProvider implements ContentProvider, NamespaceContext {
 
        @Override
        public boolean exists(ProvidedSession contentSession, String relativePath) {
-               String jcrWorkspace = ContentUtils.getParentPath(mountPath)[1];
-               String jcrPath = "/" + relativePath;
+               String jcrPath = ContentUtils.SLASH + relativePath;
                return new JcrContent(contentSession, this, jcrWorkspace, jcrPath).exists();
        }