archivematica / Issues

Issues repository for the Archivematica project
GNU Affero General Public License v3.0
16 stars 1 forks source link

Problem: processingMCP.xml not removed from DIP when it is created #83

Open ross-spencer opened 6 years ago

ross-spencer commented 6 years ago

Expected behaviour

With Archivematica's current functionality, processing MCP.xml should be removed from the DIP it creates.

Current behaviour

Verified in 1.6.1, 1.7.2, and qa/0.x the DIP contains a processingMCP.xml whether or not a custom processing config is passed in the transfer directory or not. See two examples from 1.7.2 (first with default config):

ross-spencer@artefactual:~/Desktop/Artefactual/AIPS/1.7.1/stable-1.7.2$ tree dip-with_dip_2-9ea36165-dd24-4ca8-98c8-ba260119e454
dip-with_dip_2-9ea36165-dd24-4ca8-98c8-ba260119e454
└── with_dip_2-9ea36165-dd24-4ca8-98c8-ba260119e454
    ├── METS.9ea36165-dd24-4ca8-98c8-ba260119e454.xml
    ├── objects
    │   └── 177b3523-48fa-48c8-9412-562660a4924a-one_file.txt
    ├── processingMCP.xml
    └── thumbnails
        └── 177b3523-48fa-48c8-9412-562660a4924a.jpg

3 directories, 4 files

And (custom processing added at Transfer):

ross-spencer@artefactual:~/Desktop/Artefactual/AIPS/1.7.1/stable-1.7.2$ tree dip-with-processing-dip-1f2eb22a-30ad-4bcd-9d51-edc9d26e33bc
dip-with-processing-dip-1f2eb22a-30ad-4bcd-9d51-edc9d26e33bc
└── with-processing-dip-1f2eb22a-30ad-4bcd-9d51-edc9d26e33bc
    ├── METS.1f2eb22a-30ad-4bcd-9d51-edc9d26e33bc.xml
    ├── objects
    │   └── 25aea676-1859-4bf3-accb-1e6c48f7cae2-test-file.txt
    ├── processingMCP.xml
    └── thumbnails
        └── 25aea676-1859-4bf3-accb-1e6c48f7cae2.jpg

3 directories, 4 files

Steps to reproduce

Create a DIP by selecting the appropriate normalization options in your configuration and then download it from the Storage Service afterwards.

Your environment (version of Archivematica, OS version, etc)

Docker-compose, multiple AM versions.

ross-spencer commented 6 years ago

Tangentially related to https://github.com/archivematica/Issues/issues/84