Issue Details (XML | Word | Printable)

Key: DIRSERVER-392
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
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

Modify operation (removal) provides wrong return codes in two situations.

Created: 27/Aug/05 12:02 AM   Updated: 10/Feb/06 12:34 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File ModifyRemoveTest.java 2005-08-27 01:07 AM Stefan Zoerner 9 kB
Issue Links:
Reference
 

Resolution Date: 29/Aug/05 02:08 PM


 Description  « Hide
The modify operation provides wrong return codes in two cases:

1. Removal of an attribute which does not occur in the entry (expected result is error code 16: noSuchAttribute)
2. Removal of an invalid attribute, i.e. not existing within the schema (expected result is error code 17: undefinedAttributeType)

This is quite similar to DIREVE-226.

I attach a subclass of AbstractServerTest which contains several test methods for basic removal ops. Due to the recent changes regarding schema checks, most of them succeed. Two tests check for the return codes above (and fail). It includes also a test which deletes a required attribute (not part of RDN), which fails -- but this is expected due to the current development progress.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Stefan Zoerner made changes - 27/Aug/05 01:07 AM
Field Original Value New Value
Attachment ModifyRemoveTest.java [ 12312014 ]
Alex Karasulu made changes - 29/Aug/05 12:56 PM
Status Open [ 1 ] In Progress [ 3 ]
Alex Karasulu made changes - 29/Aug/05 12:56 PM
Fix Version/s 0.9.2 [ 12310192 ]
Alex Karasulu made changes - 29/Aug/05 02:08 PM
Resolution Fixed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]
Alex Karasulu made changes - 29/Aug/05 02:12 PM
Link This issue is related to DIREVE-233 [ DIREVE-233 ]
Stefan Zoerner made changes - 03/Sep/05 04:52 PM
Status Resolved [ 5 ] Closed [ 6 ]
Alex Karasulu made changes - 10/Feb/06 12:34 PM
Affects Version/s 0.9.2 [ 12310192 ]
Project Directory Server [ 10516 ] Directory ApacheDS [ 12310260 ]
Fix Version/s 0.9.2 [ 12310192 ]
Key DIREVE-232 DIRSERVER-392