Skip to content

[master] Strip "mdf:" prefix from URLs in metalink files

Chris Burr requested to merge cburr/LHCbDIRAC:fix-mdf-metalink into master
$ lb-dirac dirac-dms-lfn-accessURL --Metalink /lhcb/data/2022/RAW/FULL/FEST/PHYSICS/00225342/00225342_0000003_0000.raw
Generating metalinks
Writing metalink for  /lhcb/data/2022/RAW/FULL/FEST/PHYSICS/00225342/00225342_0000003_0000.raw
Successful :
    CERN-DAQ-EXPORT :
        /lhcb/data/2022/RAW/FULL/FEST/PHYSICS/00225342/00225342_0000003_0000.raw : mdf:root://x509up_u73370@eoslhcb.cern.ch//eos/lhcb/point8/lhcb/data/2022/RAW/FULL/FEST/PHYSICS/00225342/00225342_0000003_0000.raw

$ xrdcp --sources 10 --force 00225342_0000003_0000.raw.meta4 .
Prepare: [ERROR] Received corrupted data: Malformed or corrupted metalink file.

$ sed -i 's@mdf:root:@root:@g' 00225342_0000003_0000.raw.meta4
$ xrdcp --force 00225342_0000003_0000.raw.meta4 .
[31.05MB/31.05MB][100%][==================================================][31.05MB/s]

BEGINRELEASENOTES

*DataManagement FIX: Strip "mdf:" prefix from URLs in metalink files

ENDRELEASENOTES

Merge request reports