Description of problem: Dragging and dropping files into the yaml editor can enter a bad state where subsequent additions result in unexpected content. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. create 2 yaml files on your local system 2. go to the import yaml form (click the + icon in the masthead) 3. drag the first file into the yaml editor 4. delete the contents of the yaml form 5. drag the second file into the yaml editor Actual results: After dragging the second file into the form, the contents of both the first and second file appears. Expected results: Only the second file contents should be present because all contents in the form was deleted prior to adding the second file Additional info:
Checked on ocp 4.9 cluster with payload 4.9.0-0.nightly-2021-08-04-131508. Steps to verify: 1. create 2 yaml files on your local system 2. go to the import yaml form (click the + icon in the masthead) 3. drag the first file into the yaml editor 4. delete the contents of the yaml form 5. drag the second file into the yaml editor, only the second file contents are shown in the form. The bug is fixed.
1. create 2 yaml files on your local system 2. go to the import yaml form (click the + icon in the masthead) 3. drag the first file into the yaml editor 4. delete all contents of the yaml form 5. drag the 2 yaml files into the yaml editor, in YAML editor we show 3 sections, there are two duplicated YAML from the first file above steps are checked against 4.9.0-0.nightly-2021-08-07-175228, assigning back
now every time we drag & add some files, console always duplicate the content of the first file in YAML editor, checked on 4.9.0-0.nightly-2021-09-07-181920
1. create some yaml files on your local system 2. go to the import yaml form (click the + icon in the masthead) 3. drag & drop more than 1 test yaml files, no duplicates 4. drag and & drop one test file, clear the content then put more files into the editor, no duplicates the duplicate issues have been fixed Verified on 4.10.0-0.nightly-2021-09-26-233013
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.10.3 security 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-2022:0056