Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1869530

Summary: HttpClient doesn't send HOST header when tunelling HTTP/1.1 through http proxy
Product: Red Hat Enterprise Linux 7 Reporter: kazuhiro kawana <kkawana>
Component: java-11-openjdkAssignee: Andrew John Hughes <ahughes>
Status: CLOSED ERRATA QA Contact: OpenJDK QA <java-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.6CC: ahughes, jandrlik, pmikova
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: java-11-openjdk-11.0.9.11-2.el7_9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-15 11:19:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description kazuhiro kawana 2020-08-18 08:39:55 UTC
### Description of problem:
We can't send a request with host header using openjdk11.

A same issue was reported in JDK bug database and already fixed:

https://bugs.openjdk.java.net/browse/JDK-8222527
http://hg.openjdk.java.net/jdk/jdk/rev/270557b396eb

I checked source code in src rpm, it looks OpenJDK 11(latest) does not contain the above fix. Please a backport the fix.

### Version-Release number of selected component (if applicable):
java-11-openjdk-11.0.8.10-0.el7_8.x86_64.

### How reproducible:

Anytime

### Steps to Reproduce:
1: Install latest openjdk 11 : 

I installed java-11-openjdk-11.0.8.10-0.el7_8.x86_64.

2: Comple sample code "JI9060201.java"

We use sample code in the following url.
https://bugs.openjdk.java.net/secure/attachment/82038/JI9060201.java

3: Comple sample code “JI9060201.java” :

4: Run tcpdump:

5: Run sample code JI9060201:

6: Check tcpdump command result:


### Actual results:

We confirmed Client HTTP header and there is not include host header.
---------
    CONNECT www.google.com:443 HTTP/1.1\r\n
    \r\n
---------

### Expected results:
We expect we can send the request with the host header using openjdk11.

Comment 3 Andrew John Hughes 2020-11-11 03:27:04 UTC
I've managed to backport this to OpenJDK 11 (a simpler patch, because 11 doesn't have JDK-8213189 which allows the user to define which headers are restricted and thus define custom Host headers). I'll propose it upstream.

Comment 4 Chris Williams 2020-11-11 21:52:40 UTC
Red Hat Enterprise Linux 7 shipped it's final minor release on September 29th, 2020. 7.9 was the last minor releases scheduled for RHEL 7.
From intial triage it does not appear the remaining Bugzillas meet the inclusion criteria for Maintenance Phase 2 and will now be closed. 

From the RHEL life cycle page:
https://access.redhat.com/support/policy/updates/errata#Maintenance_Support_2_Phase
"During Maintenance Support 2 Phase for Red Hat Enterprise Linux version 7,Red Hat defined Critical and Important impact Security Advisories (RHSAs) and selected (at Red Hat discretion) Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available."

If this BZ was closed in error and meets the above criteria please re-open it flag for 7.9.z, provide suitable business and technical justifications, and follow the process for Accelerated Fixes:
https://source.redhat.com/groups/public/pnt-cxno/pnt_customer_experience_and_operations_wiki/support_delivery_accelerated_fix_release_handbook  

Feature Requests can re-opened and moved to RHEL 8 if the desired functionality is not already present in the product. 

Please reach out to the applicable Product Experience Engineer[0] if you have any questions or concerns.  

[0] https://bugzilla.redhat.com/page.cgi?id=agile_component_mapping.html&product=Red+Hat+Enterprise+Linux+7

Comment 5 Chris Williams 2020-11-11 23:18:42 UTC
Apologies for the inadvertent closure.

Comment 18 errata-xmlrpc 2020-12-15 11:19:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (java-11-openjdk bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:5447