Bug 2147382 - RHDS Console for RHEL 8.7 fails to load the replication configuration.
Summary: RHDS Console for RHEL 8.7 fails to load the replication configuration.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: cockpit-389-ds
Version: 11.6
Hardware: x86_64
OS: Linux
urgent
high
Target Milestone: DS11.6
: dirsrv-11.6
Assignee: mreynolds
QA Contact: LDAP QA Team
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-23 21:11 UTC by Têko Mihinto
Modified: 2023-03-01 09:28 UTC (History)
8 users (show)

Fixed In Version: redhat-ds-11-8070020221130183156.95958119
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-17 08:52:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 5443 0 None closed UI - save buttons should be disabled while saving 2022-11-24 16:27:09 UTC
Red Hat Issue Tracker IDMDS-2648 0 None None None 2022-11-23 21:35:03 UTC
Red Hat Issue Tracker IDMDS-2664 0 None None None 2022-11-30 14:21:36 UTC
Red Hat Product Errata RHBA-2023:0186 0 None None None 2023-01-17 08:52:13 UTC

Description Têko Mihinto 2022-11-23 21:11:24 UTC
Description of problem:
The RHDS Console is failing to load the replication configuration.

The JS Console shows:
=============================================================
CMD: loadReplSuffix: Load the replication info ==> dsconf -j ldapi://%2fvar%2frun%2fslapd-supplier_1.socket replication get-changelog --suffix o=test
VM62:1 Uncaught SyntaxError: Unexpected token 'u', "usage: dsc"... is not valid JSON
    at JSON.parse (<anonymous>)
    at Function.<anonymous> (index.js:2:2030486)
    at cockpit.js:1:12867
    at cockpit.js:1:12978
    at L (cockpit.js:1:12383)
=============================================================

Version-Release number of selected component (if applicable):
$ cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.7 (Ootpa)
$

$ rpm -qa | grep 389-ds
389-ds-base-libs-1.4.3.31-6.module+el8dsrv+16980+c4b9cd33.x86_64
cockpit-389-ds-1.4.3.31-6.module+el8dsrv+16980+c4b9cd33.noarch
389-ds-base-1.4.3.31-6.module+el8dsrv+16980+c4b9cd33.x86_64
$

How reproducible:
Always

Steps to Reproduce:
1. Launch the RHDS Console
2. Select the Replication tab
3. The page will show a running spinner and will fail to load the replication data

Actual results:
Cannot see the replication configuration with the RHDS Console.

Expected results:
Working Web UI.

Additional info:

The command is failing because of the option --suffix:

$ dsconf -j ldapi://%2fvar%2frun%2fslapd-supplier_1.socket replication get-changelog --suffix o=test
usage: dsconf [-h] [-v] [-D BINDDN] [-w BINDPW] [-W] [-y PWDFILE] [-b BASEDN]
              [-Z] [-j]
              instance
              {backend,backup,chaining,config,directory_manager,monitor,plugin,pwpolicy,localpwp,replication,repl-agmt,repl-winsync-agmt,repl-tasks,sasl,security,schema,repl-conflict}
              ...
dsconf: error: unrecognized arguments: --suffix o=test
$

It works fine without that option:

$ dsconf -j ldapi://%2fvar%2frun%2fslapd-supplier_1.socket replication get-changelog
{
    "type": "entry",
    "dn": "cn=changelog5,cn=config",
    "attrs": {
...
$

Comment 2 mreynolds 2022-11-23 21:31:10 UTC
It's a regression from:  https://github.com/389ds/389-ds-base/issues/5443  It should not be using the "--suffix" option on 1.4.3

Comment 3 mreynolds 2022-11-24 13:24:41 UTC
Fixed upstream

Comment 13 thierry bordaz 2023-01-09 13:58:19 UTC
Fix pushed upstream => POST

Comment 16 errata-xmlrpc 2023-01-17 08:52:07 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 (redhat-ds:11 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-2023:0186


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