OlhenShu / GreenCityProjectStage

0 stars 0 forks source link

[Eco-News, POST/econews/uploadImage] The 400 (Bad request) response code is not documented in the response codes list. #337

Closed OlhenShu closed 11 months ago

OlhenShu commented 11 months ago

Environment: Windows 11 Home Chrome 114.0.5735.91 (Official buid) (64-bit) GreenCityDocker-3 is built and running.

Reproducible: always.

Pre-conditions: User is logged in as Admin

Steps to reproduce

  1. Select the "Eco-News" controller.
  2. Select the method POST/econews/uploadImage.
  3. Set the textfile (e.g *.txt) as value of the formData parameter "image".
  4. Send the request.
  5. Compare the returned response code with the list of documented response codes.

Actual result: Response code 400 (Bad request) is not documented in the response codes list.

Expected result: Response code 400 (Bad request) is documented in the response codes list.