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 crash on malformed PATCH request #40218
Labels
area/reliability
area/security
kind/bug
Categorizes issue or PR as related to a bug.
sig/api-machinery
Categorizes an issue or PR as relevant to SIG API Machinery.
Milestone
Comments
mikkeloscar
added a commit
to mikkeloscar/json-patch
that referenced
this issue
Jan 22, 2017
This prevents a `slice bound out of range` panic when parsing an invalid json patch where the path key is missing or the path value is empty string or doesn't include `/`. Fix kubernetes/kubernetes#40218
mikkeloscar
added a commit
to mikkeloscar/json-patch
that referenced
this issue
Jan 22, 2017
This prevents a `slice bound out of range` panic when parsing an invalid json patch where the path key is missing or the path value is empty string or doesn't include `/`. Fix kubernetes/kubernetes#40218
mikkeloscar
added a commit
to mikkeloscar/kubernetes
that referenced
this issue
Jan 24, 2017
Updates github.com/evanphx/json-patch dependency to a version that doesn't crash when handling an invalid json patch. Includes fix from evanphx/json-patch#35 Fix kubernetes#40218
smarterclayton
added
area/reliability
area/security
sig/api-machinery
Categorizes an issue or PR as relevant to SIG API Machinery.
labels
Feb 28, 2017
@mikkeloscar @smarterclayton is this blocking for |
Yes but I think we fixed it. @kubernetes/sig-api-machinery-misc |
Looks like a PR went in to fix but no test was added. |
actually, #40387 is still open |
I more meant tests to make sure the apiserver doesn't crash if a bad patch is submitted |
deads2k
pushed a commit
to deads2k/kubernetes
that referenced
this issue
Mar 14, 2017
Updates github.com/evanphx/json-patch dependency to a version that doesn't crash when handling an invalid json patch. Includes fix from evanphx/json-patch#35 Fix kubernetes#40218
liggitt
pushed a commit
to liggitt/kubernetes
that referenced
this issue
Mar 15, 2017
Automatic merge from submit-queue vendor: Update github.com/evanphx/json-patch Regenerated files for kubernetes#40387 Fixes kubernetes#40218
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/reliability
area/security
kind/bug
Categorizes issue or PR as related to a bug.
sig/api-machinery
Categorizes an issue or PR as relevant to SIG API Machinery.
Is this a BUG REPORT
Kubernetes version (use
kubectl version
):Environment:
uname -a
):What happened:
API server panics on malformed PATCH request.
What you expected to happen:
It should respond with 400 instead of panicking.
How to reproduce it (as minimally and precisely as possible):
Anything else do we need to know:
The text was updated successfully, but these errors were encountered: