You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by re...@apache.org on 2023/03/16 15:52:24 UTC

[jackrabbit-filevault] branch JCRVLT-696 created (now d283ae6c)

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

reschke pushed a change to branch JCRVLT-696
in repository https://gitbox.apache.org/repos/asf/jackrabbit-filevault.git


      at d283ae6c JCRVLT-696: add logging for primary node type changes

This branch includes the following new commits:

     new d283ae6c JCRVLT-696: add logging for primary node type changes

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[jackrabbit-filevault] 01/01: JCRVLT-696: add logging for primary node type changes

Posted by re...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

reschke pushed a commit to branch JCRVLT-696
in repository https://gitbox.apache.org/repos/asf/jackrabbit-filevault.git

commit d283ae6cc2a17966e66ff9b2a6156e76954d25a2
Author: Julian Reschke <ju...@gmx.de>
AuthorDate: Thu Mar 16 16:52:18 2023 +0100

    JCRVLT-696: add logging for primary node type changes
---
 .../java/org/apache/jackrabbit/vault/fs/impl/io/DocViewImporter.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/impl/io/DocViewImporter.java b/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/impl/io/DocViewImporter.java
index a2777edc..f7221f01 100644
--- a/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/impl/io/DocViewImporter.java
+++ b/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/impl/io/DocViewImporter.java
@@ -984,6 +984,7 @@ public class DocViewImporter implements DocViewParserHandler {
             if (importMode == ImportMode.REPLACE && !"rep:root".equals(primaryType) && wspFilter.includesProperty(PathUtil.append(node.getPath(), JcrConstants.JCR_PRIMARYTYPE))) {
                 if (!node.getPrimaryNodeType().getName().equals(primaryType)) {
                     vs.ensureCheckedOut();
+                    log.trace("Setting primary node type {} for {}", primaryType, node.getPath());
                     node.setPrimaryType(primaryType);
                     updatedNode = node;
                 }