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 1251935

Summary: Preserving mechanism of original hostnames in SSLSocketImpl fails
Product: Red Hat Enterprise Linux 6 Reporter: Takeshi Nishimura <ninsho-dav-help>
Component: java-1.6.0-openjdkAssignee: Andrew John Hughes <ahughes>
Status: CLOSED ERRATA QA Contact: Lukáš Zachar <lzachar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.6CC: ahughes, dbhole, jvanek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: java-1.6.0-openjdk-1.6.0.37-1.13.9.0.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-10 20:30:21 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:
Bug Depends On: 1241965    
Bug Blocks:    
Attachments:
Description Flags
Proposed patch none

Description Takeshi Nishimura 2015-08-10 11:10:06 UTC
Created attachment 1061012 [details]
Proposed patch

Description of problem:
As described in
https://bugs.openjdk.java.net/browse/JDK-8132662
, sslSession.getPeerHost() is broken in recent OpenJDK packages.
With my further investigation, InetAddressHolder.originalHostName is not initialized properly in various situations.

Proposed patch is attached.

Version-Release number of selected component (if applicable):
java-1.6.0-openjdk-1.6.0.36-1.13.8.1.el5_11
java-1.7.0-openjdk-1.7.0.85-2.6.1.3.el5_11
java-1.7.0-openjdk-1.7.0.85-2.6.1.3.el6_6
java-1.7.0-openjdk-1.7.0.85-2.6.1.2.el7_1
java-1.8.0-openjdk-1.8.0.51-0.b16.el6_6
java-1.8.0-openjdk-1.8.0.51-1.b16.el7_1

Comment 1 Andrew John Hughes 2015-08-14 19:48:58 UTC
Taking this one as it relates to the last security update.

Comment 2 Takeshi Nishimura 2015-08-21 10:52:34 UTC
I'd like to submit this patch to JDK-8133196 but I don't know how to sign up.

Comment 3 Andrew John Hughes 2015-08-21 20:14:15 UTC
Their bug database is weird in that it only allows those with commit access to OpenJDK to use it.

I suggest posting the patch to the net-dev mailing list:

http://mail.openjdk.java.net/mailman/listinfo/net-dev

Comment 4 Takeshi Nishimura 2015-10-17 08:27:33 UTC
JDK-8133196 was fixed so the fix will be carried in later versions.

Comment 5 Andrew John Hughes 2015-10-22 02:27:47 UTC
This has just now been made public:

http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/64ac5b0b4b9e

Expect it to appear in the January security update.

Comment 6 Andrew John Hughes 2015-11-10 02:03:11 UTC
This isn't specific to a particular RHEL version, so switching it to the better supported RHEL 6 series.

Comment 11 errata-xmlrpc 2016-05-10 20:30:21 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, 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://rhn.redhat.com/errata/RHBA-2016-0788.html