Open ross-spencer opened 4 years ago
This is fixed for now by wiring in the PHP version of the code here which is pretty graceful, but adds complexity we don't need. But it works.
I'll probably need to update this blog.
NB. To be clear, this was always a mistaken view on my part. It may however be good if the signature file syntax accepted by DROID was simplified.
NB. It looks like my syntax may be wrong so the following needs to be tried and tested:
<InternalSignature ID="3" Specificity="Specific">
<ByteSequence Reference="BOFoffset" Sequence="04??[01:0C][01:1F]{28}([41:5A]|[61:7A]){10}(43|44|46|4C|4E)"/>
</InternalSignature>
It looks like there is still a shift between what can be interpreted from a DROID signature file and the DROID container signature file.
There is a related issue here: https://github.com/digital-preservation/droid/issues/237
This XML should work, but it doesn't and it is certainly an unpublished specification from TNA.
To build the current development signatures in Siegfried we can do the following:
./roy build -droid development-signature-dev-1.xml -noreports -container container-signature-20200918.xml
these will work there.Notes on patterns
504B030414{2}000800F0AB3051000000000000000002
504B030414{2-4}000800F0AB3051000000000000000002
504B030414*000800F0AB3051000000000000000002
504B030414??08000800F0AB3051000000000000000002
504B030414[00:01]08000800F0AB3051000000000000000002
'kml xmlns='
504B030414(00|01)08000800F0AB3051000000000000000002