Hey Brian,
What you'll need to do it to turn on checksums for any object and
datastream that is missing it, then you can use the
compareDatastreamChecksum [1] API call.
Because I know you are an Islandora site I would suggest two modules to
solve this issue, islandora checksum [2] and islandora checksum checker[3].
Lastly, as the fedora community in general has moved on to Fedora 4
you'll want to specify that you are still using Fedora 3 when you ask a
question on this listserv. Just so they have the correct context.
cheers,
jared
[1]
https://wiki.duraspace.org/display/FEDORA38/API-M#API-M-compareDatastreamChecksumcompareDatastreamChecksum
[2]
https://github.com/Islandora/islandora_checksum
[3]
https://github.com/Islandora/islandora_checksum_checker
On 2018-04-10 10:50 AM,
bgilling...@gmail.com wrote:
> I am possibly looking at a recovery situation with some of our objects,
> but I need to scan the remainder of our fedora files to determine
> whether or not any others need to be restored or purged/reingested.
>
> I have to admit that the fedora.fcfg did not have the "autoChecksum"
> value set to TRUE, so many of our objects do not have md5 checksums
> stored in the foxml files. The exception is that an Islandora checksum
> process did generate checksums for some objects, but it appears that
> this process did not complete and newly ingested objects do not seem to
> have checksums.
>
> I am hoping that there is a script that performs this check already. I
> am lost as to how to check the integrity of the actual object foxml
> files. My strategy for checking datastream files' integrity was going
> to be to just check their values such as:
> datastream file size compared to the
> /foxml:datastream/foxml:datastreamVersion[SIZE]
> datastream file timestamp compared to their
> /foxml:datastream/foxml:datastreamVersion[CREATED]
> datastream file mimetype compared to their
> /foxml:datastream/foxml:datastreamVersion[MIMETYPE] (but this could
> potentially fail for files such as "application/xml" vs "text/xml")
>
> Would the fedora-rebuild.sh script to rebuild the database or RI perform
> this check and any bad object / datatreams would be listed as the ERROR
> output from running the fedora-rebuild?
>
> Any help is greatly appreciated,
>
> Brian Gillingham
>
> University of Pittsburgh | University Library System
>
> --
> You received this message because you are subscribed to the Google
> Groups "Fedora Tech" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
fedora-tech...@googlegroups.com
> <mailto:
fedora-tech...@googlegroups.com>.
> To post to this group, send email to
fedor...@googlegroups.com
> <mailto:
fedor...@googlegroups.com>.
> Visit this group at
https://groups.google.com/group/fedora-tech.
> For more options, visit
https://groups.google.com/d/optout.
--
Jared Whiklo
jwh...@gmail.com
--------------------------------------------------
Oh, they have the Internet on computers now. -- Homer Simpson