From 8ce0f22554533046eb8018bfd9e3e06b432f53be Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Sun, 18 Jun 2023 08:17:51 +0200 Subject: [PATCH] Improve ACR support --- .../src/org/argeo/cms/jcr/acr/JcrContentProvider.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/org.argeo.cms.jcr/src/org/argeo/cms/jcr/acr/JcrContentProvider.java b/org.argeo.cms.jcr/src/org/argeo/cms/jcr/acr/JcrContentProvider.java index bc4aa5b..0e641b1 100644 --- a/org.argeo.cms.jcr/src/org/argeo/cms/jcr/acr/JcrContentProvider.java +++ b/org.argeo.cms.jcr/src/org/argeo/cms/jcr/acr/JcrContentProvider.java @@ -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(); } -- 2.30.2