Hey Costin, you spotted a really stupid bug, I have inverted CR with LF in the quoting...
well I think you may well be the first one trying to encode CRs and LFs.

Cooking the (equally stupid) fix now.

XrdTpc is maintained by Brian. One more good catch!

Thanks
Fabrizio



On 2020-01-07 15:18, Costin Grigoras wrote:
> Ciao Fabrizio,
>
> The client doesn't make any difference, the Location header is returned by the server. I think the issue is here:
>
> https://github.com/xrootd/xrootd/blob/master/src/XrdHttp/XrdHttpUtils.cc#L378
>
> |case '\n': strcpy(r + j, "%0C"); j += 3; break; case '\r': strcpy(r + j, "%0A"); j += 3; break; |
>
> The correct values (https://en.wikipedia.org/wiki/Newline#Representation) are "%0A" for '\n' and "%0D" (!) for '\r'. Sorry for
> not spotting this before!
>
> I found another, outdated, occurrence of the quote() method in XrdTpcTPC.cc. Maybe that should also be updated as per (or
> consolidated with) the above at this point.
>
> Cheers,
>
> .costin
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/xrootd/xrootd/issues/1060?email_source=notifications&email_token=ABJBUT6S2DBZSC3FUEDEKL3Q4SFLHA5CNFSM4I3HS6F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEII77WY#issuecomment-571604955>,
> or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABJBUT5L54DKWYRNCFQTSBLQ4SFLHANCNFSM4I3HS6FQ>.
>


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1060?email_source=notifications\u0026email_token=AA7NRDUERCNQ23MX7C3IXELQ4SJMPA5CNFSM4I3HS6F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIJDTLQ#issuecomment-571619758", "url": "https://github.com/xrootd/xrootd/issues/1060?email_source=notifications\u0026email_token=AA7NRDUERCNQ23MX7C3IXELQ4SJMPA5CNFSM4I3HS6F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIJDTLQ#issuecomment-571619758", "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