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

Bug 1940643

Summary: UI - schema tab crashes if an attribute is missing the X-ORIGIN keyword
Product: Red Hat Directory Server Reporter: mreynolds
Component: cockpit-389-dsAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: RHDS QE <ds-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 11.2CC: gkimetto, ldap-maint, sgouvern, vashirov
Target Milestone: DS11.3   
Target Release: dirsrv-11.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: redhat-ds-11-8040020210326143715.45c09202 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-19 07:54:28 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 mreynolds 2021-03-18 19:05:47 UTC
Description of problem:

If an attribute definition does not have an X-ORIGIN keyword/value set then the Schema Tab will crash when it loads the schema definitions:

attributeTypes: (
  1.3.6.1.4.1.63.1000.1.1.1.1.7
  NAME 'apple-user-class'
  DESC 'user class'
  EQUALITY caseExactIA5Match
  SUBSTR caseExactIA5SubstringsMatch
  SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
  SINGLE-VALUE
  )

Comment 8 Gilbert Kimetto 2021-04-20 14:06:34 UTC
Verified with :
389-ds-base-1.4.3.22-1.module+el8dsrv+10501+8ce33e95.x86_64
python3-lib389-1.4.3.22-1.module+el8dsrv+10501+8ce33e95.noarch
cockpit-389-ds-1.4.3.13-1.module+el8dsrv+8334+69a46a2e.noarch
389-ds-base-libs-1.4.3.22-1.module+el8dsrv+10501+8ce33e95.x86_64


STEPS:
1.) Created an instance
2.) Update the 20subscriber.ldif schema file in /usr/share/dirsrv/schema with the following attribute:
    attributeTypes: (
  1.3.6.1.4.1.63.1000.1.1.1.1.7
  NAME 'apple-user-class'
  DESC 'user class'
  EQUALITY caseExactIA5Match
  SUBSTR caseExactIA5SubstringsMatch
  SYNTAX 1.3.6.1.4.1.1466.115.121.1.26
  SINGLE-VALUE
  )
3.) Stopped the instance and start it
4.) Refresh the Web Console

the Webconsole is available and does not crash. 

Marking as VERIFIED

Comment 10 errata-xmlrpc 2021-05-19 07:54:28 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-2021:2038