Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-8820

File can't be deleted if version with none existing workspace is present

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Medium
    • None
    • 6.2.26
    • None
    • None

    Description

      Steps to reproduce

      1. create workspace "downloads"
      2. add new asset to workspace
      3. update asset to create a version
      4. migrate asset do "dam" workspace
      5. delete workspace "downloads"
      6. try to delete migrated asset

      Expected results

      Asset and its versions get deleted. If a version with a reference to an non existing workspace exists an error is logged but the deletion still works.

      Actual results

      Asset can not be deleted and an error is thrown that lists the none existing workspace.

      Workaround

      Groovy Script that deletes the asset without failing.

      Development notes

      Error is thrown in BaseVersionManager.java:573 because Magnolia tries to get a session for a sourceWorkspace that does not exist anymore.

      Either check if the sourceWorkspace still exists with the RepositoryManager or catch the NoSuchWorkspaceException and print the error to the log while removing the version.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              hloepprich Horst Loepprich
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD