Project

General

Profile

Bug #8867

CNCore.listChecksumAlgorithms() returns incorrect list

Added by Matthew Jones over 3 years ago.

Status:
New
Priority:
High
Assignee:
Category:
d1_cn_rest
Target version:
-
Start date:
2020-08-06
Due date:
% Done:

0%

Story Points:
Sprint:

Description

The definition of the ChecksumAlgorithm type in SystemMetadata allows any checksum algorithm listed in the Library of Congress vocab. But the current CNCore.listChecksumAlgorithms() implementation only returns two, MD5 and SHA-1. Need to correct this to include the full list of supported algorithms (see http://id.loc.gov/vocabulary/preservation/cryptographicHashFunctions.html).

The implementation of this is in a property file, which needs to be updated with the correct list. The file (d1_cn_rest/src/test/resources/org/dataone/configuration/node.properties) currently contains:

cn.checksumAlgorithmList=SHA-1;MD5

But it should contain all of the other valid algorithms as well from the LoC.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)