Hi Costin,

I just checked the quote/unquote functions in xrdhttp, and they look correct to me.
Could you please try with davix-get (or whatever else), in order to be sure that those 0A/0C are not mangled by curl ?

Cheers
Fabrizio


On 2020-01-07 14:21, Costin Grigoras wrote:
> Hi again,
>
> Sorry for the long delay, we managed to get around to testing this again against a 4.11.1 server. There is one more problem
> regarding the encoding of the tokens when redirecting. New line characters (encoded as %0A in the original request) are encoded
> as %0C in the "Location" header. With a simple replacement of %0C -> %0A in the Location below the token was accepted, so I hope
> this is the last modification that would be needed for this to fully work.
>
> |curl -i -L -s
> http://rd.spacescience.ro:1094//home/aliprod/data/00/00000/099a8cba-c924-11e9-8ab0-c758c795bf3c?authz=-----BEGIN%20SEALED%20CIPHER-----%0AOxvV3wWEjgcEQ9kvH9eUs6e00iI%2By4BpYR1jw-t6PtrbJ3W4moySQPAgo-JJ2xRBrPNRi5lwdo9H%0ALj9HibEjIpNDL7tc1xbXxHX1hRXNsPLo0e-KSZCXLaEG7oU4B0pJP8nrs4fLMGucGaT2rSR1KXMu%0A7FjSSdHbyDAEW9thvWQ%3D%0A-----END%20SEALED%20CIPHER-----%0A-----BEGIN%20SEALED%20ENVELOPE-----%0AAAAAgCNhXbslaFobAXh4cJMbAnPwy1ig2Rn%2Bz38ux99YgwOXxEqlVuVC1ZHnIOmdpIGzE7VXukOR%0AWhbSzTpmg-VKLRAa7hRaWeZ67-K6BVylYqbSZuU2PpXVz4QBHrFSwvSgg7JoZD6g4DV-Q43vaGV0%0Ae%2BGQFUWylZMeMEM%2Bm0ryhFstecdPPsY%2BvAeZfyviKMTv4vd5M9oZY%2BtMBWsklLB7fw7MWrIdS-NN%0Aou2F%2Bbv6fgm9QArWK62-JjGgWipV79A%2BC11epGRDlhKDcbmzGkWEjxxf9qLJgzhjqPB%2BVQPVs1Gt%0A5l0vlceFehdNxRs-7OrdiBFJAAujbQxjIHk099BbWUM89QxaJDko7qBjTTkU2w2QsDYTuFJs-S7L%0AxB9Twas4sYufxJtf8JtFGgoUjgQ2XbpWUvD8-SXcJtXk2lpW69m5CqqfuhPxuIEcfSTrVXzHzral%0A6xvrI4L7Gi8iUYpVJROJQDTcjYIqah41ExIK6r%2BU925OXzyTfeVUM--enVQSxxyrYxhskxDPa6tm%0ARHLBrkcXQAfjBQBFj2Nd9oSurYrXNguY2G3yBPl%2BkAUsNwbE9EBbsunz8npJ26XAC8PO9vAWnuPe%0ALPY50WeCZ1l2Iv2dR5ywoEKCe-g60aFLSWT2-8PNTxjeCYGogMJ1wwa2uebA6i85Hrhs5D90ybPH%0A8VVt7ChYQjeyea0Q5wXZrV6Bra95NeTl21hbV6tr1kOZcNrPDEDBLz9nUP%2BnJJFu4S7RdRH5OH4R%0AhtjuPvutYurmuoqZCIBPY2Z2B0eUBvIwjq-8vSuIenMWsUHWnKKHP3EoWfegDmiHVp3jv5n4cI0p%0AtTRvAbSUppqhuWSyA0UWTVQ4TuSM1kTcOAo2BuDD-PQeOH2NRjhcTvLnPQ06uFPP-LQ2aOLGi7xU%0ASUMVxkYFZRiOeS1U8AOFc8WfUR-FETaR8ZGuICB4cpaEpF8jZl5d5Iv1Pv8sFhYUAL%2BBRYUOM2Tb%0AsdkjD9%2BdifulCggJTdCwUV1%2BXXQvIGIDroUnyjXnVr2cF2PnIzydNFY99bp4lMTKYzf8ii3HW3oK%0AV4y7DKfEkc8Rm6%2BkjgmwgFhosbguFsqoMmrzpW1NEN0R0yhLJPzBQmYIKYJV0Y5aV7NKPmAyM8DU%0A0IDX%2BA%2BoIrqlN4p1HhY3nHzy%2Bnl3CCelM2BOkV13iTXYc%2Bt-Jg%3D%3D%0A-----END%20SEALED%20ENVELOPE-----
> HTTP/1.1 302 Redirect Connection: Keep-Alive Content-Length: 0 Location:
> http://storage08.spacescience.ro:1094/home/aliprod/data/00/00000/099a8cba-c924-11e9-8ab0-c758c795bf3c?authz=-----BEGIN%20SEALED%20CIPHER-----%0COxvV3wWEjgcEQ9kvH9eUs6e00iI+y4BpYR1jw-t6PtrbJ3W4moySQPAgo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uSM1kTcOAo2BuDD-PQeOH2NRjhcTvLnPQ06uFPP-LQ2aOLGi7xU%0CSUMVxkYFZRiOeS1U8AOFc8WfUR-FETaR8ZGuICB4cpaEpF8jZl5d5Iv1Pv8sFhYUAL+BRYUOM2Tb%0CsdkjD9+difulCggJTdCwUV1+XXQvIGIDroUnyjXnVr2cF2PnIzydNFY99bp4lMTKYzf8ii3HW3oK%0CV4y7DKfEkc8Rm6+kjgmwgFhosbguFsqoMmrzpW1NEN0R0yhLJPzBQmYIKYJV0Y5aV7NKPmAyM8DU%0C0IDX+A+oIrqlN4p1HhY3nHzy+nl3CCelM2BOkV13iTXYc+t-Jg==%0C-----END%20SEALED%20ENVELOPE-----
> HTTP/1.1 403 Forbidden Connection: Close Content-Length: 99 Unable to open
> /home/aliprod/data/00/00000/099a8cba-c924-11e9-8ab0-c758c795bf3c; permission denied |
>
> With my best wishes for 2020 to the entire team!
>
> .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=ABJBUT7QDFGUF47VFIUYDRTQ4R6U5A5CNFSM4I3HS6F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEII2TDY#issuecomment-571582863>,
> or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABJBUTZ363COHHDE5TJ37ADQ4R6U5ANCNFSM4I3HS6FQ>.
>


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=AA7NRDVD33CGX4DQNEML5U3Q4SBS3A5CNFSM4I3HS6F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEII47VQ#issuecomment-571592662", "url": "https://github.com/xrootd/xrootd/issues/1060?email_source=notifications\u0026email_token=AA7NRDVD33CGX4DQNEML5U3Q4SBS3A5CNFSM4I3HS6F2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEII47VQ#issuecomment-571592662", "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