|
[
Permlink
| « Hide
]
Stefan Zoerner added a comment - 08/Aug/05 03:47 AM
Here is the updated DeleteHandler class mentiones in the defect description.
Thanks a bunch Stefan but next time please submit a diff instead of the file itself. These are easier to review and apply but hey this is better than most :).
I agree about the stack trace however that was for debuging purposes. I will use the log level to not show this on the client as well as print the stack trace out to the server log file. It's pretty helpful to get the trace on the client side when you're working on separate machines. However for production this should not be the case. Again using nlog4j should help us out considerably in terms of controlling this behavoir. If you look at the diff for committed revision 230698 you'll see that I modified your changes a bit. I still send the stack trace back but only when logging is in full debug mode. I really need to work on the logging in these modules and reviewing the messages they return. Perhaps you can lend a hand so we can do this together. You interested?
Here's the diff of my commits: xhttp://svn.apache.org/viewcvs.cgi?rev=230698&view=rev BTW I will build and upload the new jars for this and apacheds built with it. I changed all wrong messages in the handler classes (or at least all wrong messages) in package org.apache.ldap.server.protocol. "svn diff > patch.txt" is attached.
Tests were made against an ApacheDS (theses changes applied) with Solaris command line tools with wrong arguments (add, delete, search). I also added logging like Alex demonstrated it within the DeleteHandler. Probably not a perfect solution yet, although it is consistent within the package now. I meant "(or at least all wrong messages I found)" ;-)
Btw. I also moved the newlines between error message and Stacktrace in the optional part (i.e.if the Stacktrace is included) for better command line tool and JNDI experience (if DEBUG is disabled). Committed these latest patch.txt changes on revision 230873. Here's the url:
http://svn.apache.org/viewcvs.cgi?rev=230873&view=rev I have compiled and deployed these changes to the maven repository. Thanks for the patches! With the application of the patch some time ago (thank you, Alex), the error message for the different actions (add, delete, ...) now reflect the correct operation. I have retested the behaviour. High time to close the issue.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||