
|
If you were logged in you would be able to see more operations.
|
|
|
|
File Attachments:
|
|
|
Environment:
|
N/A
|
|
| Resolution Date: |
27/Aug/06 03:10 AM
|
|
The LDAP MessageHandlers (e.g. org.apache.directory.server.ldap.support.AddHandler) throw away the messages attached to caught NamingExceptions before rethrowing their own newly created exceptions:
catch ( NamingException e )
{
String msg = "failed to add entry " + req.getEntry();
if ( log.isDebugEnabled() )
{
msg += ":\n" + ExceptionUtils.getStackTrace( e );
}
where I would like to see
catch ( NamingException e )
{
String msg = "failed to add entry " + req.getEntry() + ": " + e.getMessage();
instead. Without this fix all meaningful details about the problem are thrown away and can not be displayed in the LDAP client meaning that server log files have to be inspected immediately.
In addition, this seems like a simple oversight as even in the debugging case only the server stacktrace is merged into the exception message and hence sent to the client where the original NamingException message is much more valuable for debugging then the stacktrace alone.
|
|
Description
|
The LDAP MessageHandlers (e.g. org.apache.directory.server.ldap.support.AddHandler) throw away the messages attached to caught NamingExceptions before rethrowing their own newly created exceptions:
catch ( NamingException e )
{
String msg = "failed to add entry " + req.getEntry();
if ( log.isDebugEnabled() )
{
msg += ":\n" + ExceptionUtils.getStackTrace( e );
}
where I would like to see
catch ( NamingException e )
{
String msg = "failed to add entry " + req.getEntry() + ": " + e.getMessage();
instead. Without this fix all meaningful details about the problem are thrown away and can not be displayed in the LDAP client meaning that server log files have to be inspected immediately.
In addition, this seems like a simple oversight as even in the debugging case only the server stacktrace is merged into the exception message and hence sent to the client where the original NamingException message is much more valuable for debugging then the stacktrace alone.
|
Show » |
|