Null bitrate can cause UI display of source media to fail

Steps to reproduce

Possible a cause of MH-11224, and

Steps to reproduce:
1. Upload mediapackage with video track where bitrate is not returned from inspection

Actual Results:

Not possible to view Assets / Media / Source (everything is blank)

URLs like:

/admin-ng/event/cba1b06d-90e4-4f02-9e9b-d23655a48931/asset/media/track-0.json?id1=media

give 500 internal server error. Logs contain

error serializing the response, please check the server logs, response class:

Expected Results:

Media source details should be viewable in Admin UI.

Workaround (if any):

Activity

Show:
Stephen Marquard
February 25, 2017, 10:36 AM

May also be a general issue in the External API, e.g.:

  1. grep -r getBitRate /src/ | grep "v("
    matterhorn-external-api/src/main/java/org/opencastproject/external/endpoint/EventsEndpoint.java: trackInfo.add(f("bitrate", v(videoStream.getBitRate())));
    matterhorn-external-api/src/main/java/org/opencastproject/external/endpoint/EventsEndpoint.java: fields.add(f("bitrate", v(audioStream.getBitRate())));
    matterhorn-external-api/src/main/java/org/opencastproject/external/endpoint/EventsEndpoint.java: fields.add(f("bitrate", v(videoStream.getBitRate())));

Fixed and reviewed
Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Stephen Marquard

Reporter

Stephen Marquard

Severity

Incorrectly Functioning Without Workaround