Bug 1258298

Summary: [GSS](6.4.z) Wrong format of IPv6 addresses in log entries if https is used
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Lyle Wang <lywang>
Component: IPv6 supportAssignee: Chao Wang <chaowan>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kremensky <pkremens>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4.3CC: bbaranow, bmaxwell, brian.stansberry, cdewolf, chaowan, jtruhlar, mcada
Target Milestone: CR1   
Target Release: EAP 6.4.8   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-17 12:36:15 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:    
Bug Blocks: 1279553    

Description Lyle Wang 2015-08-31 02:40:29 UTC
Description of problem:
When https and IPv6 are used simultaneously, square brackets for IPv6 addresses are missed in some of log entries.


How reproducible:
Always


Steps to Reproduce:
1. Config SSL (example: https://access.redhat.com/solutions/229963)
2. Config IPv6 (example: https://docs.jboss.org/author/display/AS72/Interfaces+and+ports)
3. Start EAP and check the log


Actual results:
----------------------------------------
12:05:55,396 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) JBWEB003001: Coyote HTTP/1.1 initializing on : http-/0:0:0:0:0:0:0:1:8080
12:05:55,442 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) JBWEB003000: Coyote HTTP/1.1 starting on: http-/0:0:0:0:0:0:0:1:8080
......
12:05:55,621 INFO  [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on [::1]:4447
12:05:55,624 INFO  [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on [::1]:9999
......
12:05:56,328 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015962: Http management interface listening on https://::1:9443/management
12:05:56,330 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015952: Admin console listening on https://::1:9443
----------------------------------------

Expected results:
The format used for IPv6 addresses should be consistent and enclosed in square brackets


Additional info:
Similar bug was opened / fixed :  https://bugzilla.redhat.com/show_bug.cgi?id=900564
But it appears we still got some problem when https is enabled

Comment 4 Lyle Wang 2015-09-01 03:22:53 UTC
Upstream Jira [1] is created for those logs from Undertow:
"WFLYUT0006: Undertow HTTP listener default listening on /0:0:0:0:0:0:0:1:8080"


[1] - https://issues.jboss.org/browse/WFLY-5242

Comment 5 Chao Wang 2015-09-07 09:26:09 UTC
create bz1260566 for JBWEB log message format

Comment 6 Michael Cada 2016-03-07 17:59:15 UTC
bz1260566 is verified on EAP 6.4.7.CP.CR2 - IPv6 address format is now correct in CoyoteLogger in jbossweb.

Square brackets are still missing in management interface and admin console log as mentioned in description.

Comment 8 Mike McCune 2016-03-28 22:24:40 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 10 Michael Cada 2016-05-10 08:17:32 UTC
Verified with EAP 6.4.8.CP.CR2

Comment 11 Petr Penicka 2017-01-17 12:36:15 UTC
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.