Print

Print


> gfal-ls seems happy with the response, although it's unhappy with the ctime:

That's interesting!

Here we go, first the client side:
```
$ davix-ls -P Grid https://xrootd006.physik.uni-bonn.de:1094/cephfs/grid/atlas/atlaslocalgroupdisk/space-usage.json 
(Davix::HttpRequest) Error: HTTP 404 : File not found 
```
In parallel, on the server:
```
180523 19:59:22 154472 ofs_opendir: /C=DE/O=.3268:[log in to unmask] Unable to open directory /cephfs/grid/atlas/atlaslocalgroupdisk/space-usage.json; not a directory
```

Now with `gfal-ls`:
```
$ gfal-ls -l https://xrootd006.physik.uni-bonn.de:1094/cephfs/grid/atlas/atlaslocalgroupdisk/space-usage.json              
-rwxr-xr-x   0 0     0           321 Jan  1  1970 https://xrootd006.physik.uni-bonn.de:1094/cephfs/grid/atlas/atlaslocalgroupdisk/space-usage.json
```
So the issue occurs with `davix-ls` only. 

However, if I check with debug information:
```
$ gfal-ls -vvv -l https://xrootd006.physik.uni-bonn.de:1094/cephfs/grid/atlas/atlaslocalgroupdisk/space-usage.json
[...]
DEBUG    Davix: > HEAD /cephfs/grid/atlas/atlaslocalgroupdisk/space-usage.json HTTP/1.1
[...]
```
And with `davix-ls`:
```
$ davix-ls -P Grid https://xrootd006.physik.uni-bonn.de:1094/cephfs/grid/atlas/atlaslocalgroupdisk/space-usage.json
[...]
> PROPFIND /cephfs/grid/atlas/atlaslocalgroupdisk/space-usage.json?xrdhttptk=REDACTED HTTP/1.1
> User-Agent: libdavix/0.6.7 neon/0.0.29
> Keep-Alive: 
> Connection: Keep-Alive
> TE: trailers
> Host: [::ffff:131.220.166.120]:1094
> Depth: 1
> Content-Length: 303
> 
[...]
```

1. The first observation is that `gfal-ls` uses `HEAD` and not `PROPFIND`. 
2. The second observation is that you got `PROPFIND` to work fine with `curl` - could you share your commandline to be used with a VOMS proxy?
3. The third observation is the difference in headers. My hunch is that `Depth: 1` is causing the issue. 

My hunch in (3) is also supported by the fact that also the nagios-script at https://gitlab.cern.ch/lcgdm/nagios-plugins-webdav/blob/master/src/check_webdav#L710 uses `Depth: 1` and fails, too. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/691#issuecomment-391444417

########################################################################
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