Issue Details (XML | Word | Printable)

Key: DIRSERVER-630
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alex Karasulu
Reporter: Stefan Zoerner
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

If one tries to add an attribute without any value, an (illegal) attribute with empty value is created

Created: 02/Jun/06 03:17 PM   Updated: 22/Aug/06 08:41 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 1.5.0, 1.0-RC4

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File IllegalModificationTest.java 2006-06-02 03:37 PM Stefan Zoerner 2 kB
Environment:
Sun ONE Directory SDK for Java 4.1
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

Resolution Date: 22/Aug/06 03:17 AM


 Description  « Hide
If one tries to add an attribute to an entry, and does not provide a value, it is assumed that the server does not modify the entry. We have a situation here using Sun ONE Directory SDK for Java (or Netscape, now Mozilla SDK, http://www.mozilla.org/directory/), where adding a description attribute without value to a person entry like this

dn: cn=Kate Bush,dc=example,dc=com
objectclass: person
objectclass: top
sn: Bush
cn: Kate Bush

does not fail (modify call does not result in an exception). Instead, a description attribute is created within the entry. At least the new attribute is readable with Netscape SDK (it is not visible to most UIs, because it is invalid ...).

Attached you find a test case which demonstrates the problem. It passes with Sun Java System Directory Server 5.2, for instance. Unfortunately, I was not able to create this situation with JNDI, because its LDAP Provider does not allow this (illegal) operation -- it throws an exception on the client side and does not seem to call the server at all.





 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #428222 Thu Aug 03 04:02:32 UTC 2006 akarasulu Adding test case which shows problem has fixed itself: DIRSERVER-630
Files Changed
MODIFY /directory/branches/apacheds/1.0/server-unit/pom.xml
ADD /directory/branches/apacheds/1.0/server-unit/src/test/java/org/apache/directory/server/IllegalModification.java

Repository Revision Date User Message
ASF #428223 Thu Aug 03 04:05:15 UTC 2006 akarasulu Adding test case which shows problem has fixed itself: DIRSERVER-630
Files Changed
ADD /directory/trunks/apacheds/server-unit/src/test/java/org/apache/directory/server/IllegalModification.java
MODIFY /directory/trunks/apacheds/server-unit/pom.xml

Repository Revision Date User Message
ASF #433483 Tue Aug 22 03:18:05 UTC 2006 akarasulu fix for DIRSERVER-630
Files Changed
MODIFY /directory/branches/apacheds/1.0/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java
ADD /directory/branches/apacheds/1.0/server-unit/src/test/java/org/apache/directory/server/IllegalModificationITest.java (from /directory/branches/apacheds/1.0/server-unit/src/test/java/org/apache/directory/server/IllegalModification.java)
DEL /directory/branches/apacheds/1.0/server-unit/src/test/java/org/apache/directory/server/IllegalModification.java

Repository Revision Date User Message
ASF #433484 Tue Aug 22 03:19:44 UTC 2006 akarasulu fix for DIRSERVER-630
Files Changed
DEL /directory/trunks/apacheds/server-unit/src/test/java/org/apache/directory/server/IllegalModification.java
ADD /directory/trunks/apacheds/server-unit/src/test/java/org/apache/directory/server/IllegalModificationITest.java (from /directory/branches/apacheds/1.0/server-unit/src/test/java/org/apache/directory/server/IllegalModificationITest.java)
MODIFY /directory/trunks/apacheds/core/src/main/java/org/apache/directory/server/core/schema/SchemaService.java

Repository Revision Date User Message
ASF #433577 Tue Aug 22 10:11:54 UTC 2006 ersiner Added a test case to show DIRSERVER-630 has not been fixed yet.
Files Changed
MODIFY /directory/branches/apacheds/1.0/server-unit/src/test/java/org/apache/directory/server/IllegalModificationITest.java

Repository Revision Date User Message
ASF #433578 Tue Aug 22 10:12:32 UTC 2006 ersiner Added a test case to show DIRSERVER-630 has not been fixed yet.
Files Changed
ADD /directory/branches/apacheds/1.0/core-unit/src/test/java/org/apache/directory/server/core/schema/IllegalModifyAddITest.java

Repository Revision Date User Message
ASF #433581 Tue Aug 22 10:47:28 UTC 2006 ersiner Added a test case to show DIRSERVER-630 has not been fixed yet.
Files Changed
MODIFY /directory/trunks/apacheds/server-unit/src/test/java/org/apache/directory/server/IllegalModificationITest.java

Repository Revision Date User Message
ASF #433583 Tue Aug 22 10:47:45 UTC 2006 ersiner Added a test case to show DIRSERVER-630 has not been fixed yet.
Files Changed
ADD /directory/trunks/apacheds/core-unit/src/test/java/org/apache/directory/server/core/schema/IllegalModifyAddITest.java (from /directory/branches/apacheds/1.0/core-unit/src/test/java/org/apache/directory/server/core/schema/IllegalModifyAddITest.java)