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

API_'Events'_module_500 status code is displayed when user enters not existing lessonID in lessonID field by sending PATCH request to REST endpoint #828

Open
inna-zeinalova opened this issue Mar 31, 2022 · 0 comments · May be fixed by #880
Assignees
Labels
bug Something isn't working

Comments

@inna-zeinalova
Copy link

inna-zeinalova commented Mar 31, 2022

Reproducible: always
Build found: last commit from https://github.com/ita-social-projects/WhatBackend

Preconditions

Steps to reproduce

  1. Make PATCH request to REST endpoint https://whatbackend.azurewebsites.net/index.html?urls.primaryName=WHAT%20Project%20API%20v2 for 'Events' module

Test data:
Id of scheduled event = EventId (last created EventId + 1)

Lesson to be connected (lessonId) = 12345

Actual result

Status code 500 ("Internal Server Error. An error occurred while updating the entries. See the inner exception for details.") is displayed

Expected result

Status code 404: given lessonID not found is displayed

Postconditions

Log out from https://whatbackend.azurewebsites.net/index.html?urls.primaryName=WHAT%20Project%20API%20v2

Test case link: https://jira.softserve.academy/browse/DW-387

Labels to be added
'Bug', Priority ('Medium'), Severity ('Minor'), Type ('Functional')

Attachment
https://monosnap.com/file/EkhbbHnV7L2p20tq3CuI9FUyRu9k1W

@inna-zeinalova inna-zeinalova added the bug Something isn't working label Mar 31, 2022
@inna-zeinalova inna-zeinalova changed the title API_'Events'_500 status code is displayed when User enters not existing lessonID in lessonID field by sending PATCH request to REST endpoint API_'Events'_module_500 status code is displayed when User enters not existing lessonID in lessonID field by sending PATCH request to REST endpoint Mar 31, 2022
@inna-zeinalova inna-zeinalova changed the title API_'Events'_module_500 status code is displayed when User enters not existing lessonID in lessonID field by sending PATCH request to REST endpoint API_'Events'_module_500 status code is displayed when user enters not existing lessonID in lessonID field by sending PATCH request to REST endpoint Apr 2, 2022
@Ssashaa Ssashaa self-assigned this May 13, 2022
@Ssashaa Ssashaa linked a pull request May 16, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants