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

add 400 - Bad Request for invalid session ID in GET & DELETE /sessions/{sessionId} #210

Merged

Conversation

maxl2287
Copy link
Collaborator

@maxl2287 maxl2287 commented Sep 4, 2023

What type of PR is this?

Add one of the following kinds:

  • enhancement

What this PR does / why we need it:

There is no expected behaviour for an malformed Session-Id in the GET- & DELETE-request.
This PR shell add a Bad Request (HTTP 400) for the GET & DELETE /sessions/{sessionId} - endpoint.

Which issue(s) this PR fixes:

Fixes #209

@maxl2287 maxl2287 force-pushed the add-400-bad-request-get-sessions branch from f4f8662 to 97e5742 Compare September 4, 2023 07:45
@maxl2287 maxl2287 changed the title add 400 - Bad Request for invalid session ID in GET /sessions/{sessionId} add 400 - Bad Request for invalid session ID in GET /sessions/{sessionId} + fix megalinter-truthy-issue Sep 4, 2023
@maxl2287 maxl2287 force-pushed the add-400-bad-request-get-sessions branch from 885023d to 97e5742 Compare September 4, 2023 11:17
@maxl2287 maxl2287 changed the title add 400 - Bad Request for invalid session ID in GET /sessions/{sessionId} + fix megalinter-truthy-issue add 400 - Bad Request for invalid session ID in GET /sessions/{sessionId} Sep 4, 2023
@maxl2287 maxl2287 force-pushed the add-400-bad-request-get-sessions branch from 97e5742 to 9370b63 Compare September 4, 2023 20:17
@RandyLevensalor
Copy link
Collaborator

@maxl2287 please rebase. Your other PR to fix linting has been merged. I'll provide comments in the ticker per this patch.

@maxl2287 maxl2287 force-pushed the add-400-bad-request-get-sessions branch from 9370b63 to a7ead58 Compare September 5, 2023 20:50
@maxl2287
Copy link
Collaborator Author

maxl2287 commented Sep 5, 2023

@RandyLevensalor done. 🐈‍⬛

@maxl2287 maxl2287 changed the title add 400 - Bad Request for invalid session ID in GET /sessions/{sessionId} add 400 - Bad Request for invalid session ID in GET & DELETE /sessions/{sessionId} Sep 6, 2023
@maxl2287
Copy link
Collaborator Author

maxl2287 commented Sep 8, 2023

@RandyLevensalor could you do a review again, please ?

Copy link
Collaborator

@hdamker hdamker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ... @RandyLevensalor will you merge?

@RandyLevensalor RandyLevensalor merged commit bcb3c75 into camaraproject:main Sep 11, 2023
@maxl2287 maxl2287 deleted the add-400-bad-request-get-sessions branch October 27, 2023 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add 400 - Bad Request for an invalid sessionId GET + DELETE /sessions/{sessionId}:
4 participants