Expected behaviour
The Storage Service move package API endpoint removes the source package copy after successfully moving the package to the target location.
Current behaviour
If you move an AIP from a local filesystem AIP storage location to an S3 AIP storage location, the AIP is stored in the S3 bucket, but the original filesystem-based copy is left behind.
Steps to reproduce
-
Start a local Archivematica environment with a Storage Service connected to both:
- a local filesystem AIP storage location
- an S3 AIP storage location
-
Create a new standard transfer and store the resulting AIP in the local filesystem AIP storage location.
-
Confirm that the AIP exists in the local filesystem AIP storage location.
-
Use the Storage Service move package API endpoint to move the AIP to the S3 AIP storage location.
-
Confirm that the move request completes successfully and that the AIP package record now points to the S3 AIP storage location.
-
Confirm that the AIP object exists in the S3 bucket.
-
Check the original local filesystem AIP storage path.
-
Observe that the original local filesystem copy still exists after the successful move.
Your environment (version of Archivematica, operating system, other relevant details)
For Artefactual use:
Before you close this issue, you must check off the following:
Expected behaviour
The Storage Service move package API endpoint removes the source package copy after successfully moving the package to the target location.
Current behaviour
If you move an AIP from a local filesystem AIP storage location to an S3 AIP storage location, the AIP is stored in the S3 bucket, but the original filesystem-based copy is left behind.
Steps to reproduce
Start a local Archivematica environment with a Storage Service connected to both:
Create a new standard transfer and store the resulting AIP in the local filesystem AIP storage location.
Confirm that the AIP exists in the local filesystem AIP storage location.
Use the Storage Service move package API endpoint to move the AIP to the S3 AIP storage location.
Confirm that the move request completes successfully and that the AIP package record now points to the S3 AIP storage location.
Confirm that the AIP object exists in the S3 bucket.
Check the original local filesystem AIP storage path.
Observe that the original local filesystem copy still exists after the successful move.
Your environment (version of Archivematica, operating system, other relevant details)
For Artefactual use:
Before you close this issue, you must check off the following: