Bug 229693 - objectclass without parent causes null pointer in console
Summary: objectclass without parent causes null pointer in console
Status: CLOSED DUPLICATE of bug 234948
Alias: None
Product: 389
Classification: Retired
Component: UI - Configuration
Version: 1.0.4
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Rich Megginson
QA Contact: Chandrasekar Kannan
Depends On:
Blocks: 152373 249650
TreeView+ depends on / blocked
Reported: 2007-02-22 20:02 UTC by Aaron Luchko
Modified: 2015-01-04 23:24 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2008-12-05 18:16:53 UTC

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

Description Aaron Luchko 2007-02-22 20:02:22 UTC
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 20:02:22 UTC
Created attachment 148615 [details]
The stack trace from the null pointer

Comment 2 Aaron Luchko 2007-02-22 20:13:43 UTC
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-23 03:08:37 UTC
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 18:16:53 UTC

*** 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.