Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3867

DSO.isModified() and DSO.isModifiedMetadata() handling

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 6.2
    • Fix Version/s: None
    • Component/s: API
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      2
    • Documentation Status:
      Needed

      Description

      All DSpaceObjects have two flags for modification: isModified and isMetadataModified. The current behavior is inconsistent. isMetadataModified gets never reset once the flag is set by modifying the metadata, even after the object is persisted using the update method of the corresponding DSpaceObjectServiceImpl. isModified mostly gets reset in the update method, but at least here: https://github.com/DSpace/DSpace/blob/8a48f78/dspace-api/src/main/java/org/dspace/content/CommunityServiceImpl.java#L257-L267 the logic seems wrong.

      The handling of the two modification flags of the DSpaceObjects should be checked.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            sulfrian Alexander Sulfrian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: