StreetCode icon indicating copy to clipboard operation
StreetCode copied to clipboard

[API][Admin/StreetCode page/Tags] An admin can create a tag with an empty title through the creation or updating of a streetcode

Open SophiaMRI opened this issue 1 year ago • 1 comments
trafficstars

Environment: All Reproducible: Always Build found: 79fb490

Steps to reproduce

  1. Add all necessary data to the body.
  2. Leave the title key empty (e.g.: "tags": [
    { "id": 0, "title": " ", "isVisible": true, "index": 0, "streetcodeId": 1385, "modelState": 0/2 } ], ).
  3. Click the 'Send' button.

Actual result

  1. The 200 OK status in the response.
  2. The tag has been created without a title.

www1716546604883

eee1716546678058

Expected result

  1. The 400 status in the response.
  2. The "The Title field is required." message in the response.

User story and test case links User story #20

SophiaMRI avatar May 24 '24 10:05 SophiaMRI