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

Unexpected return value from POSTing to /admin-ng/event/new

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects versions: 2.2.3
    • Fix versions: None
    • Components: RESTful Interfaces
    • Labels:
      None
    • Severity:
      Incorrectly Functioning With Workaround
    • Steps to reproduce:
      Hide
      Steps to reproduce:
      1. POST properly formatted metadata for new event(s) to /admin-ng/event/new
      2. Event(s) is successfully created within Opencast
      3. Response text is a hex string, possibly comma-separated for multiple events.
      4. Returned hex string does not correlate with the actual mediapackage ID of the newly created event.
       
       Actual Results:
       /admin-ng/event/new calls on IngestServiceImpl.java... I surmise due to the possibility of an upload instead of a scheduled event. However, the workflow identifier is returned even when no file upload takes place, i.e. workflow identifier of scheduled event returned, which is a useless value.
       
       Expected Results:
       Documentation notes that the return value is the Workflow identifier.
       Logs suggest the return value is the mediapackage ID

       I expect the mediapackage ID/event ID to be returned since I am consuming the /admin-ng/event endpoint.
       
       Workaround (if any):
       1. Cache results of /admin-ng/event/events.json before creating new event(s),
        2. create new event(s),
        3. re-call /admin-ng/event/events.json, and compare to #1.
      Show
      Steps to reproduce: 1. POST properly formatted metadata for new event(s) to /admin-ng/event/new 2. Event(s) is successfully created within Opencast 3. Response text is a hex string, possibly comma-separated for multiple events. 4. Returned hex string does not correlate with the actual mediapackage ID of the newly created event.    Actual Results:  /admin-ng/event/new calls on IngestServiceImpl.java... I surmise due to the possibility of an upload instead of a scheduled event. However, the workflow identifier is returned even when no file upload takes place, i.e. workflow identifier of scheduled event returned, which is a useless value.    Expected Results:  Documentation notes that the return value is the Workflow identifier.  Logs suggest the return value is the mediapackage ID  I expect the mediapackage ID/event ID to be returned since I am consuming the /admin-ng/event endpoint.    Workaround (if any):  1. Cache results of /admin-ng/event/events.json before creating new event(s),   2. create new event(s),   3. re-call /admin-ng/event/events.json, and compare to #1.

      TestRail: Results

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                slampunk Duncan Smith
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  TestRail: Cases