Uploaded image for project: 'Islandora'
  1. Islandora
  2. ISLANDORA-2068

Loss of potential RELS-INT statements when RELS-INT exists and is purged

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.x-1.10
    • Component/s: Tuque API
    • Labels:
      None

      Description

      When the RELS-INT is purged and there are existing Datastream objects, it's possible to have the following scenario:

      RELS-INT statement a contains a literal "A"
      RELS-INT statement b contains a literal "B".

      The expected outcome is for the RELS-INT to contain two separate entries with both literals "A" and "B" present.

      When the RELS-INT datastream exists and is purged and additional RELS-INT add actions take place only the "B" literal is present. This behavior was uncovered while writing a test for ISLANDORA-2067.

      This is mitigated by the fact there are no direct calls to "purgeDatastream('RELS-INT')" in the code base. However, this is unexpected behavior and could throw a developer threw a loop.

      A PHPUnit test was written to document this behavior in ISLANDORA-2067 but is currently being marked as incomplete as the outcome will fail until this bug is fixed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jordandukart Jordan Dukart
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: