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

Referential Integrity error with child node + reference property

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 3.0.0.CR2
    • Fix Version/s: 3.0.0.CR3
    • Component/s: JCR
    • Labels:
      None

      Description

      I have the following simple test case for this problem:

      1) Create NodeA
      2) Create NodeB
      3) Create NodeB/Rel with reference property pointing to Node A
      4) session.save()
      5) Delete NodeB (should delete all its children + refs?)
      6) session.save()
      7) Delete NodeA (should be ok to do if B was deleted)
      8) session.save() ==> results in Referential Integrity Error

      It seems that the reference from the property in NodeB/Rel is not deleted when NodeB is deleted.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                rhauch Randall Hauch
                Reporter:
                eric.wittmann Eric Wittman
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: