dCache / xrootd4j

Implementation of the xrootd data access protocol in Java
Other
3 stars 8 forks source link

xrootd4j: support kXR_prefname in kXR_locate request #154

Closed alrossi closed 1 year ago

alrossi commented 1 year ago

Motivation:

See GH xroot –– TLS problem when kXR_locate involved (IP address vs hostname) #6892

The xrdfs client calls kXR_locate before asking for a directory listing. Currently our implementation of doOnLocate simply returns the IP address, without respecting the kXR_prefname option. This was not a problem prior to TLS. But since TLS requires the hostname, not the IP address, directory listing fails with the error reported (below).

Modification:

Make the locate response respect the kXR_prefname flag.

Result:

Successful listing with TLS on.

Target: master Request: 4.5 Request: 4.4 Request: 4.3 Request: 4.2 Requires-notes: yes Patch: https://rb.dcache.org/r/13800/ Closes: #6892 Acked-by: Tigran Acked-by: Lea