dCache / dcache-view

A Web application that provide an easy to use User Interface for dCache System.
Other
1 stars 5 forks source link

Selecting WebDAV doors with a non-/ root path #176

Open femiadeyemi opened 5 years ago

femiadeyemi commented 5 years ago

As per Paul's suggestion (https://rb.dcache.org/r/11756/):

As a future extension, a non-/ root might still be useful if it is a parent of the target path.

For example:

dCacheView wants to download /dir-A/dir-B/file and the door's root is /dir-A then dCacheView can still download from this door as the file /dir-B/file.

dCacheView wants to download /dir-A/dir-B/file and the door's root is /dir-Z then dCacheView cannot fetch the file through that door.

paulmillar commented 4 years ago

Problem has been observed "in the wild", at IN2P3 ESCAPE test endpoint.

In particular, a deployment may have only non-/ root webdav doors. If so, dCacheView must compute the file's path for a selected WebDAV door.

ageorget commented 4 years ago

The problem also appears when webdav.root and frontend.root are set with the same value like ie. '/pnfs/in2p3.fr/data/' In download-task.js, the file object get :

type: "basic"
url: "https://ccdcalitest01.in2p3.fr:3880/scripts/tasks/undefined"
redirected: false
status: 404
ok: false
statusText: "Not Found"