[
https://issues.apache.org/jira/browse/JCS-131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Vandahl resolved JCS-131.
--------------------------------
Resolution: Fixed
Fix Version/s: jcs-2.0.0
Assignee: Thomas Vandahl
Removed the unused classes. They were a code-smell anyway.
> 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
> Assignee: Thomas Vandahl
> Fix For: jcs-2.0.0
>
>
> 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)