dCache / dcache-view

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

dcache-view (webdav): fix door selection #233

Closed femiadeyemi closed 4 years ago

femiadeyemi commented 4 years ago

Motivation:

As raised https://github.com/dCache/dcache-view/issues/231, some sites want to a particular dcache-view to use a particular webdav door. With some configuration's twisting this is possible, however the functions used to calculate the webdav file path hasn't factor-in this scenario.

Modification:

Adjust the webdav file path calculation to use the static value in frontend configuration when the frontent api for door returns an empty list.

Result:

Webdav door selection in dcache-view now work even when frontent api returns an empty list.

Target: master Request: 1.6 Request: 1.5 Requires-notes: no Acked-by: Marina Sahakyan Fixes: https://github.com/dCache/dcache-view/issues/231

Reviewed at https://rb.dcache.org/r/12252/

(cherry picked from commit a19e3ec4dbf585291b9723b42cf838d7640da6a6)