I can request an adler32 checksum of a file:
paul@sprocket:~$ curl -I -H "Want-Digest: adler32" -H "Authorization: Bearer $TOKEN" https://xrootd-hv1-vanderbilt.sites.opensciencegrid.org:1094/store/test/bad-zero-file.root
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Length: 0
Digest: adler32=f08fab4f
paul@sprocket:~$
I can also ask for an MD5 checksum:
paul@sprocket:~$ curl -I -H "Want-Digest: md5" -H "Authorization: Bearer $TOKEN" https://xrootd-hv1-vanderbilt.sites.opensciencegrid.org:1094/store/test/bad-zero-file.root
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Length: 0
Digest: md5=niK3oCxW39lw3BDVMDfimw==
paul@sprocket:~$
However, if I ask for a SHA checksum, the server replies with a 500 error:
paul@sprocket:~$ curl -I -H "Want-Digest: sha" -H "Authorization: Bearer $TOKEN" https://xrootd-hv1-vanderbilt.sites.opensciencegrid.org:1094/store/test/bad-zero-file.root
HTTP/1.1 500 Internal Server Error
Connection: Close
Content-Length: 0
paul@sprocket:~$
The server should ignore checksum algorithms it does not understand.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1