Bug 50927 - [patch] More specific error message for missing SSLCertificateFile
[patch] More specific error message for missing SSLCertificateFile
Status: RESOLVED FIXED
Product: Tomcat 7
Classification: Unclassified
Component: Connectors
trunk
PC Windows XP
: P2 enhancement (vote)
: ---
Assigned To: Tomcat Developers Mailing List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2011-03-14 08:59 UTC by Sebb
Modified: 2011-03-16 05:32 UTC (History)
0 users



Attachments
Patch to check and report error (897 bytes, patch)
2011-03-14 08:59 UTC, Sebb
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebb 2011-03-14 08:59:04 UTC
Created attachment 26767 [details]
Patch to check and report error

If using SSL with APR, a missing SSLCertificateFile attribute currently results in a somewhat cryptic message from the native code.

This patch checks whether the attribute is null before calling the native code, and reports a more specific error.
Comment 1 Mark Thomas 2011-03-16 05:32:27 UTC
Patch applied to 7.0.x with a few corrections:
- use i18n support for error messages
- throw the exception earlier to avoid pointless initialisation

Will be included in 7.0.12 onwards.