Bug 229693 - objectclass without parent causes null pointer in console
objectclass without parent causes null pointer in console
Status: CLOSED DUPLICATE of bug 234948
Product: 389
Classification: Community
Component: UI - Configuration (Show other bugs)
All Linux
high Severity high
: ---
: ---
Assigned To: Rich Megginson
Chandrasekar Kannan
Depends On:
Blocks: 152373 249650
  Show dependency treegraph
Reported: 2007-02-22 15:02 EST by Aaron Luchko
Modified: 2015-01-04 18:24 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-12-05 13:16:53 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
The stack trace from the null pointer (2.68 KB, text/plain)
2007-02-22 15:02 EST, Aaron Luchko
no flags Details

  None (edit)
Description Aaron Luchko 2007-02-22 15:02:22 EST
Description of problem:

Null pointer in the console when trying to add an objectclass with a schema that
 has an objectclass with an attribute that is defined in another schema but the
objectclass doesn't inherit from any objectclasses in that schema.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Install fedora-ds and run setup (defaults are fine)
2. Add the following schema:
# cat /opt/fedora-ds/slapd-localhost/config/schema/61-maillist.ldif
dn: cn=schema
attributeTypes: ( NAME 'maildrop' DESC 'Email account or
username to deliver all email to' SYNTAX X-ORIGIN
'A Postfix Schema' )
objectClasses: ( NAME 'PostfixUser' DESC 'Email user with
a live email box at HCI' MUST (maildrop $ mail) X-ORIGIN 'A Postfix Schema' )

and restart the server

3. run startconsole and open the server localhost, in the directory tab select
localdomain and go New > Other
Select postfixuser from the list and hit Ok

You get the attached null pointer and the new object window never comes up.
Comment 1 Aaron Luchko 2007-02-22 15:02:22 EST
Created attachment 148615 [details]
The stack trace from the null pointer
Comment 2 Aaron Luchko 2007-02-22 15:13:43 EST
I've added bug 229699 which describes a different error but with what is likely
the same underlying problem
Comment 3 Aaron Luchko 2007-02-22 22:08:37 EST
Turns out that this bug only occurs when the objectclass doesn't inherit from
another (ie 'SUP top'), which it appears it's supposed to, and the attribute
thing has nothing to do with it.

It still results in a null pointer though I'm wondering if ns-slapd should even
start if the schema is invalid (which I think it is without the SUP).
Comment 5 Rich Megginson 2008-12-05 13:16:53 EST

*** This bug has been marked as a duplicate of bug 234948 ***

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