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

fix: purge should accept any content-type and no body #540

Merged
merged 4 commits into from
Mar 13, 2024

Conversation

knuhau
Copy link
Collaborator

@knuhau knuhau commented Mar 12, 2024

Issue #538

@knuhau knuhau marked this pull request as ready for review March 12, 2024 16:32
@knuhau knuhau requested a review from a team as a code owner March 12, 2024 16:32
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)
elsand
elsand previously approved these changes Mar 13, 2024
…Owner/Dialogs/Commands/Purge/PurgeDialogCommandValidator.cs
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 merged commit 736fb59 into main Mar 13, 2024
14 checks passed
@knuhau knuhau deleted the fix/purge-accept-no-body branch March 13, 2024 09:27
oskogstad pushed a commit that referenced this pull request Mar 13, 2024
🤖 I have created a release *beep* *boop*
---


##
[1.1.0](v1.0.4...v1.1.0)
(2024-03-13)


### Features

* Add name lookups
([#532](#532))
([db9cadc](db9cadc))
* **azure:** add redis resource
([#518](#518))
([1b2c013](1b2c013))
* use redis in web api
([#527](#527))
([eabd708](eabd708))


### Bug Fixes

* Allow for 2 seconds clock skew in token validation
([#536](#536))
([a0147b8](a0147b8))
* **azure:** rename connection string key for redis
([#533](#533))
([db36213](db36213))
* **azure:** revert to using connection string for IDistributedCache
Redis ([#526](#526))
([d19350d](d19350d))
* **azure:** use built-in policy for redis
([#521](#521))
([2a8fa76](2a8fa76))
* **azure:** use secret uri instead of host name in app config
([#522](#522))
([7cafd77](7cafd77))
* **azure:** use SSL port for redis in connection string
([#546](#546))
([548bc47](548bc47))
* Change IfMatchDialogRevision to Revision in DTO
([#535](#535))
([3a065d3](3a065d3))
* purge should accept any content-type and no body
([#540](#540))
([736fb59](736fb59))
* remove prefix for redis connection string
([#541](#541))
([ceb204c](ceb204c))
* Update Altinn Authorization integration
([#457](#457))
([#469](#469))
([d0d846d](d0d846d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants