Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Eco-news, POST/econews/uploadImage] Resulting in 403 error "Forbidden" when uploading image #25

Open
nina279 opened this issue Sep 11, 2023 · 0 comments

Comments

@nina279
Copy link
Collaborator

nina279 commented Sep 11, 2023

Environment:

  • macOS Ventura Version 13.4 (22F66)
  • Chrome Version 116.0.5845.179 (Official Build) (arm64)

Reproducible: always.

Preconditions:

  • GreenCityDocker-3 is built and running
  • User is authorized
  • At least one eco news article is created

Steps to reproduce:

  • Select section “eco-news-controller”.
  • Select method POST/econews/uploadImage
  • Upload an image in JPEG format.
  • Send the request.
  • Compare the returned response with the actual one.

Actual result:
Response code 403 and response body { "timestamp": "2023-09-11T21:59:08.819+00:00", "status": 403, "error": "Forbidden", "message": "You don't have authorities.", "path": "/econews/uploadImage" } is sent

Expected result:
Response code 201 Created is sent

@nina279 nina279 changed the title [Eco-news, POST/econews/uploadImage] Resulting in 403 error "Forbidden" [Eco-news, POST/econews/uploadImage] Resulting in 403 error "Forbidden" when uploading image Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant