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:
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
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: