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(a)redhat.com
>
https://www.redhat.com/mailman/listinfo/pki-devel