artefactual-labs / umcu-uploader

UMCU Uploader
Apache License 2.0
1 stars 1 forks source link

metadata.json in AIP has wrong contents #101

Closed npoppelier closed 1 year ago

npoppelier commented 1 year ago

When a transfer created by this uploader is archived, there is a file metadata.json in the AIP. This JSON file has invalid contents.

  1. For each file in the original folder we see at least two lines: one for the original setting of the access rights, one for the setting chosen by the user.
  2. There are lines in the JSON file that contain access rights for files that are not in the original folder.
npoppelier commented 1 year ago

the file "metadata.json" found in /data/objects/metadata/transfers/test_default_setting-f2f1ef8a-6e92-4e39-930d-16944bcf7f56/metadata.jsonseems to contain information about files that are not in the current upload. See screenshots, attached file is the metadata.json file obtained after uploading the folder in the screenshot "actual_folder_contents.png"

boudewijnsz commented 1 year ago

see also https://github.com/artefactual-labs/umcu-uploader/issues/92

mcantelon commented 1 year ago

This should be fixed.