Issue Details (XML | Word | Printable)

Key: DIRSERVER-378
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

Compare operation on non existing or invalid attributes causes wrong return codes

Created: 16/Aug/05 04:25 AM   Updated: 10/Feb/06 12:34 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File BasicCompareTests.java 2005-08-16 04:42 AM Stefan Zoerner 4 kB
Issue Links:
Reference
 

Resolution Date: 25/Aug/05 07:14 AM


 Description  « Hide
If a compare is executed on an entry, and the attribute used in this operation does not occur in the entry, or is unknown to the schema at all, this normally leads to an error.

Two error codes are common here:
16: noSuchAttribute (leads to an NoSuchAttributeException in JNDI)
17: undefinedAttributeType (InvalidAttributeIdentifierException)

"Normally" means that on the servers I tested with a JNDI testcase (OpenLDAP, Sun, Active Directory), the exceptions above are thrown. On Apache DS 0.9.2 they are not. I tried to find out whether it is mandatory to raise an error here (RFC 2251, chapter 4.10), but without a clear result.

Anyway, I will attach my testcase for your consideration on how to react on such operations ...


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Stefan Zoerner added a comment - 16/Aug/05 04:42 AM
Here is the test case. The tests are already included in my protocol suite and ran succesful against OpenLDAP, Sun and Active Directory. On Apache DS currently two of the three tests fail. To be more precise, the expected exceptions are not thrown.

Alex Karasulu added a comment - 25/Aug/05 07:14 AM
Committed resolving fixes within revision 239951 here:

http://svn.apache.org/viewcvs.cgi?view=rev&rev=239951

Stefan Zoerner added a comment - 25/Aug/05 05:36 PM
I rebuilded ApacheDS. The new Compare Handler provides the expected return codes in the situations described in this defect. Therefor I close the issue. Thanks for fixing it, Stefan