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

As an troubleshooter I want to see what class of object cannot be parsed as a string

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed and reviewed
    • Affects versions: 5.0
    • Fix versions: None
    • Components: Backend Software

      Description

      As an troubleshooter I want to see what class of object cannot be parsed as a string.
      Add the non-String object type into the log message from MetadataField.java line #1003

      ...
           public String apply(Object jsonValue) {
             if (jsonValue == null)
               return "";
             if (!(jsonValue instanceof String)) {
               logger.warn("Value cannot be parsed as String.");  //<—(MetadataField$16:1003) 
               return null;
             }
             return (String) jsonValue;
           }
      ...
      

      The current log line:

      2018-06-20 22:21:23,453 | WARN  | (MetadataField$16:1003) - Value cannot be parsed as String.
      

        TestRail: Results

          Attachments

            Activity

              People

              • Assignee:
                karen_dolan Karen Dolan
                Reporter:
                karen_dolan Karen Dolan
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  TestRail: Cases