Bug 1799028 - RHDS 11.1: Clicking into combobox fields cause Cockpit to crash
Summary: RHDS 11.1: Clicking into combobox fields cause Cockpit to crash
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: cockpit-389-ds
Version: 11.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: DS11.1
: dirsrv-11.2
Assignee: mreynolds
QA Contact: RHDS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-06 13:35 UTC by Marc Muehlfeld
Modified: 2020-11-04 10:53 UTC (History)
5 users (show)

Fixed In Version: 389-ds-base-1.4.3.11-1.module+el8dsrv+7557+bc264682
Doc Type: Bug Fix
Doc Text:
Cause: Clicking on typeahead comboboxes in the UI Consequence: The console would crash Fix: Properly populate the typeAhead comboboxes Result: THe UI does not crash when clicking on comboboxes
Clone Of:
Environment:
Last Closed: 2020-11-04 10:53:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot Console (127.40 KB, image/png)
2020-02-06 14:40 UTC, Marc Muehlfeld
no flags Details
attribute uniqueness dialog (111.61 KB, image/png)
2020-04-20 12:43 UTC, Viktor Ashirov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 4222 0 None closed UI - attr uniqueness - selecting empty subtree crashes cockpit 2020-09-18 10:01:38 UTC
Red Hat Product Errata RHBA-2020:4911 0 None None None 2020-11-04 10:53:24 UTC

Description Marc Muehlfeld 2020-02-06 13:35:56 UTC
Description of problem:
There are several comboboxes (not all) in the RHDS 11.1 Cockpit console on RHEL 8.2 beta, that cause to crash Cockpit if you click in to the fields.



Version-Release number of selected component (if applicable):
cockpit-389-ds-1.4.2.7-1.module+el8dsrv+5547+8be68086.noarch


Steps to Reproduce:
1. Log in to Cockpit.
2. Open the Plugins menu.
3. Select "Attribute Uniqueness".
4. Click "Add Config".
5. Click into the "Attribute Names" field.


Actual results:
Cockpit crashes.


Expected results:
The combobox should open and show the list of entries.



Additional info:
The problem does not seem to exist with all comboboxes of this style. However, it is also 100% reproduceable here:
- Plugins / MemberOf , if you click in to the "Group Attribute" field
- Plugins / Auto Membership / Add definition, if you click in to "Grouping Attributes" field.

Comment 1 mreynolds 2020-02-06 14:26:44 UTC
In the console log (press F12) are you seeing typeAhead errors?  If so, we already have a fix for this that will be coming out soon.  If the crash is not caused by typaAhead then please share the console log errors.

Comment 2 Marc Muehlfeld 2020-02-06 14:40:23 UTC
Created attachment 1658228 [details]
Screenshot Console

I attached a screenshot of the console.

The two errors were logged when I clicked into the "Attribute Names" field (Attribute Uniqueness plug-in).

Comment 3 Marc Muehlfeld 2020-02-07 08:37:10 UTC
I don't know if this is related, but I found another situation where Cockpit crashes (requires a replication setup):

1. Open the "Monitoring" tab.
2. Select "Replication" entry.
3. On the "Agreements" tab, open the "Actions" menu.
4. Click "View Agreement Details"

Comment 4 mreynolds 2020-02-07 13:39:02 UTC
(In reply to Marc Muehlfeld from comment #3)
> I don't know if this is related, but I found another situation where Cockpit
> crashes (requires a replication setup):
> 
> 1. Open the "Monitoring" tab.
> 2. Select "Replication" entry.
> 3. On the "Agreements" tab, open the "Actions" menu.
> 4. Click "View Agreement Details"

This works fine for me, what is your setup exactly?

Comment 5 Marc Muehlfeld 2020-02-07 14:10:08 UTC
(In reply to mreynolds from comment #4)
> (In reply to Marc Muehlfeld from comment #3)
> > I don't know if this is related, but I found another situation where Cockpit
> > crashes (requires a replication setup):
> > 
> > 1. Open the "Monitoring" tab.
> > 2. Select "Replication" entry.
> > 3. On the "Agreements" tab, open the "Actions" menu.
> > 4. Click "View Agreement Details"
> 
> This works fine for me, what is your setup exactly?

I set up a single-master replication environment on RHEL 8.2 beta by following this procedure:
http://ccs-jenkins.gsslab.brq.redhat.com:8080/job/doc-Red_Hat_Directory_Server-Administration_Guide-branch-mmuehlfe_RHELPLAN-29954/lastSuccessfulBuild/artifact/tmp/en-US/html-single/index.html#setting_up_single-master_replication_using_the_web_console
The only differences:
- Both instances run on the same host
- The consumer instance uses port 1389 and 1636
Replication works. Status is: "Error (0) Replica acquired successfully: Incremental update succeeded"

However, if I try to display the replication agreement details, Cockpit crashes.

If you want, you can access my VM via SSH/Cockpit. Ping me on IRC.

Comment 8 Viktor Ashirov 2020-04-20 12:42:56 UTC
Build tested: cockpit-389-ds-1.4.2.12-1.module+el8dsrv+6328+f04d7471.noarch

If there is no suffix created, and I try to add attribute uniqueness plugin, clicking on an empty element in Subtree DN causes cockpit to crash.

Marking as ASSIGNED.

Comment 9 Viktor Ashirov 2020-04-20 12:43:46 UTC
Created attachment 1680266 [details]
attribute uniqueness dialog

Comment 13 mreynolds 2020-06-19 16:12:43 UTC
Upstream ticket:

https://pagure.io/389-ds-base/issue/51169

Comment 14 Viktor Ashirov 2020-07-10 11:44:23 UTC
Build tested: cockpit-389-ds-1.4.2.12-3.module+el8dsrv+6923+6ab1d5c5.noarch

It is still crashing with the steps from #c8

TypeError: Cannot read property 'paginationOption' of undefined

Moving to ASSIGNED.

Comment 16 Simon Pichugin 2020-07-27 12:27:36 UTC
The change needs to be included into the new build.
https://pagure.io/389-ds-base/issue/51169

Comment 19 sgouvern 2020-09-18 12:56:57 UTC
with build 
389-ds-base-1.4.3.11-1.module+el8dsrv+7557+bc264682.x86_64
cockpit-389-ds-1.4.3.11-1.module+el8dsrv+7557+bc264682.noarch

I tried all steps described above, plus more. 
I didn't reproduce any crash.

Marking as Verified

Comment 21 errata-xmlrpc 2020-11-04 10:53:12 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 (Red Hat Directory Server 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-2020:4911


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