Bug 50927

Summary: [patch] More specific error message for missing SSLCertificateFile
Product: Tomcat 7 Reporter: Sebb <sebb>
Component: ConnectorsAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P2    
Version: trunk   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Attachments: Patch to check and report error

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.