Ah-ha, I think that's indeed what is happening here.
Here's a session where I'm appropriately authenticated:
> PROPFIND //user/ligo/ HTTP/1.1
> User-Agent: curl/7.29.0
> Host: example.unl.edu:1094
> Accept: */*
>
< HTTP/1.1 207 Multi-Status
< Content-Length: 650
< Content-Type: text/xml; charset="utf-8"
<
<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:" xmlns:ns1="http://apache.org/dav/props/" xmlns:ns0="DAV:">
<D:response xmlns:lp1="DAV:" xmlns:lp2="http://apache.org/dav/props/" xmlns:lp3="LCGDM:">
<D:href>/user/ligo/</D:href>
<D:propstat>
<D:prop>
<lp1:getcontentlength>4096</lp1:getcontentlength>
<lp1:getlastmodified>Mon, 05 Feb 2018 21:33:42 GMT</lp1:getlastmodified>
<lp1:resourcetype><D:collection/></lp1:resourcetype>
<lp1:iscollection>1</lp1:iscollection>
<lp1:executable>T</lp1:executable>
<lp1:iscollection>1</lp1:iscollection>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>
However, if I don't authenticate:
> PROPFIND //user/ligo/ HTTP/1.1
> User-Agent: curl/7.29.0
> Host: example.unl.edu:1094
> Accept: */*
>
< HTTP/1.1 404 Not found
< Content-Length: 47
<
From the server log for the second access:
180521 16:42:05 18957 unknown.264985:171@example2 XrootdResponse: sending err 3010: Unable to locate /user/ligo/; permission denied
So indeed - instead of a 403 unauthorized I get a rather surprising 404.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
{"@context":"http://schema.org","@type":"EmailMessage","potentialAction":{"@type":"ViewAction","target":"https://github.com/xrootd/xrootd/issues/691#issuecomment-390792627","url":"https://github.com/xrootd/xrootd/issues/691#issuecomment-390792627","name":"View Issue"},"description":"View this Issue on GitHub","publisher":{"@type":"Organization","name":"GitHub","url":"https://github.com"}}
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xrootd/xrootd","title":"xrootd/xrootd","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/xrootd/xrootd"}},"updates":{"snippets":[{"icon":"PERSON","message":"@bbockelm in #691: Ah-ha, I think that's indeed what is happening here.\r\n\r\nHere's a session where I'm appropriately authenticated:\r\n```\r\n\u003e PROPFIND //user/ligo/ HTTP/1.1\r\n\u003e User-Agent: curl/7.29.0\r\n\u003e Host: example.unl.edu:1094\r\n\u003e Accept: */*\r\n\u003e \r\n\u003c HTTP/1.1 207 Multi-Status\r\n\u003c Content-Length: 650\r\n\u003c Content-Type: text/xml; charset=\"utf-8\"\r\n\u003c \r\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\r\n\u003cD:multistatus xmlns:D=\"DAV:\" xmlns:ns1=\"http://apache.org/dav/props/\" xmlns:ns0=\"DAV:\"\u003e\r\n\u003cD:response xmlns:lp1=\"DAV:\" xmlns:lp2=\"http://apache.org/dav/props/\" xmlns:lp3=\"LCGDM:\"\u003e\r\n\u003cD:href\u003e/user/ligo/\u003c/D:href\u003e\r\n\u003cD:propstat\u003e\r\n\u003cD:prop\u003e\r\n\u003clp1:getcontentlength\u003e4096\u003c/lp1:getcontentlength\u003e\r\n\u003clp1:getlastmodified\u003eMon, 05 Feb 2018 21:33:42 GMT\u003c/lp1:getlastmodified\u003e\r\n\u003clp1:resourcetype\u003e\u003cD:collection/\u003e\u003c/lp1:resourcetype\u003e\r\n\u003clp1:iscollection\u003e1\u003c/lp1:iscollection\u003e\r\n\u003clp1:executable\u003eT\u003c/lp1:executable\u003e\r\n\u003clp1:iscollection\u003e1\u003c/lp1:iscollection\u003e\r\n\u003c/D:prop\u003e\r\n\u003cD:status\u003eHTTP/1.1 200 OK\u003c/D:status\u003e\r\n\u003c/D:propstat\u003e\r\n\u003c/D:response\u003e\r\n\u003c/D:multistatus\u003e\r\n```\r\n\r\nHowever, if I don't authenticate:\r\n```\r\n\u003e PROPFIND //user/ligo/ HTTP/1.1\r\n\u003e User-Agent: curl/7.29.0\r\n\u003e Host: example.unl.edu:1094\r\n\u003e Accept: */*\r\n\u003e \r\n\u003c HTTP/1.1 404 Not found\r\n\u003c Content-Length: 47\r\n\u003c \r\n```\r\n\r\nFrom the server log for the second access:\r\n```\r\n180521 16:42:05 18957 unknown.264985:171@example2 XrootdResponse: sending err 3010: Unable to locate /user/ligo/; permission denied\r\n```\r\nSo indeed - instead of a 403 unauthorized I get a rather surprising 404."}],"action":{"name":"View Issue","url":"https://github.com/xrootd/xrootd/issues/691#issuecomment-390792627"}}}
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "37567f93-e2a7-4e2a-ad37-a9160fc62647",
"title": "Re: [xrootd/xrootd] (HTTP) PROPFIND on files fails with 404 (#691)",
"sections": [
{
"text": "",
"activityTitle": "**Brian Bockelman**",
"activityImage": "https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png",
"activitySubtitle": "@bbockelm",
"facts": [
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"xrootd/xrootd\",\n\"issueId\": 691,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"xrootd/xrootd\",\n\"issueId\": 691\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/xrootd/xrootd/issues/691#issuecomment-390792627"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 327319225\n}"
}
],
"themeColor": "26292E"
}
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