X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c2cba51503a0e41ddd68083993e32fe085e49a7f..37044d922164855ba5cc443e775037ab12cdbf95:/services/ws/permission.go 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"]`}, })