Skip to content

get-file-locations: --no-expand does not respect --protocol #152

Open
@tiborsimko

Description

@tiborsimko

Current behaviour

This works as expected:

$ cernopendata-client get-file-locations --recid 1 | head -3
http://opendata.cern.ch/eos/opendata/cms/Run2010B/BTau/AOD/Apr21ReReco-v1/0000/00E16FBB-9071-E011-83D3-003048673F12.root
http://opendata.cern.ch/eos/opendata/cms/Run2010B/BTau/AOD/Apr21ReReco-v1/0000/0248915F-EE71-E011-8894-0025902009E8.root
http://opendata.cern.ch/eos/opendata/cms/Run2010B/BTau/AOD/Apr21ReReco-v1/0000/04CE7892-9771-E011-99DC-003048D460F6.root

$ cernopendata-client get-file-locations --recid 1 --protocol xrootd | head -3
root://eospublic.cern.ch//eos/opendata/cms/Run2010B/BTau/AOD/Apr21ReReco-v1/0000/00E16FBB-9071-E011-83D3-003048673F12.root
root://eospublic.cern.ch//eos/opendata/cms/Run2010B/BTau/AOD/Apr21ReReco-v1/0000/0248915F-EE71-E011-8894-0025902009E8.root
root://eospublic.cern.ch//eos/opendata/cms/Run2010B/BTau/AOD/Apr21ReReco-v1/0000/04CE7892-9771-E011-99DC-003048D460F6.root

This does not, however:

$ cernopendata-client get-file-locations --recid 1 --no-expand | head -3
https://opendata.cern.ch/record/1/file_index/CMS_Run2010B_BTau_AOD_Apr21ReReco-v1_0000_file_index.json
https://opendata.cern.ch/record/1/file_index/CMS_Run2010B_BTau_AOD_Apr21ReReco-v1_0001_file_index.json
https://opendata.cern.ch/record/1/file_index/CMS_Run2010B_BTau_AOD_Apr21ReReco-v1_0002_file_index.json

$ cernopendata-client get-file-locations --recid 1 --protocol xrootd --no-expand | head -3
https://opendata.cern.ch/record/1/file_index/CMS_Run2010B_BTau_AOD_Apr21ReReco-v1_0000_file_index.json
https://opendata.cern.ch/record/1/file_index/CMS_Run2010B_BTau_AOD_Apr21ReReco-v1_0001_file_index.json
https://opendata.cern.ch/record/1/file_index/CMS_Run2010B_BTau_AOD_Apr21ReReco-v1_0002_file_index.json

Expected behaviour

The last command should give XRootD URLs, not HTTPS URLs.

Notes

This is most probably a consequence of the new file index strategy and the fix in #147

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions