LibraryOfCongress / bagit-java

Java library to support the BagIt specification.
Other
70 stars 50 forks source link

Bagit update does not update playloadmanifest #127

Open DaleLore opened 5 years ago

DaleLore commented 5 years ago

Currently on a mac mini (Late 2014), macOS High Sierra version 10.13.6. I did the latest brew install bagit (which should be BagIt Library Version v4.12.3)

I tried to update a bag's manifest and tag-manifest to a sha512 and only the tagmanifest was updated. Only "Date modified" changed to reflect the current date, but the manifest itself still had the default md5 and did not change.

bagit update --tagmanifestalgorithm sha512 --payloadmanifestalgorithm sha512

I then tried to create a new bag and that seemed to work just fine: bagit baginplace --tagmanifestalgorithm sha512 --payloadmanifestalgorithm sha512

There seems to be a bug or I'm inputting the data in incorrectly. Thanks to whichever kind soul helps me!

jscancella commented 5 years ago

the java bagit command line utility has many known issues and is no longer supported. I would recommend upvoting on https://github.com/LibraryOfCongress/bagit-python/issues/61 and using the python command line version which is supported.