Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3600

Error adding a new child definition to a nodeType with the same name but different requiredPrimareTypeNames using API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.6.1
    • None
    • jackrabbit-spi-commons
    • None

    Description

      I want to register a new child definition under an existing nodetype.
      This nodetype has yet a child definition with the same name but different requiredPrimaryTypeName.

      The NodeTypeDefDiff identify this modification as MAJOR.

      This happens because the code of buildChildNodeDefDiffs method use a QNodeDefinitionId constructor that only uses the declaringNodeType and name (that obviously are the same for the two child definitions).

      So, when the algorithm test the difference between the old child definitions and the new child definitions finds that the existing child definition is modified (currently the requiredPrimaryNodeType).

      Attachments

        1. JCR-3600.patch
          3 kB
          Luca Tagliani

        Activity

          People

            Unassigned Unassigned
            luca.tagliani Luca Tagliani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: