Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>
// UUID is a PDH
first := make(chan arvados.Collection, 1)
err := conn.tryLocalThenRemotes(ctx, func(ctx context.Context, remoteID string, be backend) error {
// UUID is a PDH
first := make(chan arvados.Collection, 1)
err := conn.tryLocalThenRemotes(ctx, func(ctx context.Context, remoteID string, be backend) error {
- if remoteID != "" && strings.Contains(downstream, remoteID) {
+ if remoteID != "" && downstream != "" {
+ // If remoteID isn't in downstream, we
+ // might find the collection by taking
+ // another hop, but we don't bother:
+ // token salting and blob signature
+ // rewriting don't work over multiple
+ // hops.
return notFoundError{}
}
c, err := be.CollectionGet(ctx, options)
return notFoundError{}
}
c, err := be.CollectionGet(ctx, options)