dCache / xrootd4j

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

xrootd4j: handle tpc.src URI correctly #61

Closed alrossi closed 4 years ago

alrossi commented 4 years ago

Motivation:

The embedded TPC client gets the source address from the tpc.src URI in the opaque string query of the path. This URI may contain the username prefix '@', which needs to be parsed out. Currently the presence of the uname is not being handled, causing failure to connect.

Modification:

Strip away the uname prefix from the URI before using it as endpoint hostname.

Result:

Giving dCache a source URL with username expressed for TPC succeeds.

Target: master Request: 3.5 Request: 3.4 Patch: https://rb.dcache.org/r/12225/ Acked-by: Dmitry