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

Misleading results from REST docs webpage for 304 not-modified responses

    Details

    • Severity:
      Incorrectly Functioning With Workaround
    • Steps to reproduce:
      Hide
      Login to Admin UI as admin, go to the REST docs page for /recordings/calendars e.g.

      /docs.html?path=/recordings#getcalendar-6

      Complete sample form filling in agentid and click Submit

      Results are shown.

      Click Submit again. UI shows "200 (OK)" response which is incorrect because there is actually a 304 not-modified response. Old results are shown.

      For this particular endpoint it would better not to send etag or any other info so the result is always a new calendar, but in general also important not to show misleading results.
      Show
      Login to Admin UI as admin, go to the REST docs page for /recordings/calendars e.g. /docs.html?path=/recordings#getcalendar-6 Complete sample form filling in agentid and click Submit Results are shown. Click Submit again. UI shows "200 (OK)" response which is incorrect because there is actually a 304 not-modified response. Old results are shown. For this particular endpoint it would better not to send etag or any other info so the result is always a new calendar, but in general also important not to show misleading results.

      TestRail: Results

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              smarquard Stephen Marquard
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                TestRail: Cases