-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
Describe the bug
The preprocessing-sfa worker’s custom XML validation activity writes an embedded PREMIS XSD to /tmp and caches the generated file path in an activity struct field. If /tmp is cleaned, the cached path remains set and the activity does not recreate the file, so validation fails until the worker restarts.
To Reproduce
- Run preprocessing-sfa worker and execute a workflow that reaches the PREMIS XML validation step.
- Confirm the activity generates an XSD file in
/tmp(e.g.premis-v3-*) and validation succeeds. - Clean
/tmp(or delete the generatedpremis-v3-*file). - Run the validation step again without restarting the preprocessing worker.
- Observe validation failing because the activity continues using the cached
/tmppath but does not recreate the missing file.
Expected behavior
- The preprocessing-sfa worker should not fail PREMIS XML validation due to
/tmpcleanup. - If the XSD file used for validation is missing, the activity should recover automatically without requiring a worker restart.
- Avoid relying on a non configurable
/tmplocation for schema validation.
Additional context
This issue is related to a temporal-activities feature request to extend the existing xmlvalidate activity so it can support both filesystem XSD paths and embedded XSD content. Once that is available, preprocessing-sfa could switch to the shared activity and drop the custom temp file implementation (see temporal-activities issue).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
👍 Ready