Bug 1766525
| Summary: | oc client side should detect large body size and give prompt instead of throwing lengthy error | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Xingxing Xia <xxia> |
| Component: | oc | Assignee: | Maciej Szulik <maszulik> |
| Status: | CLOSED ERRATA | QA Contact: | zhou ying <yinzhou> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 4.3.0 | CC: | aos-bugs, jokerman, mfojtik, sttts |
| Target Milestone: | --- | ||
| Target Release: | 4.4.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-05-04 11:14:34 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Xingxing Xia
2019-10-29 10:56:23 UTC
This is intentional, to fail the client rather than the server. This will be fixed in the next release when bumping k8s levels. This should be fixed with the current k8s level. Confirmed with latest oc client, can't reproduce the issue now: [root@dhcp-140-138 ~]# oc version -o yaml clientVersion: buildDate: "2020-02-14T07:28:29Z" compiler: gc gitCommit: 5d7a12f03389b03b651f963cb5ee8ddfa9cff559 gitTreeState: clean gitVersion: v4.4.0 goVersion: go1.13.4 major: "" minor: "" platform: linux/amd64 [root@dhcp-140-138 ~]# time oc create -f /tmp/cve-billion-laugh1.yaml error: error parsing /tmp/cve-billion-laugh1.yaml: error converting YAML to JSON: yaml: document contains excessive aliasing real 0m0.111s user 0m0.133s sys 0m0.021s [root@dhcp-140-138 ~]# time oc create -f /tmp/cve-billion-laugh2.yaml error: error parsing /tmp/cve-billion-laugh2.yaml: error converting YAML to JSON: yaml: document contains excessive aliasing real 0m0.106s user 0m0.135s sys 0m0.017s [root@dhcp-140-138 ~]# time oc create -f /tmp/cve-billion-laugh3.yaml error: error parsing /tmp/cve-billion-laugh3.yaml: error converting YAML to JSON: yaml: document contains excessive aliasing real 0m0.112s user 0m0.124s sys 0m0.029s Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0581 |