Skip to content

Certain Videos/ Events break the rendering of the series-element (Ilias-Whoops) #461

@marcusm7

Description

@marcusm7

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Have a Ilias Opencast-Series Element in the Ilias-Plugin which contains an Event in an unknown state (processing_state STOPPED).
  2. Try to open the Series
  3. An Ilias Whoops is displayed

Expected behavior
The Ilias Opencast-Plugin should handle unexpected event status. The broken event should be labeled as "event with an unexpected state" or similar. The other events and control elements of the series should stay functional.

Screenshots

Image You can see, that the entire series is unusable because of one element.

Log

  • Ilias Whoops
Whoops\Exception\ErrorException thrown with message "Undefined array key "STOPPED""

Stacktrace:
#18 Whoops\Exception\ErrorException in /srv/www/ilias.kim.uni-konstanz.de/ilias/Customizing/global/plugins/Services/Repository/RepositoryObjec
t/OpenCast/classes/Event/class.xoctEventRenderer.php:450
#17 ilErrorHandling:handlePreWhoops in /srv/www/ilias.kim.uni-konstanz.de/ilias/Customizing/global/plugins/Services/Repository/RepositoryObjec
t/OpenCast/classes/Event/class.xoctEventRenderer.php:450
#16 xoctEventRenderer:getStateHTML in /srv/www/ilias.kim.uni-konstanz.de/ilias/Customizing/global/plugins/Services/Repository/RepositoryObject
/OpenCast/classes/Event/class.xoctEventTableGUI.php:151
#15 xoctEventTableGUI:fillRow in /srv/www/ilias.kim.uni-konstanz.de/ilias/Services/Table/classes/class.ilTable2GUI.php:1366


Environment (please complete the following information):

  • ILIAS version: 9.15
  • PHP version: -
  • Plugin version: 9.0.6
  • Opencast version 17.8
  • Browser: -

Additional context

  • The REST endpoint .../docs.html?path=/api/events#getevent-1
    for the Event states:

    "processing_state": "STOPPED",
    
  • Event.php doesnt know the state STOPPED

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions