You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Stefan Zoerner (JIRA)" <ji...@apache.org> on 2006/06/07 17:47:30 UTC
[jira] Created: (DIRSERVER-637) Possible to create entry which
misses a required attribute
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
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
[jira] Assigned: (DIRSERVER-637) Possible to create entry which
misses a required attribute
Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/DIRSERVER-637?page=all ]
Alex Karasulu reassigned DIRSERVER-637:
---------------------------------------
Assignee: Alex Karasulu
> Possible to create entry which misses a required attribute
> ----------------------------------------------------------
>
> Key: DIRSERVER-637
> URL: http://issues.apache.org/jira/browse/DIRSERVER-637
> Project: Directory ApacheDS
> Issue Type: Bug
> Affects 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
> Assigned To: Alex Karasulu
> Attachments: AddingEntriesWithMissingMustAttributesShouldFail.diff, AddWithMissingAttributes.java
>
>
> 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
[jira] Updated: (DIRSERVER-637) Possible to create entry which
misses a required attribute
Posted by "Ersin Er (JIRA)" <ji...@apache.org>.
[ 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
[jira] Updated: (DIRSERVER-637) Possible to create entry which
misses a required attribute
Posted by "Stefan Zoerner (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/DIRSERVER-637?page=all ]
Stefan Zoerner updated DIRSERVER-637:
-------------------------------------
Attachment: AddWithMissingAttributes.java
This JUnit test creates an invalid person entry as described in the issue with the help of JNDI and its LDAP provider.
> 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
>
> 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
[jira] Closed: (DIRSERVER-637) Possible to create entry which
misses a required attribute
Posted by "Alex Karasulu (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/DIRSERVER-637?page=all ]
Alex Karasulu closed DIRSERVER-637.
-----------------------------------
Fix Version/s: 1.1.0
1.0-RC4
Resolution: Fixed
Committed fixes in revisions 429101 (1.0 branch) and 429102 (1.1 branch)
> Possible to create entry which misses a required attribute
> ----------------------------------------------------------
>
> Key: DIRSERVER-637
> URL: http://issues.apache.org/jira/browse/DIRSERVER-637
> Project: Directory ApacheDS
> Issue Type: Bug
> Affects 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
> Assigned To: Alex Karasulu
> Fix For: 1.1.0, 1.0-RC4
>
> Attachments: AddingEntriesWithMissingMustAttributesShouldFail.diff, AddWithMissingAttributes.java
>
>
> 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