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

suggestion: validate purge command input #542

Merged

Conversation

oskogstad
Copy link
Collaborator

This validates the GUID input on purge commands so that we get a 400 error, instead of 500, when posting bad GUIDs.
(The error will always say "DialogId cannot be 00000...", and not "invalid JSON" .. but better than nothing)

@oskogstad oskogstad requested a review from a team as a code owner March 13, 2024 01:19
@oskogstad oskogstad requested a review from knuhau March 13, 2024 01:19
@knuhau knuhau changed the title Validate purge command input fix: validate purge command input Mar 13, 2024
Copy link

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@knuhau knuhau changed the title fix: validate purge command input suggestion: validate purge command input Mar 13, 2024
@knuhau knuhau merged commit 31eff21 into fix/purge-accept-no-body Mar 13, 2024
2 of 3 checks passed
@knuhau knuhau deleted the suggestion/validate-purge-command-input branch March 13, 2024 07:57
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.

2 participants