Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-229

add support for forcing re-registration of nodetypes

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.42
    • Fix Version/s: None
    • Component/s: Packaging
    • Labels:
      None

      Description

      The current nodetype import handling does not re-register nodetypes if they already exist in the repository. the reason why vault doesn't update the nodetype is that it might not always be desired. since every package automatically includes all the nodetypes it uses, installing it in an "older" repository might downgrade the nodetypes and cause a lot of problems.

      for specific "upgrade-packages" it might be necessary to force a re-registration of the nodetype. I suggest to either to allow the nodetypes in the CND to be annotated to force update, eg:

      @ForceRegister
      [sling:Folder] > nt:folder
        - * (undefined) multiple
        - * (undefined)
        + * (nt:base) = sling:Folder version
      

      but then we need to tweak the CND parser...or preprocess the cnd.

      alternatively, the information could be added to the package properties, eg:

      reregisterNodeTypes="sling:Folder"
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tripod Tobias Bocanegra
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: