opencast-ilias / OpencastEvent

Opencast plugin for ILIAS LMS to display videos from Opencast as objects (dependent on https://github.com/opencast-ilias/OpenCast). This ILIAS plugin for Opencast is operated and developed collaboratively by a community. The University of Cologne acts as coordinative maintainer.
GNU General Public License v3.0
2 stars 3 forks source link

can't access course with event object if opencast is down #3

Closed reiferschris closed 2 years ago

reiferschris commented 2 years ago

Describe the bug If an event object is in a course and the opencast server is down or otherwise not reachable the whole course can not be accessed.

To Reproduce Steps to reproduce the behavior:

  1. Create event object in a course
  2. stop opencast
  3. try to access that course
  4. See error

Expected behavior You can still access that course but the event object displays something along the lines of "Opencast is unavailable". When you click the event object display an error like the series object on the new page.

Screenshots NA

Log

xoctException thrown with message "An error occurred while communicating with the OpenCast-Server: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>503 Service Unavailable</title>
</head><body>
<h1>Service Unavailable</h1>
<p>The server is temporarily unable to service your
request due to maintenance downtime or capacity
problems. Please try again later.</p>
</body></html>
"

Stacktrace:
#25 xoctException in /var/www/html/ilias/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/Request/class.xoctCurl.php:118
#24 xoctCurl:execute in /var/www/html/ilias/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/Request/class.xoctCurl.php:29
#23 xoctCurl:get in /var/www/html/ilias/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/classes/Request/class.xoctRequest.php:48
#22 xoctRequest:get in /var/www/html/ilias/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/src/Model/Event/EventAPIRepository.php:63
#21 srag\Plugins\Opencast\Model\Event\EventAPIRepository:fetch in /var/www/html/ilias/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/src/Model/Event/EventAPIRepository.php:52
#20 srag\Plugins\Opencast\Model\Event\EventAPIRepository:find in /var/www/html/ilias/Customizing/global/plugins/Services/Repository/RepositoryObject/OpencastEvent/classes/class.ilObjOpencastEvent.php:85
#19 ilObjOpencastEvent:doRead in /var/www/html/ilias/Services/Object/classes/class.ilObject2.php:41
#18 ilObject2:read in /var/www/html/ilias/Services/Object/classes/class.ilObject.php:179
#17 ilObject:__construct in /var/www/html/ilias/Services/Object/classes/class.ilObject2.php:25
#16 ilObject2:__construct in /var/www/html/ilias/Services/Repository/classes/class.ilObjectPlugin.php:32
#15 ilObjectPlugin:__construct in /var/www/html/ilias/Customizing/global/plugins/Services/Repository/RepositoryObject/OpencastEvent/classes/class.ilObjOpencastEvent.php:32
#14 ilObjOpencastEvent:__construct in /var/www/html/ilias/Customizing/global/plugins/Services/Repository/RepositoryObject/OpencastEvent/classes/class.ilObjOpencastEventListGUI.php:114
#13 ilObjOpencastEventListGUI:getListItemHTML in /var/www/html/ilias/Services/Container/classes/class.ilContainerContentGUI.php:700
#12 ilContainerContentGUI:renderItem in /var/www/html/ilias/Services/Container/classes/class.ilContainerSessionsContentGUI.php:171
#11 ilContainerSessionsContentGUI:__showMaterials in /var/www/html/ilias/Services/Container/classes/class.ilContainerSessionsContentGUI.php:105
#10 ilContainerSessionsContentGUI:getMainContent in /var/www/html/ilias/Services/Container/classes/class.ilContainerContentGUI.php:297
#9 ilContainerContentGUI:getCenterColumnHTML in /var/www/html/ilias/Services/Container/classes/class.ilContainerContentGUI.php:200
#8 ilContainerContentGUI:setOutput in /var/www/html/ilias/Services/Container/classes/class.ilContainerGUI.php:619
#7 ilContainerGUI:renderObject in /var/www/html/ilias/Modules/Course/classes/class.ilObjCourseGUI.php:179
#6 ilObjCourseGUI:viewObject in /var/www/html/ilias/Modules/Course/classes/class.ilObjCourseGUI.php:2727
#5 ilObjCourseGUI:executeCommand in /var/www/html/ilias/Services/UICore/classes/class.ilCtrl.php:203
#4 ilCtrl:forwardCommand in /var/www/html/ilias/Services/Repository/classes/class.ilRepositoryGUI.php:374
#3 ilRepositoryGUI:show in /var/www/html/ilias/Services/Repository/classes/class.ilRepositoryGUI.php:336
#2 ilRepositoryGUI:executeCommand in /var/www/html/ilias/Services/UICore/classes/class.ilCtrl.php:203
#1 ilCtrl:forwardCommand in /var/www/html/ilias/Services/UICore/classes/class.ilCtrl.php:164
#0 ilCtrl:callBaseClass in /var/www/html/ilias/ilias.php:20

-- GET Data --

ref_id                   : 173
cmdClass                 : ilobjcoursegui
cmdNode                  : wh:ll
baseClass                : ilrepositorygui
lang                     : de
limit                    : 50

Environment (please complete the following information):

Additional context