Bug #928

eventDetail missing from message digest calculation

Added by Evelyn McLellan almost 11 years ago. Updated almost 9 years ago.

Status:VerifiedStart date:
Priority:HighDue date:
Assignee:Joseph Perry% Done:

0%

Category:-
Target version:Release 0.7
Google Code Legacy ID:archivematica-273 Pull Request:
Sponsored: Requires documentation:

Description

<eventDetail> for message digest calculation should be something like program="MD5Deep"; version="3.6".

[g] Legacy categories: PREMIS

History

#1 Updated by Joseph Perry almost 11 years ago

I'm calculating the MD5 checksum in the script using the python hashlib for md5 checksums & some borrowed code to break the file into managable chunks.

http://code.google.com/p/archivematica/source/browse/trunk/src/MCPClient/lib/clientScripts/fileAddedToSIP.py

What would you like this field to be in this instance?

[g] New owner: epmclellan

#2 Updated by Evelyn McLellan almost 11 years ago

How about program="hashlib.MD5" version="whatever" (maybe version of python?). Whatever succinctly tells us what calculated the checksum.

[g] New owner: berwin22

#3 Updated by Joseph Perry almost 11 years ago

program = python; module = "hashlib.md5" ; version="pythonVersion"

#4 Updated by Joseph Perry almost 11 years ago

  • Status changed from New to Verified

Committed r717.
<eventIdentifier>
<eventIdentifierType>UUID</eventIdentifierType>
<eventIdentifierValue>0c5c0f4f-3e69-4ec4-9b29-9a06f529f8e8</eventIdentifierValue>
</eventIdentifier>
<eventType>message digest calculation</eventType>
<eventDateTime>2010-11-26T18:35:34.705840</eventDateTime>
−
<eventDetail>
program="python"; module = "hashlib.md5" ; file="/usr/lib/python2.6/hashlib.pyc"
</eventDetail>
−
<eventOutcomeInformation>
<eventOutcome/>
−
<eventOutcomeDetail>
<eventOutcomeDetailNote>0ff111013ad2f8ded1171cee683e718a</eventOutcomeDetailNote>
</eventOutcomeDetail>
</eventOutcomeInformation>
−
<linkingAgentIdentifier>
<linkingAgentIdentifierType>preservation system</linkingAgentIdentifierType>
<linkingAgentIdentifierValue>Archivematica-0.7</linkingAgentIdentifierValue>
</linkingAgentIdentifier>
</event>

Also available in: Atom PDF