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

return 404 resp for patch when entry does not exist #56

Merged
merged 1 commit into from Nov 23, 2021

Conversation

ccapurso
Copy link
Contributor

Overview

Vault PR #12687 introduced a global translation of a nil logical.Response for a PatchOperation to a 404 Not Found response. After further review, this translation cannot be used as there are CreateOperation and UpdateOperation handlers that return a nil logical.Response (ultimately translated to a 204 No Content. The aforementioned global translation has been removed in Vault PR #13167.

Design of Change

The PatchOperation for the KVv2 data endpoint will now return explicit 404 Not Found responses when an entry does not exist.

Related Issues/Pull Requests

#13167

@ccapurso ccapurso merged commit 16933c8 into master Nov 23, 2021
@ccapurso ccapurso deleted the kv-patch-return-explicit-404 branch November 23, 2021 17:16
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.

None yet

2 participants