X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ba418300c50e1375ca9938562579b7bd6bf9490d..d9c447c1a53c03493fb1dd51a8eeb3f0022d07d5:/services/ws/permission.go?ds=sidebyside diff --git a/services/ws/permission.go b/services/ws/permission.go index ac895f80e5..78158b12a1 100644 --- a/services/ws/permission.go +++ b/services/ws/permission.go @@ -75,7 +75,9 @@ func (pc *cachingPermChecker) Check(ctx context.Context, uuid string) (bool, err } pc.nMisses++ - err = pc.RequestAndDecode(&buf, "GET", path, nil, url.Values{ + ctx, cancel := context.WithDeadline(context.Background(), time.Now().Add(time.Minute)) + defer cancel() + err = pc.RequestAndDecodeContext(ctx, &buf, "GET", path, nil, url.Values{ "include_trash": {"true"}, "select": {`["uuid"]`}, })