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

Adding a new allowed value results in a NodeTypeConflictException

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • core 1.4.5
    • None
    • jackrabbit-core, nodetype
    • None

    Description

      When a new valid value for an existing enumeration is added to the cnd file, a NodeTypeConflictException is thrown.

      e.g. the repository has a property with the following definition:

      sample:state 'new' mandatory autocreated < 'new', 'old'

      but I need to change the definition to something like that:

      sample:state 'new' mandatory autocreated < 'new', 'old', 'ancient'

      when I try to re-register the property I get the following exception:

      org.apache.jackrabbit.core.nodetype.NodeTypeConflictException:

      {http://www.sample.com/sample}

      Sample contains ambiguous definitions for property named

      {http://www.sample.com/sample}

      state

      see the discussion on the jackrabbit-users mailing list: http://www.nabble.com/re-registering-an-enumerated-property-td19568953.html#a19568953

      Attachments

        Activity

          People

            Unassigned Unassigned
            astrograph Philipp Salzgeber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: