TextAnalysis WOH deletes segment catalog even if it hasn't been removed first

Steps to reproduce

The text analysis workflow operation handler always deletes the segment catalog, created by a previous operation in a finally block. The deletion is done because the text analysis WOH tries to replace the catalog by a modified one and therefore want to delete old one. But it should only happen when the modified catalog has been added and the old one has been removed, which isn't the case. For example when an exception is happening before removing the old catalog the mediapackage remains with the old one but the file is deleted, this means the next operation e.g. distribution service tries to download the catalog and breaks.

Status

Assignee

Lukas Rohner

Reporter

Lukas Rohner

Severity

Incorrectly Functioning Without Workaround

Tags (folksonomy)

Components

Fix versions

Affects versions

1.4.0

Priority

Major
Configure