[Pki-devel] [PATCH] 56-2 Fixes fo review comments on patch - 56 Add error logs when executing pkispawn Ticket#592

Abhishek Koneru akoneru at redhat.com
Fri Apr 26 04:12:53 UTC 2013


Please review the attached patch which prints the error message from the
configuration servlet.

For Example: 
  I tested by installing a CA and then a clone CA, but the clone's base
DN does not match with the master's. The following output is printed.

Actual error seen in the text section of the HTTPResponse object
received in the HTTPError object:

<?xml version="1.0" encoding="UTF-8"
standalone="yes"?><PKIException><ClassName>com.netscape.certsrv.base.BadRequestException</ClassName><Code>400</Code><Message>Master and clone should have the same base DN</Message><Attributes/></PKIException>

Error message printed in the debug log (added in this patch): 
Exception from Java Configuration Servlet: Master and clone should have
the same base DN

--Abhishek
On Thu, 2013-04-25 at 11:04 -0400, Ade Lee wrote:
> All of the above is good.  What am really interested in though, is
> whether error messages that are sent back with exceptions from the
> config servlet are reported.  At last look, it looked like these were
> not reported.
> 
> You can test this by sending in some bad data -- say setting up a clone
> where the base DN does not match the master, or sending in any of the
> various ways to fail the validation function in
> SystemConfigService.java.
> 
> 
> On Thu, 2013-04-25 at 09:47 -0400, Abhishek Koneru wrote:
> > Please review the patch which add the stack trace and message
> > information to the debug logs, if an error occurs while executing
> > pkispawn. #592
> > 
> > --Abhishek
> > 
> > 
> > _______________________________________________
> > Pki-devel mailing list
> > Pki-devel at redhat.com
> > https://www.redhat.com/mailman/listinfo/pki-devel
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pki-akoneru-0056-2-Show-error-messages-and-stack-trace-when-an-error-oc.patch
Type: text/x-patch
Size: 22122 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pki-devel/attachments/20130426/53e41901/attachment.bin>


More information about the Pki-devel mailing list