X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b49229f98012d7c08ce02b8d28dbcc165c8a6c53..b96d5caa0056472fe67b82bd5305448d85c7d0cd:/services/keep-web/handler.go diff --git a/services/keep-web/handler.go b/services/keep-web/handler.go index bbbbd8f97b..643ca4f587 100644 --- a/services/keep-web/handler.go +++ b/services/keep-web/handler.go @@ -76,7 +76,9 @@ func parseCollectionIDFromURL(s string) string { } func (h *handler) setup() { - h.clientPool = arvadosclient.MakeClientPool() + // Errors will be handled at the client pool. + arv, _ := arvados.NewClientFromConfig(h.Config.cluster) + h.clientPool = arvadosclient.MakeClientPoolWith(arv) keepclient.RefreshServiceDiscoveryOnSIGHUP() keepclient.DefaultBlockCache.MaxBlocks = h.Config.cluster.Collections.WebDAVCache.MaxBlockEntries @@ -537,6 +539,7 @@ func (h *handler) serveSiteFS(w http.ResponseWriter, r *http.Request, tokens []s Insecure: arv.ApiInsecure, }).WithRequestID(r.Header.Get("X-Request-Id")) fs := client.SiteFileSystem(kc) + fs.ForwardSlashNameSubstitution(h.Config.cluster.Collections.ForwardSlashNameSubstitution) f, err := fs.Open(r.URL.Path) if os.IsNotExist(err) { http.Error(w, err.Error(), http.StatusNotFound)