Sebb created JCS-131:
------------------------
Summary: AddressUtil.obtainFinalThreeDigitsOfAddressAsString does
not allow for IPV6
Key: JCS-131
URL: https://issues.apache.org/jira/browse/JCS-131
Project: Commons JCS
Issue Type: Bug
Reporter: Sebb
AddressUtilTest is failing on Jenkins/Continuum.
The problem appears to be that HostNameUtil.getLocalHostAddress() can return an
IPv6 address which does not have the expected format.
{noformat}
INFO [AddressUtil] - <obtainFinalThreeDigitsOfAddressAsStringLookup running;
ipstring [fe80:0:0:0:221:5aff:fee0:c355%2]>
WARN [AddressUtil] - <could not find a . in address:
fe80:0:0:0:221:5aff:fee0:c355%2 returning default: 000>
{noformat}
The String only appears to be used in KeyGeneratorUtil.generateRequestId().
This will be passed "000" if AddressUtil fails.
Possible fixes:
- change AddressUtil to handle IPv6 (I assume it must return digits)
- change AddressUtilTest to ignore the failure if the local address is IPv6
--
This message was sent by Atlassian JIRA
(v6.2#6252)