Skip to content

KalturaLiveStatsListResponse schema incorrectly defines objects property, should be array of KalturaLiveStats #13745

@s-ordellnielsen-img

Description

@s-ordellnielsen-img

Description

The KalturaLiveStatsListResponse class schema is incorrectly defined in the API schema, causing generated client libraries to fail parsing live report responses.

Cause

In the API schema used to generate client libraries, KalturaLiveStatsListResponse defines the objects property as a single KalturaLiveStats object instead of an array:

<class name="KalturaLiveStatsListResponse" base="KalturaListResponse" description="">
    <property name="objects" type="KalturaLiveStats" readOnly="0" insertOnly="0" writeOnly="0" multiLingual="0" description=""/>
</class>

The actual response from the API returns an array of KalturaLiveStats:

<objects>
    <item>
        <objectType>KalturaEntryLiveStats</objectType>
        <audience>4816</audience>
        <dvrAudience>1383</dvrAudience>
        <avgBitrate>2128.1895122421</avgBitrate>
        <!-- ... more properties ... -->
    </item>
</objects>

Steps to reproduce

  1. Call liveReports.getReport() with any valid filter
  2. In the response objects all properties should be NULL
  3. Compare raw XML response. Data is present but cannot be parsed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions