We're updating the issue view to help you get more done. 

MultiEncodeWorkflowOperationHandler throws array-out-of bounds instead of WARNing of config error.

Description

MultiEncodeWorkflowOperationHandler throws an array out of bounds error instead of logging that the encoding profile properties could not be found for name given in the the Operation configuration.

This is only an issue when setting up custom encoding configuration.

Array out of bounds thrown by:
"logger.info("Encoding track {} using encoding profile '{}'", sourceTrack, eptf.getProfiles().get(0).toString());”
https://github.com/opencast/opencast/blob/develop/modules/composer-workflowoperation/src/main/java/org/opencastproject/workflow/handler/composer/MultiEncodeWorkflowOperationHandler.java#L348

From log:
2019-03-17 17:05:59,971 | ERROR | (WorkflowOperationWorker:180) - Workflow operation 'operation:'multiencode', position:29, state:'FAILED'' failed
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)[:1.8.0_201]
at java.util.ArrayList.get(ArrayList.java:433)[:1.8.0_201]
at org.opencastproject.workflow.handler.composer.MultiEncodeWorkflowOperationHandler.multiencode(MultiEncodeWorkflowOperationHandler.java:348)[64:opencast-composer-workflowoperation:6.3.0]
See More
On Mar 17, 2019, at 12:30 PM, ypatios@gmail.com wrote:
Hello,
I'm trying out the "multiencode" operation and I get the following error:
###
2019-03-17 17:05:59,971 | ERROR | (WorkflowOperationWorker:180) - Workflow operation 'operation:'multiencode', position:29, state:'FAILED'' failed
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)[:1.8.0_201]
at java.util.ArrayList.get(ArrayList.java:433)[:1.8.0_201]
at org.opencastproject.workflow.handler.composer.MultiEncodeWorkflowOperationHandler.multiencode(MultiEncodeWorkflowOperationHandler.java:348)[64:opencast-composer-workflowoperation:6.3.0]

Steps to reproduce

None

Status

Assignee

Unassigned

Reporter

Karen Dolan

Criticality

None

Tags (folksonomy)

None

Components

Affects versions

7.0

Priority

Minor