Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1828

ConstraintViolationException when updating the definition of the same node in a session

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.1.3.Final, 3.2.0.Final
    • 3.1.2.Final
    • None
    • None

      Updating a nodeType while a repository is active will not work unless the repository is shutdown and restarted again. I believe once the nodeTypeCache is populated, updates to the same type will never be seen.

      Scenario:

      session.workspace().getNodeTypeManager().registerNodeTypes(<initial cnd>, true);
      

      with the CND being:

      [test:nodeTypeA]
      - fieldA (STRING)
      

      and then subsequently updated with:

      [test:nodeTypeA]
      - fieldA (STRING)
      - fieldB (STRING)
      

      will cause a CVE when updating a node of type "nodeTypeA" in the same session. I believe I have found the culprit, pull request forthcoming.

              rhauch Randall Hauch (Inactive)
              clementp_jira Clement Pang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: