Uploaded image for project: 'Opencast'
  1. MH-13441

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

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects versions: 7.0
    • Fix versions: None
    • Components: Backend Software

      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

        TestRail: Results

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                karen_dolan Karen Dolan
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  TestRail: Cases