[ http://issues.apache.org/jira/browse/DIRSERVER-637?page=all ]

Ersin Er updated DIRSERVER-637:
-------------------------------

    Attachment: AddingEntriesWithMissingMustAttributesShouldFail.diff

This simple patch (hopefully) solves the problem mentioned. This is a quick fix 
and only solves the problem for add operation. I have not been involved in the 
schema system before so it may not a a refined solution. However it should work 
(as tested locally). If it's OK, I can also apply it to the repository.

> Possible to create entry which misses a required attribute
> ----------------------------------------------------------
>
>          Key: DIRSERVER-637
>          URL: http://issues.apache.org/jira/browse/DIRSERVER-637
>      Project: Directory ApacheDS
>         Type: Bug

>     Versions: 1.0-RC3
>  Environment: ApacheDS 1.0 RC 3
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
> Microsoft Windows XP version 5.1 Service Pack 1
>     Reporter: Stefan Zoerner
>  Attachments: AddWithMissingAttributes.java, 
> AddingEntriesWithMissingMustAttributesShouldFail.diff
>
> It is possible to create entries which miss required attributes. Here is an 
> example: objectClass person requires a value for sn, but it is possible to 
> import the following entry:
> dn: cn=Fiona Apple,dc=example,dc=com
> objectclass: top
> objectclass: person
> cn: Fiona Apple
> I add a JUnit test class which passes if the expected error (objectClass 
> violation) occurs. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Reply via email to