Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metalink and roots #1326

Closed
wyang007 opened this issue Nov 10, 2020 · 3 comments
Closed

metalink and roots #1326

wyang007 opened this issue Nov 10, 2020 · 3 comments
Assignees
Milestone

Comments

@wyang007
Copy link
Member

I have a metalink like this:

root://griddev03.slac.stanford.edu:2094//xrootd/atlas/atlasscratchdisk/rucio/user/fsforza/fa/38/user.fsforza.23139224._000047.hist-output.root

xrdcp works with this metalink (the link will be upgraded to TLS)

However, if I replace root:// by roots:// in the metalink, xrdcp complain:

Prepare: [ERROR] Received corrupted data: Malformed or corrupted metalink file.

@wyang007
Copy link
Member Author

It looks like github trimmed all the XML tags

<?xml version="1.0" encoding="UTF-8"?>
<metalink xmlns="urn:ietf:params:xml:ns:metalink">
  <file name="x">
    <url location="REMOTE" priority="1">root://griddev03.slac.stanford.edu:2094//xrootd/atlas/atlasscratchdisk/rucio/user/fsforza/fa/38/user.fsforza.23139224._000047.hist-output.root</url>
  </file>
</metalink>

@abh3
Copy link
Member

abh3 commented Nov 13, 2020

Yes, it looks like this is one that slipped through the cracks. In XrdClMetalinkRedirector.cc:256 the 's' versions of the protocol are not accepted. It should be an easy fix to add the 's' versions as acceptable protocols.

@simonmichal
Copy link
Contributor

Fixed in ad5511d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants