Closed nsmith- closed 2 weeks ago
Symptom:
import fsspec url = "root://eospublic.cern.ch//eos/root-eos/benchmark/Run2012B_SingleMu.root?blah=blah" fs, path = fsspec.core.url_to_fs(url) print(fs, path)
returns
<fsspec_xrootd.xrootd.XRootDFileSystem object at 0x10ad0d040> /eos/root-eos/benchmark/Run2012B_SingleMu.root
the second argument should be /eos/root-eos/benchmark/Run2012B_SingleMu.root?blah=blah, but the parameters are dropped.
/eos/root-eos/benchmark/Run2012B_SingleMu.root?blah=blah
The issue is that we are using XRootD.client.URL.path when we should be using path_with_params in https://github.com/CoffeaTeam/fsspec-xrootd/blob/784540ce92f5b0bf3978a1410a70975f8838f3d2/src/fsspec_xrootd/xrootd.py#L305
XRootD.client.URL.path
path_with_params
Symptom:
returns
the second argument should be
/eos/root-eos/benchmark/Run2012B_SingleMu.root?blah=blah
, but the parameters are dropped.The issue is that we are using
XRootD.client.URL.path
when we should be usingpath_with_params
in https://github.com/CoffeaTeam/fsspec-xrootd/blob/784540ce92f5b0bf3978a1410a70975f8838f3d2/src/fsspec_xrootd/xrootd.py#L305