Steps to reproduce:
1. Cut a video and select "Save & Proceed" in the video editor
2. Cut the same video again and again select "Save & Proceed" in the video editor
3. Go the "Event Details">Assets>Catalogs
Actual Results:
There are now two catalogs with the flavor smil/cutting
Expected Results:
There should be exactly one catalog with the flavor smil/cutting
Workaround (if any):
none
The problem is:
<operation id="editor"
description="Cut the recording according to the edit decision list"
exception-handler-workflow="switchcast-exception-handler-1.0">
<configurations>
<configuration key="source-flavors">*/prepared</configuration>
<configuration key="smil-flavors">smil/cutting</configuration>
<configuration key="target-smil-flavor">smil/cutting</configuration>
<configuration key="target-flavor-subtype">work</configuration>
<configuration key="interactive">false</configuration>
</configurations>
</operation>
<operation id="tag"
description="Archive smil/cutting"
fail-on-error="false"
exception-handler-workflow="switchcast-exception-handler-1.0">
<configurations>
<configuration key="source-flavors">smil/cutting</configuration>
<configuration key="target-tags">archive</configuration>
</configurations>
</operation>
WOH editor takes the smil/cutting that has been tagged with the tag 'archive' by the Video Editor and creates a new smil/cutting without the tag 'archive'
WOH tag attempts to rescue that newly generated smil/cutting by tagging smil/cutting with the tag 'archive'. But now, both smil/cutting are archived.
The case the fails:
1. Open Video Editor, cut and press on "Save & Proceed" for an event that already has a smil/cutting archived
2. When starting the workflow, both smil/cutting (existing and the new added by the video editor) are tagged archived
3. WOH editor would remove existing catalog if matching target-smil-flavor
4. ... but WOH editor does not add the tag 'archive' for the new catalog
5. WOH tag ensures that smil catalogs don't get lost...
6 ... but now, both catalogs will get the tag archive
Voila... we ended up having two smil/cutting catalog whereas WOH editor will only handle one.
merged