Bug 1817554 - cockpit crashes when creating new sasl mapping
Summary: cockpit crashes when creating new sasl mapping
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
unspecified
unspecified
Target Milestone: ---
: dirsrv-11.1
Assignee: mreynolds
QA Contact: RHDS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-26 15:01 UTC by sgouvern
Modified: 2020-04-29 08:04 UTC (History)
3 users (show)

Fixed In Version: 389-ds-base-1.4.2.11-1.module+el8dsrv+6254+69a018e7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-29 08:04:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:1961 0 None None None 2020-04-29 08:04:49 UTC

Description sgouvern 2020-03-26 15:01:29 UTC
Description of problem:
'Cockpit had an unexpected internal error.' when creating a new sasl mapping


Version-Release number of selected component (if applicable):
cockpit-389-ds-1.4.2.9-1.module+el8dsrv+6001+1cbc6dcf.noarch

How reproducible:
always

Steps to Reproduce:
1. Go to 'SASL settings and mappings'
2. Click 'Create new mapping'
3. Enter value for each field
4. Click 'create mapping'

Actual results:
message 'Ooops!' at the top right of the console
New mapping appears in the Sasl mappings table

Expected results:
cockpit does not crash

Additional info:

Javascript console details :
CMD: loadConfig: Get SASL settings ==> dsconf -j inst1 config get
index.js:sourcemap:83 CMD: loadMechs: Get supported SASL mechanisms ==> dsconf -j inst1 sasl get-mechs
index.js:sourcemap:83 CMD: get_and_set_sasl: Get SASL mappings ==> dsconf -j inst1 sasl list --details
index.js:sourcemap:83 CMD: createMapping: Create sasl mapping ==> dsconf -j inst1 sasl create --cn=example_map --nsSaslMapFilterTemplate=cn=\1 --nsSaslMapRegexString=\(.*\) --nsSaslMapBaseDNTemplate=ou=people,dc=example,dc=com --nsSaslMapPriority=100
index.js:sourcemap:83 CMD: loadConfig: Get SASL settings ==> dsconf -j inst1 config get
index.js:sourcemap:83 Uncaught TypeError: e.props.addNotification is not a function
    at Function.<anonymous> (index.js:sourcemap:83)
    at s (cockpit.js:sourcemap:979)
    at cockpit.js:sourcemap:991
    at n (cockpit.js:sourcemap:897)
index.js:sourcemap:83 CMD: loadMechs: Get supported SASL mechanisms ==> dsconf -j inst1 sasl get-mechs
index.js:sourcemap:83 CMD: get_and_set_sasl: Get SASL mappings ==> dsconf -j inst1 sasl list --details
index.js:sourcemap:83 CMD: loadConfig: Get SASL settings ==> dsconf -j inst1 config get

Comment 3 sgouvern 2020-04-20 06:54:16 UTC
With cockpit-389-ds-1.4.2.12-1.module+el8dsrv+6328+f04d7471.noarch / 389-ds-base-1.4.2.12-1.module+el8dsrv+6328+f04d7471.x86_64

No more crash when creating a new SASL mapping

=> marking as verified

Comment 5 errata-xmlrpc 2020-04-29 08:04:41 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, 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:1961


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