Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webdav/frontend: fix IPv6 address logging
Motivation: Commit 7fb1129 fixed a problem where incomplete HTTP-TPC transfers were not logged. An earlier commit (8e4d90e) merged a pull-request that bumped the Jetty version number. This version bump had a number of consequences, introducing a number of regressions. One such regression was that the new version of Jetty fixed how IPv6 addresses were returned. In previous Jetty versions IPv6 addresses were returned without the enclosing square brackets, which is wrong. In addition to fixing the broken HTTP-TPC transfer logging, commit 7fb1129 also updated the Guava method used to parse string IP addresses. While this change is correct for 'master' branch, that part should not have been back-ported. The result is dCache now logs errors like: Cannot build internet address: Not a valid URI IP literal: '2001:1458:d00:1b:0:0:0:43f' Modification: Change which Guava string passing method to use so that the logging class now expects the previous (wrong) IPv6 format: an address without square brackets. Result: Fix a regression where dCache would complain about badly formatted IPv6 addresses, preventing those addresses from being included in the access log files. Request: 7.0 Request: 6.2 Request: 6.1 Request: 6.0 Request: 5.2 Requires-notes: yes Requires-book: no
- Loading branch information