Skip to content

Problem: Zipped directory not processed correctly because of root folder #1812

Description

@cmhosale

Expected behaviour
Given a standard zipped package with a top level directory and both "objects" and "metadata" subdirectories,
Archivematica ignores the top level directory created when unzipping the zip package and correctly processes the object and metadata subdirectories. (This is what happens with a zipped bag transfer type, and we expected standard transfer "zipped directory" to be the same.)

Current behaviour
When Archivematica unzips a standard transfer (aka "Zipped directory"), it doesn't ignore or eliminate the top level directory, it treats it as the main object package. It does not correctly process the object and metadata subdirectories, instead treating those all as objects. The top level directory, metadata, and objects folder all end up in the AIP's object folder.

Steps to reproduce
Structure a package in a directory named "test_transfer". The directory has two subdirectories - "objects" and "metadata" - with the usual content in both. Zip up the "test_transfer" directory as a ".zip" and submit it as a standard transfer. Archivematica will not process the metadata and objects correctly.

Your environment (version of Archivematica, operating system, other relevant details)
Archivematica 1.18 running on Ubuntu 22.04.5


For Artefactual use:

Before you close this issue, you must check off the following:

  • All pull requests related to this issue are properly linked
  • All pull requests related to this issue have been merged
  • A testing plan for this issue has been implemented and passed (testing plan information should be included in the issue body or comments)
  • Documentation regarding this issue has been written and merged (if applicable)
  • Details about this issue have been added to the release notes (if applicable)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Request: discussionThe path towards resolving the issue is unclear and opinion is sought from other community members.Type: bugA flaw in the code that causes the software to produce an incorrect or unexpected result.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions