Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-8452

Incorrect handling of files and TChains with xrootd with ?svcClass tag

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.06/02, 6.06/08
    • Fix Version/s: 6.10/00
    • Component/s: Core Libraries, I/O
    • Labels:
      None
    • Environment:

      Mac OSX 10.11.6 and lxplus

      Description

      Due to incorrect handling of the "?" with svcClass, TChains cannot handle xrootd protocol with the ?svcClass=anything file ending. I think this comes down to the incorrect parsing of the "?" in ParseTreeFilename definition in TChain.cxx file, line 2106. I tried editing the source code a bit in this place, but to no avail.

      I think something similar still happens with trying to read the file from the command line.

      To reproduce this bug, one can do the following:

      root [0] auto f = TFile::Open("root://clhcbdlf.ads.rl.ac.uk//castor/ads.rl.ac.uk/prod/lhcb/user/a/adavis/2016_11/144593/144593984/DVTuples.root?svcClass=lhcbUser")
      (TFile *) 0x7fb0e6bb6db0
       
      root [1] f -> ls()
      TNetXNGFile**		root://clhcbdlf.ads.rl.ac.uk//castor/ads.rl.ac.uk/prod/lhcb/user/a/adavis/2016_11/144593/144593984/DVTuples.root	Gaudi Trees
       TNetXNGFile*		root://clhcbdlf.ads.rl.ac.uk//castor/ads.rl.ac.uk/prod/lhcb/user/a/adavis/2016_11/144593/144593984/DVTuples.root	Gaudi Trees
        KEY: TDirectoryFile	Bs2DKMuNu_WrongD;1	Bs2DKMuNu_WrongD
        KEY: TDirectoryFile	Bs2DKMuNu_WrongMu;1	Bs2DKMuNu_WrongMu
        KEY: TDirectoryFile	Bs2DKMuNu;1	Bs2DKMuNu
        KEY: TDirectoryFile	Bs2DKMuNu_WrongK;1	Bs2DKMuNu_WrongK
        KEY: TDirectoryFile	GetIntegratedLuminosity;1	GetIntegratedLuminosity
       
      root [2] TChain ch("Bs2DKMuNu/DecayTree")
      (TChain &) Name: Bs2DKMuNu/DecayTree Title: 
      root [3] ch.Add("root://clhcbdlf.ads.rl.ac.uk//castor/ads.rl.ac.uk/prod/lhcb/user/a/adavis/2016_11/144593/144593984/DVTuples.root?svcClass=lhcbUser")
      (Int_t) 0
      root [4] ch
      (TChain &) Name: Bs2DKMuNu/DecayTree Title: 

      Unfortunately, this file is only accessible to LHCb users.

        Attachments

          Activity

            People

            Assignee:
            ganis Gerardo Ganis
            Reporter:
            adavis Adam Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Actual Start:
              Actual End: