Print

Print


I can request an adler32 checksum of a file:
```console
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:
```console
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:
```console
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 or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1707
You are receiving this because you are subscribed to this thread.

Message ID: <[log in to unmask]>

########################################################################
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