ita-social-projects / GreenCity

The main aim of “GreenCity” project is to teach people in a playful and challenging way to have an eco-friendly lifestyle. A user can view on the map places that have some eco-initiatives or suggest discounts for being environmentally aware (for instance, coffee shops that give a discount if a customer comes with their own cup). А user can start doing an environment-friendly habit and track their progress with a habit tracker.
MIT License
65 stars 80 forks source link

[API.UBS.Save address] The 500 status code is displayed when unauthorized user save the address. #5460

Closed LiliiaKhoroz closed 1 year ago

LiliiaKhoroz commented 1 year ago

Environment: Windows 10 Pro 21H2 Google Chrome 109.0.5414.75

Reproducible: always Build found: 13/03/2023

Preconditions:

  1. The Postman is opened.
  2. The token isn`t added.

Steps to reproduce

  1. Apply the POST method by using request url https://greencity-ubs.testgreencity.ga/ubs/findAll-order-address
  2. Fill in the request ''Body'' { "addressComment": "string", "district": "string", "districtEn": "string", "entranceNumber": "string", "houseCorpus": "string", "houseNumber": "string", "region": "string", "regionEn": "string", "searchAddress": "string" }

3.Click 'Send' button to send request

  1. Observe the 500 status code.

Actual result The system returns the 500 status code if the unauthorized User saves order addresses. Expected result The system returns the 401 status code if the unauthorized User saves order addresses.

User story and test case links E.g.: "User story #2199 [Test case] https://jira.softserve.academy/browse/GC-5642 postman

ghost commented 1 year ago

image Actual result The system returns the 405 status code if the unauthorized User saves order addresses. (Method is not allowed)