This PR builds on #1913 to demonstrate how it might be used. With this, the PSS returns the following when the cache is unable to authenticate with the origin:

[ERROR] Server responded with an error: [3030] Unable to open /user/ligo/test_access/access_ligo; invalid exchange (Failed to open file in cache: invalid exchange)

Note that it generates a lousy message ("invalid exchange") because EAUTH maps to a EBADE on Linux. I'll fix that in a follow-up PR.

With this approach, we could continue digging through the XrdPosix layer to generate a better error message there as well. However, I just wanted to illustrate what the new XrdOss API usage would look like.

@osschar


You can view, comment on, or merge this pull request online at:

  https://github.com/xrootd/xrootd/pull/1915

Commit Summary

File Changes

(8 files)

Patch Links:


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

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/pull/1915", "url": "https://github.com/xrootd/xrootd/pull/1915", "name": "View Pull Request" }, "description": "View this Pull Request 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