jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Mueller (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-1660) Consistency check / fix skips system nodes
Date Mon, 23 Jun 2008 08:40:45 GMT
Consistency check / fix skips system nodes
------------------------------------------

                 Key: JCR-1660
                 URL: https://issues.apache.org/jira/browse/JCR-1660
             Project: Jackrabbit
          Issue Type: Bug
          Components: jackrabbit-core
            Reporter: Thomas Mueller
            Priority: Minor


BundleDbPersistenceManager.checkBundleConsistency skips the consistency check and fix for
some nodes:

// skip check for system nodes (root, system root, version storage, node types)
if (entry.getId().toString().endsWith("babecafebabe")) {
    continue;
}
if (id.toString().endsWith("babecafebabe")) {
    continue;
}

The reason is (as far as I understand) that some system nodes refer to child nodes in another
workspace. But probably this check should be more specific so that real inconsistencies in
the system nodes are still fixed.

Also, it is not nice to hardcode "babecafebabe" here: a constant should be used, or some other
solution that does not rely on a fixed system node id.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message