RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1872660 - [machines] There is an 'Ooops' when input something to 'Target Path' on 'Storage Pool' creation dialog
Summary: [machines] There is an 'Ooops' when input something to 'Target Path' on 'Stor...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: cockpit-appstream
Version: 8.3
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: 8.4
Assignee: Katerina Koukiou
QA Contact: YunmingYang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-26 10:30 UTC by YunmingYang
Modified: 2021-05-18 15:53 UTC (History)
7 users (show)

Fixed In Version: 237
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:53:11 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description YunmingYang 2020-08-26 10:30:17 UTC
Description of problem:
There will be an 'Ooops' when inputting something by 'Ctrl + C' and 'Ctrl + V' to 'Target Path' on 'Storage Pool' creation dialog.

Version-Release number of selected components (if applicable):
cockpit-machines-224.2-1.el8.noarch
libvirt-dbus-1.3.0-2.module+el8.3.0+6423+e4cb6418.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Open the 'Storage Pool' creation dialog
2. Copy a path(such as /home/test) to 'Target Path' by 'Ctrl + C' and 'Ctrl + V'
3. Then input 'Arrow Down' by keyboard

Actual results:
1. After step 2, the drop-down list doesn't show the input option(The path exists on the host)
2. After step 3, there will be an 'Ooops' shown

Expected results: 
1. After step 2, the drop-down list show the input option
2. After step 3, no 'Ooops' shown

Additional info:
Error message from browser  console:
machines.js:114 Uncaught TypeError: Cannot read property 'classList' of null
    at handleTypeaheadKeys (machines.js:114)
    at onKeyDown (machines.js:114)
    at Object.s (machines.js:98)
    at f (machines.js:98)
    at machines.js:98
    at v (machines.js:98)
    at at (machines.js:98)
    at it (machines.js:98)
    at st (machines.js:98)
    at ft (machines.js:98)

Comment 2 Katerina Koukiou 2021-01-26 15:54:23 UTC
PR sent upstream but it's blocked on some patternfly-react open patches. https://github.com/cockpit-project/cockpit/pull/15219

Comment 5 Katerina Koukiou 2021-02-02 11:08:10 UTC
Fixed with:

commit 7d44ac7b93223bcd86ea748ec548948fc0f397f7
Author: Katerina Koukiou <kkoukiou>
Date:   Tue Feb 2 11:21:06 2021 +0100

    lib: improve our custom FileAutocomplete component

Comment 8 YunmingYang 2021-02-07 08:23:25 UTC
Test Versions:
cockpit-machines-237-1.el8.noarch
cockpit-236-1.el8.x86_64
libvirt-dbus-1.3.0-2.module+el8.3.0+6423+e4cb6418.x86_64


Test Steps:
1. Open the 'Storage Pool' creation dialog
2. Copy a path(such as /home/test) to 'Target Path' by 'Ctrl + C' and 'Ctrl + V'
3. Then input 'Arrow Down' by keyboard

Test Results:
1. After step 2, the drop-down list show the input option
2. After step 3, no 'Ooops' shown.

According to the results, move the status to VERIFIED.

Comment 10 errata-xmlrpc 2021-05-18 15:53:11 UTC
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 (cockpit-appstream 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/RHBA-2021:1875


Note You need to log in before you can comment on or make changes to this bug.