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): fedora-ds-1.0.4-1.Linux How reproducible: Always 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: ( 1.3.6.1.4.1.18320.1.2 NAME 'maildrop' DESC 'Email account or username to deliver all email to' SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 X-ORIGIN 'A Postfix Schema' ) objectClasses: ( 1.3.6.1.4.1.18320.2.1 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.
Created attachment 148615 [details] The stack trace from the null pointer
I've added bug 229699 which describes a different error but with what is likely the same underlying problem
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).
*** This bug has been marked as a duplicate of bug 234948 ***