Uploaded image for project: 'Opencast'
  1. MH-12997

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: 4.0, 4.4, 4.1, 4.2, 4.3, 5.0
    • Fix versions: None
    • Labels:
      None
    • Severity:
      Incorrectly Functioning Without Workaround
    • Steps to reproduce:
      Hide
      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
      Show
      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

      TestRail: Results

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              maxime.pedrotti Maxime Pedrotti
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                TestRail: Cases