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

TChain.Add() breaks Davix http URLs with '?'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.34/22
    • Fix Version/s: 6.04.00, 6.02/03, 5.34/25
    • Component/s: I/O
    • Labels:
      None
    • Environment:

      ATLAS default ROOT environment

      Description

      Dear ROOT team,

      There is a "feature" in ROOT TChain.Add() which does not work well with
      Davix and http URLs that contain "?". For Davix, ATLAS likes to use "?"
      like e.g.
      https://rucio-lb-prod.cern.ch/redirect/mc14_8TeV/AOD.01507240._010001.pool.root.2?site=LRZ-LMU
      to force redirections to a specific site, but TChain.Add() thinks "?" is
      a wildcard and switches to a local directory search mode. AddFile() on
      the other hand works fine.

      You can reproduce the problem with (or a recent ROOT version with davix enabled):

      export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
      source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh
      localSetupDQ2Client
      voms-proxy-init -voms atlas -valid 96:00
      localSetupROOT 5.34.22-x86_64-slc6-gcc48-opt
      root -l

      (1)
      TFile::Open("https://rucio-lb-prod.cern.ch/redirect/mc14_8TeV/AOD.01507240._010001.pool.root.2?site=LRZ-LMU")

      (2)
      TChain c
      c.Add("https://rucio-lb-prod.cern.ch/redirect/mc14_8TeV/AOD.01507240._010001.pool.root.2?site=LRZ-LMU")

      (3)
      c.AddFile("https://rucio-lb-prod.cern.ch/redirect/mc14_8TeV/AOD.01507240._010001.pool.root.2?site=LRZ-LMU")

      Example (1) and (3) work file, while (2) breaks.

      Is it possible to switch off the wildcard mode of TChain.Add in case the URL/file starts with http:// or https:// ?

      Cheers, Johannes

        Attachments

          Activity

            People

            • Assignee:
              dhsmith David Smith
              Reporter:
              elmsheus Johannes Elmsheuser
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: