It is possible for f = FSEntry(); f.derived_from = f to be true when certain METS files are parsed, cf. the strange derived_from values and lack of UUIDs in the following:
P1050152.JPG with UUID None is derived from P1050152.JPG with UUID None
P1050154.JPG with UUID None is derived from P1050152.JPG with UUID None
P1050155.JPG with UUID None is derived from P1050152.JPG with UUID None
P1050156.JPG with UUID None is derived from P1050152.JPG with UUID None
It is possible for
f = FSEntry(); f.derived_from = f
to be true when certain METS files are parsed, cf. the strangederived_from
values and lack of UUIDs in the following:Parsing the METS file of the AIP at http://am17x.qa.archivematica.org/archival-storage/6214faf5-eab6-424c-b0f9-b1078e7c0828/ will exhibit this behaviour. This seems to be related to the presence of
USE="service"
type files.This will ultimately trigger a
RuntimeError: maximum recursion depth exceeded
error when attempting an AIP re-ingest. See https://github.com/artefactual/archivematica-storage-service/issues/254.More investigation needed.