SLING-10011 : Use JackrabbitSession.getParentOrNull when resolving parent JCR node in JcrResourceProvider#getParent. improve log output finding as reported by joerg.
diff --git a/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrItemResourceFactory.java b/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrItemResourceFactory.java
index d822209..20b9424 100644
--- a/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrItemResourceFactory.java
+++ b/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrItemResourceFactory.java
@@ -212,7 +212,7 @@
                 parent = session.getNode(parentPath);
             }
         } catch (RepositoryException e) {
-            log.debug("Unable to access node at " + parentPath + ", possibly invalid path", e);
+            log.debug("Unable to access node at {}", parentPath, e);
         }
 
         return parent;