External API - no event/series output

80 views
Skip to first unread message

Fa Ko

unread,
Jan 12, 2017, 8:19:48 AM1/12/17
to Opencast Users
Hi everyone,

i am struggeling with the external api of my distributed (Admin, Engage, Worker, Database) opencast 2.3 setup.
Everything works fine, also all videos are published to the engage node.

But when i use the External API - Events Endpoint to check, for example all events, i get a

Status: 200 (OK)

[]

Message. Which returns a status 200 but no entries for any event.
Same behavior for the Series Endpoint.

The "Admin UI - Event facade Endpoint" return all events correct.

The following command delivers also correct user information, so it should work?
curl -u User:Password SomeHost.tu-bs.de:8080/api/info/me

I uncommented all neceserry lines in /etc/opencast/security/mh_default_org.xml on all nodes.

Also strange to me is that if i click "Publikation zur External API"  i will be redirected to localhost:8080/api/events/c010c18aSomeEventID108bcd1c1
But why localhost?




Do i have to edit the following section of the ng-partial-publish.xml workflow?



Do i missed anything else?
Auto Generated Inline Image 1
Auto Generated Inline Image 2

Sven Stauber

unread,
Jan 12, 2017, 8:30:33 AM1/12/17
to Opencast Users
Hi,


i am struggeling with the external api of my distributed (Admin, Engage, Worker, Database) opencast 2.3 setup.
Everything works fine, also all videos are published to the engage node.

But when i use the External API - Events Endpoint to check, for example all events, i get a

Status: 200 (OK)

[] 
Message. Which returns a status 200 but no entries for any event.
Same behavior for the Series Endpoint.

The "Admin UI - Event facade Endpoint" return all events correct.

The following command delivers also correct user information, so it should work?
curl -u User:Password SomeHost.tu-bs.de:8080/api/info/me

I uncommented all neceserry lines in /etc/opencast/security/mh_default_org.xml on all nodes.

Does the user you use to access the External API with curl have access to at least one event? In doubt, make sure that the user has ROLE_ADMIN for test purposes (ROLE_ADMIN has access to all events).


Also strange to me is that if i click "Publikation zur External API"  i will be redirected to localhost:8080/api/events/c010c18aSomeEventID108bcd1c1
But why localhost?

Do i have to edit the following section of the ng-partial-publish.xml workflow?




Yes. The configuration key url-pattern defines the URL behind the "Play"-button in the UI.
 
Do i missed anything else?

Be sure that you use the activemq.xml configuration file as provided by the Opencast 2.3.x release. It does contain stuff relevant for the External API that was not there before Opencast 2.3.x.

Best & good luck,
Sven

Fa Ko

unread,
Jan 12, 2017, 9:22:17 AM1/12/17
to Opencast Users
That point did it !!!
Thank you very much, also fpr your fast response!

Best & good luck,
Sven


Regards from the TU Braunschweig
Fabian

 
Reply all
Reply to author
Forward
0 new messages