Status 200 after entering an incorrect Id for GET / notification endpoint

Description

While checking OLMIS-5859, I noticed that when I enter an Id that has too few characters, the response receives 200 code instead of information that the user with the given Id doesn't exist.

Reproduction steps:

  1. Use the GET /api/notification endpoint.

  2. Enter Id that has too few characters e.g. a337ec45-31a0-4f2b-9b2e-a1 and click the "GET" button.

Expected behavior:

  • The 400 code should be returned, along with the "UUID a337ec45-31a0-4f2b-9b2e-a1 parameter has wrong format for field userId." message. Or information that the user with the given Id doesn't exist.

Environment

None

Attachments

1

Activity

Joanna Szymańska 
January 11, 2019 at 10:03 AM

I checked, and the issue is still valid.

Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Story Points

Components

Sprint

Fix versions

Priority

Time Assistant

Created December 20, 2018 at 3:56 PM
Updated February 13, 2019 at 8:55 AM
Resolved February 13, 2019 at 8:55 AM