Duplicate events don't get all parameters from the original events

Steps to reproduce

I've found that with the default workflows, if you duplicate an event, and then you try to publish this event, the new task doesn't get the same parameters as the original.

Steps to reproduce

  1. Ingest a new event and publish it

  2. duplicate the event

  3. In the original and the duplicate the event start a new task for each (Ex: republish an edited video)

  4. In the workflow instance, the duplicate event has fewer parameters than the original counterpart.

This causes, for example, that the task fails in the duplicated event because it doesn't have the variable to trigger the compose WoH. Also, there is a loss of data, the duplicated event lost the media assets.

The attached files show the same process triggered in the editor for the two events, the little one is from the duplicated event.

Activity

Show:
Maximiliano Lira Del Canto
June 11, 2019, 3:02 PM

Tried in stable.opencast.org and in legacy.opencast.org

Sven Stauber
June 11, 2019, 3:29 PM
Edited

Hi Max

Good news: That can be fixed easily by replacing the line https://github.com/opencast/opencast/blob/develop/etc/workflows/duplicate-event.xml#L54 by

<configuration key="property-namespaces">org.opencastproject.assetmanager.security,org.opencastproject.workflow.configuration</configuration>

whereas org.opencastproject.workflow.configuration is the namespace of the asset manager properties used to store workflow configuration properties.

Maximiliano Lira Del Canto
June 11, 2019, 3:33 PM

Thanks Sven I will try and then to the PR

Fixed and reviewed

Assignee

Unassigned

Reporter

Maximiliano Lira Del Canto

Severity

Data Loss/Corruption

Tags (folksonomy)

Fix versions

Affects versions

Priority

Major
Configure