Bug 56137 - Change HTTPS connector example (protocol attribute) from "HTTP/1.1" to Http11NioProtocol
Summary: Change HTTPS connector example (protocol attribute) from "HTTP/1.1" to Http11...
Status: CLOSED FIXED
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Connectors (show other bugs)
Version: 8.0.x-trunk
Hardware: All All
: P2 normal (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-14 11:28 UTC by Ognjen Blagojevic
Modified: 2014-02-18 09:41 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ognjen Blagojevic 2014-02-14 11:28:59 UTC
HTTPS example connector in server.xml uses JSSE-specific attributes, but it also uses connector auto-selection using attribute protocol="HTTP/1.1".

If a user follows the "Quick start" section of "SSL Configuration HOW-TO", and previously, or after that installs APR, HTTPS connector won't work. That breaks the principle of least astonishment.


Proposal: in HTTPS example connector, change protocol="HTTP/1.1" to protocol="org.apache.coyote.http11.Http11NioProtocol".

It is not as beautiful as "HTTP/1.1", but it will cause less trouble for novices.

-Ognjen
Comment 1 Mark Thomas 2014-02-17 10:04:11 UTC
Fixed in trunk for 8.0.4 and in 7.0.x for 7.0.53
Comment 2 Ognjen Blagojevic 2014-02-18 09:41:42 UTC
Thank you.