Bug 1913969
Summary: | Field dependency descriptor can sometimes cause an exception | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Jon Jackson <jonjacks> |
Component: | Management Console | Assignee: | Jon Jackson <jonjacks> |
Status: | CLOSED ERRATA | QA Contact: | Yadan Pei <yapei> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.5 | CC: | aos-bugs, jokerman, yapei |
Target Milestone: | --- | Keywords: | UpcomingSprint |
Target Release: | 4.7.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: `getJSONSchemaPropertySortWeight` helper function would recurse infinitely if a fieldDependency descriptor was applied to a schema property using a control field with an identical name.
Consequence: The DynamicForm component would throw an exception under the above condition.
Fix: In `getJSONSchemaPropertySortWeight` helper function, keep track of the current path and use the entire path to determine dependency relationship instead of just the field names.
Result: DynamicForm no longer throws an exception under the above condition.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2021-02-24 15:51:24 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
Jon Jackson
2021-01-07 21:34:24 UTC
Hi Jon, Could you tell me which operator can easily reproduce the issue? Hi Yadan, I don't know of an existing operator, but I've created a gist with the YAML to create a mock Operator similar to what I used to reproduce. I added a link in the bug details. Just create the CRD, then create the CSV in whatever namespace you want and you should see a "Mock Operator" on the Installed Operators page. It provides one CR: "MockResource" and attempting to create an instance of that resource should reproduce the bug before my fix. Here's the gist: https://gist.github.com/TheRealJon/3680c8a573bde88a974588e269230562 Thank you very much Jon, The mock csv and crd yaml is very helpful, I created them and tried to create an instance of 'MockResource', the browser didn't crash Verified on 4.7.0-0.nightly-2021-02-03-165316 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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), 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/RHSA-2020:5633 |