We're updating the issue view to help you get more done. 

POST /api/events/{event_id} endpoint does not evaluate processing or file fields

Steps to reproduce

Documentation [1] and API specification state this endpoint accepts requests with the following fields:

  • acl

  • metadata

  • presenter

  • presentation

  • audio

  • processing

However, according to the code associated with this endpoint [2], only ACL and metadata are actually processed, new/updated file(s) and/or processing instructions are ignored. Sending a request with only file(s) and/or processing instructions yields a positive (successful) response instead of an error.

This is either an error in the documentation and API specification, or the implementation was forgotten/removed.

Steps to reproduce:
Send a POST request to `/api/events/{event_id}` sending only processing instructions and/or file attachments (`presenter`, `presentation`, or `audio`

Actual Results:
Opencast returns a 204, but nothing happens.

Expected Results:
Either:

  • Opencast returns a 204, ingests file(s) and/or initiates workflow per instruction, or

  • Opencast returns a 400, saying processing instructions and/or file information cannot be processed.


Workaround (if any):
Use internal API to initiate new workflow, other than that: None.


[1] https://docs.opencast.org/develop/developer/api/events-api/#post-apieventsevent_id
[2] https://github.com/opencast/opencast/blob/develop/modules/external-api/src/main/java/org/opencastproject/external/endpoint/EventsEndpoint.java#L393

Status

Assignee

Unassigned

Reporter

Maxime Pedrotti

Severity

Incorrectly Functioning Without Workaround

Tags (folksonomy)

None

Components

Affects versions

4.2
4.3
5.0
4.4
4.0
4.1

Priority

Major