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

Bug 2017441

Summary: cockpit : Export changelog allows to check both 'Export to LDIF For Debugging' options but only takes one into account
Product: Red Hat Directory Server Reporter: sgouvern
Component: cockpit-389-dsAssignee: Simon Pichugin <spichugi>
Status: CLOSED ERRATA QA Contact: RHDS QE <ds-qe-bugs>
Severity: low Docs Contact: Evgenia Martynyuk <emartyny>
Priority: unspecified    
Version: 12.0CC: emartyny, ldap-maint, mreynolds, spichugi
Target Milestone: ---   
Target Release: dirsrv-12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: redhat-ds-12-9000020211123032220.032d475b Doc Type: Bug Fix
Doc Text:
.Changelog export now works as expected in the web console Previously in the web console, when exporting the changelog for debugging purposes, you could select both options: `Decode Base64 changes` and `Only Export CSNs`. However, only the `Export CSNs` option was taken into account. In this release, it is possible to check only one of the options, and the changelog is exported according to the selected one as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-18 15:28:06 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:

Description sgouvern 2021-10-26 14:08:55 UTC
Description of problem:
One can check both 'Decode base64 changes' and 'Only Export CSN's' options when exporting changelog for debugging, but it seems that in this case, only 'Only Export CSN's' is taken into account

Version-Release number of selected component (if applicable):
cockpit-389-ds-2.0.10-1.module+el9dsrv+12668+daa4c88c.noarch

How reproducible:
always

Steps to Reproduce:
1.Configure replication
2.Go to replication tab
3.Replication Change Log Tasks - click 'Export changelog'
4.check 'Export to LDIF For Debugging' and both 'Decode base64 changes' + 'Only Export CSN's'


Actual results:

# ls -l /tmp/changelog.ldif 
-rw-r--r--. 1 root root 85 Oct 26 09:41 /tmp/changelog.ldif
# more /tmp/changelog.ldif
# LDIF File: /tmp/changelog.ldif
csn: 61780203000100020000 (2021-10-26 13:26:27 1 0)

This changelog.ldif file is the one issued when checking only 'Only Export CSN's' :

Export to LDIF For Debugging / Only Export CSN's ->
# ls -l /tmp/changelog.ldif 
-rw-r--r--. 1 root root 85 Oct 26 09:38 /tmp/changelog.ldif
# more /tmp/changelog.ldif
# LDIF File: /tmp/changelog.ldif
csn: 61780203000100020000 (2021-10-26 13:26:27 1 0)

When checking 'Decode base64 changes', the changelog.ldif file looks like :

# ls -l /tmp/changelog.ldif 
-rw-r--r--. 1 root root 181 Oct 26 09:37 /tmp/changelog.ldif
# more /tmp/changelog.ldif
# LDIF File: /tmp/changelog.ldif

changetype: delete
replgen: 61780198000000010000
csn: 61780203000100020000
nsuniqueid: 00000000-00000000-00000000-00000000
dn: cn=start iteration

Expected results:
Only one option can be checked

Additional info:

Comment 4 sgouvern 2022-02-17 13:34:22 UTC
With cockpit-389-ds-2.0.14-2.module+el9dsrv+14105+a1e450bc.noarch

Replication / RUVs & Task / Export changelog :
Checking  'Export to LDIF For Debugging', now only one of the options 'Decode base64 changes' and 'Only Export CSN's' can be checked.

Marking as VERIFIED

Comment 5 Evgenia Martynyuk 2022-04-22 14:57:07 UTC
Hi, Simon!
I have replaced the Doc Text field with RN description. 

Could you please review the RN description for this ticket? 

Thank you!

Comment 6 Simon Pichugin 2022-04-22 19:19:52 UTC
LGTM!

Comment 7 Evgenia Martynyuk 2022-04-25 08:44:44 UTC
Marc Muehlfeld @mmuehlfe

Comment 8 Evgenia Martynyuk 2022-04-25 08:47:44 UTC
Marc Muehlfeld (mmuehlfe) has kindly review the RN text. 
Suggestions were implemented.

Comment 10 errata-xmlrpc 2022-05-18 15:28:06 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:12 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/RHEA-2022:4664