Skip to content

Problem: When compressed AIP is stored in a remote space, the Replicas created are missing a pointer file, and the database points to the original AIP's pointer file. #1796

@JBosse-Artefactual

Description

@JBosse-Artefactual

Expected behaviour
When a replica is created from a compressed AIP, it has its own pointer file.

Current behaviour
When a replica is created from a compressed AIP stored in a remote space, it does NOT have its own pointer file. Instead, a directory path is created that should contain the pointer, which is created but left empty, and the MySQL database uses the original AIP pointer file path for the replica.
Meaning when the replica is deleted, the original AIP pointfile is also removed.
AIP UUID: ac38f1ed-86a3-4cd3-8273-888113ae8ab9
Replicat UUID: 257ad555-417b-4f5f-8a2e-798315ae0a76

Path to pointer file: /var/archivematica/storage_service
drwxr-xr-x. 3 archivematica archivematica 18 May 4 12:19 257a
drwxr-xr-x. 3 archivematica archivematica 18 May 4 12:19 ac38

View of directories
[artefactual@############-0 storage_service]$ tree ac38/
ac38/
└── f1ed
└── 86a3
└── 4cd3
└── 8273
└── 8881
└── 13ae
└── 8ab9
└── pointer.ac38f1ed-86a3-4cd3-8273-888113ae8ab9.xml
7 directories, 1 file

[artefactual@############--0 storage_service]$ tree 257a/
257a/
└── d555
└── 417b
└── 4f5f
└── 8a2e
└── 7983
└── 15ae
└── 0a76

7 directories, 0 files

MySQL

uuid current_path pointer_file_path replicated_package_id
257ad555-417b-4f5f-8a2e-798315ae0a76 257a/d555/417b/4f5f/8a2e/7983/15ae/0a76/Jay_Test-257ad555-417b-4f5f-8a2e-798315ae0a76.7z ac38/f1ed/86a3/4cd3/8273/8881/13ae/8ab9/pointer.ac38f1ed-86a3-4cd3-8273-888113ae8ab9.xml ac38f1ed-86a3-4cd3-8273-888113ae8ab9
ac38f1ed-86a3-4cd3-8273-888113ae8ab9 ac38/f1ed/86a3/4cd3/8273/8881/13ae/8ab9/Jay_Test-ac38f1ed-86a3-4cd3-8273-888113ae8ab9.7z ac38/f1ed/86a3/4cd3/8273/8881/13ae/8ab9/pointer.ac38f1ed-86a3-4cd3-8273-888113ae8ab9.xml NULL

Steps to reproduce
Create a compressed AIP and store it in a remote space. Create a replica location or use the replication management command to create a replica of said AIP. Then verify /var/archivematica/storage_service and MySQL database.
Delete said replica and then try to download the original AIPs pointer file.

Your environment (version of Archivematica, operating system, other relevant details)
Archivematica 1.18
Storage Services 0.24.0


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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: reviewThe issue's code has been merged and is ready for testing/review.Type: bugA flaw in the code that causes the software to produce an incorrect or unexpected result.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions