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

Mediapackage JSON serialization outputs numerical string fields as numbers

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects versions: 3.3
    • Fix versions: 4.0
    • Components: Backend Software
    • Labels:
      None
    • Severity:
      Incorrectly Functioning Without Workaround
    • Steps to reproduce:
      Hide
      Steps to reproduce:
      1. Create a mediapackage with a numerical title (for instance 12345) and publish it
      2. Explore the mediapackage JSON representation by opening:

      ${PRESENTATION_SERVER}/search/episode.json?id=${EPISODE_ID}

      , substituting the values for PRESENTATION_SERVER and EPISODE_ID accordingly
       
       Actual Results:
       The title is represented as an integer in JSON
       
       Expected Results:
       The title should always be a string, regardless of its contents
       
       Workaround (if any):
      If editing the title is an option, adding a leading "0" prevents the conversion while keeping the numerical value.





      Show
      Steps to reproduce: 1. Create a mediapackage with a numerical title (for instance 12345) and publish it 2. Explore the mediapackage JSON representation by opening: ${PRESENTATION_SERVER}/search/episode.json?id=${EPISODE_ID} , substituting the values for PRESENTATION_SERVER and EPISODE_ID accordingly    Actual Results:  The title is represented as an integer in JSON    Expected Results:  The title should always be a string, regardless of its contents    Workaround (if any): If editing the title is an option, adding a leading "0" prevents the conversion while keeping the numerical value.

      TestRail: Results

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ruben.perez Rubén Pérez
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  TestRail: Cases