Hu Cedric,

Hmmm, the behaviour should not be as described. XRootD never returns
anything in base64, so it would appear there is some misunderstanding on
what is happening. Paul and I have gone through this exercise several
times as to what should happen when a series of checksums are requested.
The behaviour differs from the xroot side vs the http side and we still
have no concrete example as to why. Anyway, I'd like to see the easy fix
as I expect it's not going to be all that easy given unexpected
side-effects.

Andy


On Tue, 10 Jan 2023, ccaffy wrote:

> I did not try against the Vanderbilt endpoint because I do not have any token to access it nor a directory I can use...
>
> I identified a bug in the code which is easily fixable: The four bytes sequence `76 26 ac e0` is the adler32 checksum of the file I compute the checksum against via curl... Though, the output is base64 encoded while it should not be --> I found the code to fix.
>
> By default, if a user passes a checksum type that is unknown by XRootD, XRootD will use the one that is configured here: https://xrootd.slac.stanford.edu/doc/dev55/xrd_config.htm#_Toc88513998
> In my case, I configured `xrootd.chksum adler32`.
>
> In the case the user asks for sha, sha-256, the server returns the base64 encoding of the adler32 checksum of the file (like shown above).
>
> @abh3 or @bbockelm shall we change the behaviour ? (I believe the answer is yes... :D)
>
> --
> Reply to this email directly or view it on GitHub:
> https://github.com/xrootd/xrootd/issues/1707#issuecomment-1376903054
> You are receiving this because you were mentioned.
>
> Message ID: ***@***.***>


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <xrootd/xrootd/issues/1707/1376919960@github.com>

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1707#issuecomment-1376919960", "url": "https://github.com/xrootd/xrootd/issues/1707#issuecomment-1376919960", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

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