On XRootD 5.6.1 with the HTTP plugin, the following combination of HTTP headers causes bad data to be returned:

X-Transfer-Status: true
TE: trailers
Range: bytes 0-

(any byte range will work, not just 0-)

namely instead of returning the file contents, it returns the content length in hex, followed by a CR/LF, followed by the actual data (minus however many bytes the length and CR/LF took).

This curl command can reproduce it (assuming a server on localhost with XrdHttp listening on 1094 and a file named /testfile):

curl http://localhost:1094//testfile -i -H "Range: bytes 0-" -H "X-Transfer-Status: true" -H "TE: trailers"


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/2076@github.com>

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/2076", "url": "https://github.com/xrootd/xrootd/issues/2076", "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