DSpace
  1. DSpace
  2. DS-761

MetadataSchema: cache out of sync after calling delete()

    Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.7.1, 1.8.0
    • Component/s: DSpace API
    • Labels:
      None
    • Attachments:
      1
    • Comments:
      0

      Description

      How to reproduce the bug:

      1) Delete a metadata schema by calling delete() method of the MetadataSchema class.

      2) Call find() method of the MetadataSchema class with the ID of the previously deleted metadata schema.

      Expected return value: null
      Actual return value: already deleted metadata schema

      This happens because the value is fetched from the cache and not from the database. The attached patch should fix the issue by adding a call to decache() method in delete() method.

        Activity

        Claudia Juergen
        19/Jan/11 3:27 PM
        View full commit
        [DS-761] MetadataSchema: cache out of sync after calling delete() git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@6026 9c30dcfa-912a-0410-8fc2-9e0234be79fd
        Claudia Juergen
        19/Jan/11 3:29 PM
        View full commit
        [DS-761] MetadataSchema: cache out of sync after calling delete() git-svn-id: http://scm.dspace.org/svn/repo/dspace/branches/dspace-1_7_x@6027 9c30dcfa-912a-0410-8fc2-9e0234be79fd
        Claudia Jürgen made changes -
        Field Original Value New Value
        Status Received [ 10001 ] Open [ 1 ]
        Assignee Claudia Jürgen [ cjuergen ]
        Claudia Jürgen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.7.1 [ 10353 ]
        Fix Version/s 1.8.0 [ 10343 ]
        Resolution Fixed [ 1 ]
        Tim Donohue made changes -
        Workflow DSpace Workflow [ 15769 ] DSpace JIRA Workflow [ 23173 ]
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Claudia Jürgen
            Reporter:
            Janne Pietarila
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: