You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the server has two checksums configured xrootd.cksum crc32 adler32, if they
give the "Want-Digest" header value sha-512,sha-256;q=0.8,sha;q=0.6,md5;q=0.4,adler32;q=0.2,
the first configured checksum will be returned.
This is due to the string comparison to choose the checksum algorithm to run that does not take into account the weight ";q=xx" that can be given by the user.
The text was updated successfully, but these errors were encountered:
Well, that's not what is reported. The adler32 is buried in the string and
it is simply ignored. So, I don't understand the comment here. As far as I
can tell it is totally legitimate to ignore the weight values.
On Tue, 7 Mar 2023, ccaffy wrote:
When the server has two checksums configured `xrootd.cksum crc32 adler32`, if they
give the "Want-Digest" header value `sha-512,sha-256;q=0.8,sha;q=0.6,md5;q=0.4,adler32;q=0.2`,
the first configured checksum will be returned.
This is due to the string comparison to choose the checksum algorithm to run that does not take into account the weight ";q=xx" that can be given by the user.
--
Reply to this email directly or view it on GitHub:
#1944
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
########################################################################
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
I asked the adler32 checksum in the list, but you see, I get a CRC32 one because it is the first configured in the server config list.
That's because the algorithm looking for the checksum to run from the user list does strict string comparison --> no algorithm is found and the first configured one is computed.
With my new fix that discards the ;q=xx (not pushed yet), it works as expected:
When the server has two checksums configured
xrootd.cksum crc32 adler32
, if theygive the "Want-Digest" header value
sha-512,sha-256;q=0.8,sha;q=0.6,md5;q=0.4,adler32;q=0.2
,the first configured checksum will be returned.
This is due to the string comparison to choose the checksum algorithm to run that does not take into account the weight ";q=xx" that can be given by the user.
The text was updated successfully, but these errors were encountered: