Prepare-AV WOH throws a null pointer

Steps to reproduce

Via Ruth Lang on list:

Hi,

I am not sure, if this WOH can still be used, because it is no longer used in the default workflows that come with OC 6.x

Nevertheless we still want to use it, but in OC 6.x we ran into this error:

2018-11-05 15:14:21,901 | INFO | (IncludeWorkflowOperationHandler:107) - Insert workflow uzk-partial-prepare-manual into the current workflow instance
2018-11-05 15:14:27,152 | ERROR | (WorkflowOperationWorker:180) - Workflow operation 'operation:'prepare-av', position:13, state:'FAILED'' failed
java.lang.NullPointerException
at org.opencastproject.workflow.api.WorkflowOperationTagUtil.createTagDiff(WorkflowOperationTagUtil.java:63)[170:opencast-workflow-service-api:6.0.0.SNAPSHOT]
at org.opencastproject.workflow.handler.composer.PrepareAVWorkflowOperationHandler.mux(PrepareAVWorkflowOperationHandler.java:175)[61:opencast-composer-workflowoperation:6.0.0.SNAPSHOT]
at org.opencastproject.workflow.handler.composer.PrepareAVWorkflowOperationHandler.start(PrepareAVWorkflowOperationHandler.java:140)[61:opencast-composer-workflowoperation:6.0.0.SNAPSHOT]
at org.opencastproject.workflow.impl.WorkflowOperationWorker.start(WorkflowOperationWorker.java:233)[171:opencast-workflow-service-impl:6.0.0.SNAPSHOT]
at org.opencastproject.workflow.impl.WorkflowOperationWorker.execute(WorkflowOperationWorker.java:155)[171:opencast-workflow-service-impl:6.0.0.SNAPSHOT]
at org.opencastproject.workflow.impl.WorkflowServiceImpl.runWorkflowOperation(WorkflowServiceImpl.java:892)[171:opencast-workflow-service-impl:6.0.0.SNAPSHOT]
at org.opencastproject.workflow.impl.WorkflowServiceImpl.process(WorkflowServiceImpl.java:1925)[171:opencast-workflow-service-impl:6.0.0.SNAPSHOT]
at org.opencastproject.workflow.impl.WorkflowServiceImpl$JobRunner.call(WorkflowServiceImpl.java:2355)[171:opencast-workflow-service-impl:6.0.0.SNAPSHOT]
at org.opencastproject.workflow.impl.WorkflowServiceImpl$JobRunner.call(WorkflowServiceImpl.java:2321)[171:opencast-workflow-service-impl:6.0.0.SNAPSHOT]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_191]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_191]
at java.lang.Thread.run(Thread.java:748)[:1.8.0_191]

A quick look inside the source code shows, that the routine createTagDiff has been newly introduced in OC 6.x
Unfortunately there is a statement missing, that checks if there are any tags at all and the WOH prepare-av has definitely no target-tags.

Regards

Status

Assignee

Greg Logan

Reporter

Greg Logan

Severity

Non Functioning

Tags (folksonomy)

None

Components

Fix versions

Affects versions

6.0

Priority

Major
Configure