Jackrabbit Content Repository
  1. Jackrabbit Content Repository
  2. JCR-1781

Adding a new allowed value results in a NodeTypeConflictException

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: core 1.4.5
    • Fix Version/s: None
    • Component/s: jackrabbit-core, nodetype
    • Labels:
      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

        Activity

        angela made changes -
        Component/s jackrabbit-core [ 12310114 ]
        Component/s nodetype [ 11614 ]
        Jukka Zitting made changes -
        Field Original Value New Value
        Workflow jira [ 12443335 ] no-reopen-closed, patch-avail [ 12467845 ]
        Philipp Salzgeber created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Philipp Salzgeber
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development