|
[
Permlink
| « Hide
]
Ersin Er added a comment - 03/Dec/06 07:56 PM
A test case for demostrating the bug(s) and even a patch are welcome ;-)
I volunteer for the test case.
Stefan Zoerner made changes - 03/Dec/06 09:06 PM
Here is a JUnit test to demonstrate all the things the reporter (Stefan) describes, and he is totally right. I have created 4 method within the class -- 3 fail (2 errors, 1 failure).
The test passes completely with the following servers (all of them on Solaris9 SPARC): - Sun Java System Directory Server 5.2 - IBM Tivoli Directory Server 6.0 - OpenLDAP 2.3
Stefan Zoerner made changes - 03/Dec/06 09:09 PM
I have ported the test case into apacheds-core-unit, and I get two errors ( a NPE for testDefect1A and a non existant AttributeType test for testDefect2).
The second error does not seems to be an error to me : we don't have a 'test' attributeType in any schema so far. I need to investigate those test a little bit further. btw : we need to define a way to write valid unit tests : we can't assume a server is up and running when we launch the tests. We have two ways to do tests : - in apacheds-core-unit, where we don't pass through the encoding/decoding layer (so it's much faster) - in apacheds-server-unit where we go through the whole stuff, using an embeded ADS. Unit tests must be using one of those two methods, but I think we must favor the second one. There was a nasty bug in the way modify requests were handled deep into the server : attribute was removed entirely, instead of just removing the values.
It has been fixed. Another problem was fixed : we now are working with the OID of attributes, instead of their names (or alias). Otherwise, we can have some NPE if we tried to compare OID with a name. The testDefect2 was wrong : the server thrown a NamingExcepion which was not handled, this we got a failing test. Fixed.
Emmanuel Lecharny made changes - 05/Jan/07 01:52 PM
Emmanuel Lecharny made changes - 05/Jan/07 03:25 PM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||