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

External API returns negative Event duration

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed and reviewed
    • Affects versions: 4.0
    • Fix versions: 4.0
    • Components: External API
    • Labels:
      None
    • Severity:
      Incorrectly Functioning Without Workaround
    • Steps to reproduce:
      Hide
      Steps to reproduce:
      1. Add a single scheduled event
      2. Request Event via the `/api/events` endpoint
       
       Actual Results:
      The {{duration}} attribute is a negative integer.
       
       Expected Results:
      The {{duration}} attribute should be a positive integer.
       
       

      This is a bug introduced in the r/4.x branch. The calculation of the Duration has been modified from EndTime - StartTime to StartTime - EndTime, which makes no sense and leads to negative values.
       





      Show
      Steps to reproduce: 1. Add a single scheduled event 2. Request Event via the `/api/events` endpoint    Actual Results: The {{duration}} attribute is a negative integer.    Expected Results: The {{duration}} attribute should be a positive integer.     This is a bug introduced in the r/4.x branch. The calculation of the Duration has been modified from EndTime - StartTime to StartTime - EndTime, which makes no sense and leads to negative values.  

      TestRail: Results

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jankoppe Jan Koppe
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                TestRail: Cases