opencast-ilias / OpencastPageComponent

Opencast plugin for ILIAS LMS page editor (dependent on https://github.com/opencast-ilias/OpenCast). This version of the ILIAS plugin for Opencast is operated and developed collaboratively by a community. The University of Bern acts as coordinative maintainer.
GNU General Public License v3.0
4 stars 6 forks source link

xoctException when trying to "Insert Opencast Video" in Page Edit #32

Open WKarlHGU opened 1 month ago

WKarlHGU commented 1 month ago

When I edit an ilias page in a learning module and try to insert an opencast video, an exception is thrown:

xoctException thrown with message "Not Found: OcSeriesApi -> getMetadata: [ (GET) /api/series//metadata] => Not Found"

Stacktrace:
#26 xoctException in /storage/ilias_7/Customizing/global/plugins/Services/Repository/RepositoryObject/OpenCast/src/API/DecorateProxy.php:94

To reproduce:

  1. Open a learning module.
  2. Click on a "+" Icon to add an element.
  3. Select "Insert Opencast Video"

The a.m. exception ist thrown

Environment:

ferishili commented 1 month ago

Which Opencast version you are using?

WKarlHGU commented 1 month ago

We are using version 15.7.0 Sorry for not giving this information.

ferishili commented 1 month ago

From what I could understand, the seriesId is somehow missing. The URL that is trying to get data from is: /api/series//metadata But it has to be /api/series/[missing series id]/metadata

Maybe this could be a good clue where to look at!

WKarlHGU commented 1 month ago

Well - at that point in time there is no seriesId. It is a neutral ilias page without connection to any series. I understand, that there should open a dropdown that allows me to select a series and then select one of its videos.

ferishili commented 1 month ago

That sounds to me like a logical problem: (offering to add opencast video where it is not suitable) It needs to be identified and prevented if this is the case!

WKarlHGU commented 1 month ago

It is suitable because this option ("Insert Opencast Video") is offered in the context dialog. I expect the opencast page plugin to open a dialog to ask which series and then which video shoud be inserted. This is exactly what is triggered if I want to enter a new opencast object in a learning module. How else should it work? There is no other way to open a series on an ilias page, or is there a way?

WKarlHGU commented 1 month ago

Furthermore, it is possible to have a video in opencast that does not belong to any series.

WKarlHGU commented 1 month ago

From the main README.md in the root directory:

"The page editor action "Insert Opencast Video" offers a table to search videos from the configured Opencast installation (configuration of RepositoryObject plugin "Opencast" will be used). The table will show only videos accessible by the current user."

This is exactly what I am missing and what it should do.