Entering an incorrect date in the If Modified Since header results in an error

Description

When I was testing OLMIS-6476, I noticed that if one enters an incorrect date in the If Modified Since header, the request results in the Internal Server Error.

Reproduction steps:

  1. Obtain the administrator's access token.

  2. Make any request to the GET orderables endpoint, using the If-Modified-Since header.

  3. Enter an incorrect date in the If-Modified-Since header, e.g. Tue, 12 Aug 2019 08:45:16 GMT (It was in fact Monday, not Tuesday).

  4. The request returns an Internal Server Error.

Expected results:

  • Bad request should be returned and information that the provided date is incorrect.

Environment

None

Assignee

Unassigned

Reporter

Joanna Bebak

Labels

Epic Link

Components

Priority

Minor
Configure