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

Incorrect JSON types in Search API results

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: 2.1.1, 3.3
    • Fix versions: 4.6
    • Components: RESTful Interfaces
    • Labels:
      None
    • Severity:
      Incorrectly Functioning With Workaround
    • Steps to reproduce:
      Hide
      Steps to reproduce:
      1. ingest a recording where the title consists only of numbers
      2. search for it using the search api
       
       Actual Results:
       title has the wrong type (Number):

      title: 12345
       
       Expected Results:
       title has the correct type (String):

      title: "12345"
       
       Workaround (if any):
       wherever you use the title from a search result, remember to cast it to a string before trying to manipulate it.

      also, duration is a String but presumably should be a number.

      i have not tested other APIs so don't know if the issue is more widespread.



      Show
      Steps to reproduce: 1. ingest a recording where the title consists only of numbers 2. search for it using the search api    Actual Results:  title has the wrong type (Number): title: 12345    Expected Results:  title has the correct type (String): title: "12345"    Workaround (if any):  wherever you use the title from a search result, remember to cast it to a string before trying to manipulate it. also, duration is a String but presumably should be a number. i have not tested other APIs so don't know if the issue is more widespread.

      TestRail: Results

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ppettit Paul Pettit
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:

                  TestRail: Cases