-
Notifications
You must be signed in to change notification settings - Fork 38.8k
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 server should return 4xx for invalid path in JSON Patch, not 500 Internal Server Error #68224
Comments
@kubernetes/sig-api-machinery-bugs |
@felixfbecker: Reiterating the mentions to trigger a notification: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @jennybuckley |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle rotten |
Is this fixed by #68346? |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Is this a BUG REPORT or FEATURE REQUEST?:
What happened:
If you make an RFC6902 JSON Patch request to the server that contains an operation with an invalid
path
, the server returns 500 Internal Server Error with responseWhat you expected to happen:
400 Bad Request seems the most appropiate here:
https://tools.ietf.org/html/rfc5789#section-2.2
How to reproduce it (as minimally and precisely as possible):
PATCH a deployment with
ContentType: application/json-patch+json
and bodyAnything else we need to know?:
Related #68202, #54423
Environment:
kubectl version
): v1.10.3uname -a
):The text was updated successfully, but these errors were encountered: