Bug 2239787 - RHDS Console - Failing to show entries with certificate in the Table View.
Summary: RHDS Console - Failing to show entries with certificate in the Table View.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: cockpit-389-ds
Version: 11.7
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: DS11.9
: dirsrv-11.9
Assignee: LDAP Maintainers
QA Contact: LDAP QA Team
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-09-20 07:56 UTC by Têko Mihinto
Modified: 2024-05-21 00:09 UTC (History)
5 users (show)

Fixed In Version: 389-ds-base-1.4.3.39-1.module+el8dsrv+21143+6a9f8bbf
Doc Type: Release Note
Doc Text:
When an LDAP entry contains a binary attribute, that is usually a large value, UI truncates its value and through an exception when handling it. With the fix binary attribute, like jpegphoto or usercertificate are now correctly handle and UI does not send an exception
Clone Of:
Environment:
Last Closed: 2024-05-21 00:09:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker IDMDS-4049 0 None None None 2024-01-10 16:45:41 UTC
Red Hat Issue Tracker IDMDS-4274 0 None None None 2024-03-28 15:41:13 UTC
Red Hat Product Errata RHEA-2024:2934 0 None None None 2024-05-21 00:09:02 UTC

Description Têko Mihinto 2023-09-20 07:56:20 UTC
Description of problem:
The RHDS Console is throwing an exception while trying to show an entry with binary attribute(s).

The stacktrace in the JS console is:
=========================================
index.js:2 Uncaught TypeError: Cannot read properties of undefined (reading 'toLowerCase')
    at index.js:2:2776510
    at Array.map (<anonymous>)
    at index.js:2:2776455
    at Function.<anonymous> (index.js:2:2381931)
    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.8 (Ootpa)
$
$ rpm -qa | grep 389-ds
389-ds-base-1.4.3.34-1.module+el8dsrv+18528+22f7779f.x86_64
389-ds-base-libs-1.4.3.34-1.module+el8dsrv+18528+22f7779f.x86_64
cockpit-389-ds-1.4.3.34-1.module+el8dsrv+18528+22f7779f.noarch
$

How reproducible:
Always.

Steps to Reproduce:
1. Add an entry with a binary attribute ( jpegPhoto, userCertificate, ... )
2. Try to see the entry in the Table View of the LDAP Browser
3. There will be an exception and the RHDS Console won't show the entry
4. Remove the binary attribute from the entry. It's now visible in the Console.

Actual results:
Failure to show entries.

Expected results:
Show entries with binary attributes.
Ideally decode such attributes ( as it was done in the previous Java Console ).

Additional info:

Comment 8 bsmejkal 2024-04-19 12:00:19 UTC
Build tested:
389-ds-base-1.4.3.39-3.module+el8dsrv+21677+4b22807b.x86_64

An entry with binary attributes (jpegPhoto, userCertificate) is displayed correctly in Ldap Browser's Table View and no exception is raised.
Marking as Verified.

Comment 11 errata-xmlrpc 2024-05-21 00:09:00 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/RHEA-2024:2934


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