Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1799028

Summary: RHDS 11.1: Clicking into combobox fields cause Cockpit to crash
Product: Red Hat Directory Server Reporter: Marc Muehlfeld <mmuehlfe>
Component: cockpit-389-dsAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: RHDS QE <ds-qe-bugs>
Severity: unspecified Docs Contact:
Priority: high    
Version: 11.0CC: pasik, sgouvern, spichugi, tbordaz, vashirov
Target Milestone: DS11.1   
Target Release: dirsrv-11.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 10:53:12 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:
Attachments:
Description Flags
Screenshot Console
none
attribute uniqueness dialog none

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