Julian Reschke created JCRVLT-766:
-------------------------------------

             Summary: vlt: definition of protected properties for create/update 
may be incorrect
                 Key: JCRVLT-766
                 URL: https://issues.apache.org/jira/browse/JCRVLT-766
             Project: Jackrabbit FileVault
          Issue Type: Bug
          Components: vlt
            Reporter: Julian Reschke


See 
<https://github.com/apache/jackrabbit-filevault/blob/931ceef98513167af3218b773d9213e123a2f52d/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/impl/io/DocViewImporter.java#L120-L139>.

Two issues:

1. JCR_UUID is mentioned in
{noformat}
    /**
     * these properties are protected but are set for updated nodes via special 
JCR methods
     */
    static final Set<Name> 
PROTECTED_PROPERTIES_CONSIDERED_FOR_UPDATED_NODES;{noformat}

but JCR_UUID is not really settable (in general) with special JCR methods (but 
see OAK-11000).

(FWIW, moving it just into the 2nd set does not break any tests)

2. the description is somewhat misleading, maybe

"these properties are protected but are set for updated nodes via special JCR 
methods  (such as setPrimaryType) or sysview XML import". 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to