https://issues.apache.org/bugzilla/show_bug.cgi?id=51497
Bug #: 51497
Summary: Use canonical IPv6 text representation in logs
Product: Tomcat 7
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Catalina
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
In AccessLogValve and on other places where IPv6 address is logged or printed,
it would bi good if Tomcat would use canonical IPv6 format as described in RFC
5952 [1] (especially note section "3.2.2. Logging"), e.g:
1. instead of logging 2001:4000:0:5:0:0:0:66, it should log 2001:4000:0:5::66,
2. instead of logging 0:0:0:0:0:0:0:1, it should log ::1.
Class Inet6Address method getHostAddress confirms to RFC recommendations, in
everything except in zero groups handling. It simply prints full form with all
zeroes. In Java API I don't see any method to convert it to canonical form.
[1] http://tools.ietf.org/html/rfc5952
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]