13993: Need to explicitly handle paths that don't end in /
authorPeter Amstutz <pamstutz@veritasgenetics.com>
Mon, 10 Sep 2018 21:04:37 +0000 (17:04 -0400)
committerPeter Amstutz <pamstutz@veritasgenetics.com>
Mon, 10 Sep 2018 21:04:37 +0000 (17:04 -0400)
Otherwise Go will generate a 301 Moved Permanently from collection to collections/

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <pamstutz@veritasgenetics.com>

lib/controller/federation.go

index c9501d36730e731f995c2a1158df52ddc2e1cc89..da4c00da268bd0b9958fe91137816676aa7c974f 100644 (file)
@@ -146,6 +146,7 @@ func (h *Handler) setupProxyRemoteCluster(next http.Handler) http.Handler {
        mux := http.NewServeMux()
        mux.Handle("/arvados/v1/workflows", next)
        mux.Handle("/arvados/v1/workflows/", &genericFederatedRequestHandler{next, h})
+       mux.Handle("/arvados/v1/collections", next)
        mux.Handle("/arvados/v1/collections/", &collectionFederatedRequestHandler{next, h})
        mux.Handle("/", next)