Skip to content
Snippets Groups Projects
Commit d53292da authored by Jens Steidl's avatar Jens Steidl :baby_chick:
Browse files

- refactor: removed workaround (no longer needed), added hint

parent 55a2ba5b
Branches
No related tags found
No related merge requests found
......@@ -93,14 +93,14 @@ public class SLUBStoragePlugin extends AbstractStorageHandler {
Checksummer checksummer = new Checksummer(is, true, true, true,true);
for (Fixity fixity : fixities) {
fixity.setResult(Boolean.FALSE);
log.info("SLUBStoragePlugin.checkFixity() getAlgorithm=" + fixity.getAlgorithm());
log.info("SLUBStoragePlugin.checkFixity() FixityAlgorithm.MD5=" + Fixity.FixityAlgorithm.MD5.toString());
log.info("SLUBStoragePlugin.checkFixity() FixityAlgorithm.SHA1=" + Fixity.FixityAlgorithm.SHA1.toString());
log.info("SLUBStoragePlugin.checkFixity() FixityAlgorithm.SHA256=" + Fixity.FixityAlgorithm.SHA256.toString());
log.info("SLUBStoragePlugin.checkFixity() FixityAlgorithm.CRC32=" + Fixity.FixityAlgorithm.CRC32.toString());
/* TODO: with upcoming versions of Rosetta, recheck need of
* Workaround for fixity.getAlgorithm() */
String algorithm = fixity.getAlgorithm().toUpperCase(); // workaround, because fixity.getAlgorithm() returns lowercase string
String algorithm = fixity.getAlgorithm();
/* HINT: in past versions of Rosetta was a workaround for fixity.getAlgorithm() required,
a lowercase string was returned instead of the correct fixity code table entry */
log.info("SLUBStoragePlugin.checkFixity() getAlgorithm=" + algorithm);
if (
(!Fixity.FixityAlgorithm.MD5.toString().equals(algorithm)) &&
(!Fixity.FixityAlgorithm.SHA1.toString().equals(algorithm)) &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment