func (conn *Conn) GroupContents(ctx context.Context, options arvados.GroupContentsOptions) (arvados.ObjectList, error) {
// The requested UUID can be a user (virtual home project), which we just pass on to
// the API server.
- if strings.Index(options.UUID, "j7d0g") != 6 {
+ if strings.Index(options.UUID, "-j7d0g-") != 5 {
return conn.railsProxy.GroupContents(ctx, options)
}
filter.Operand = tmp[2]
options.Filters = append(options.Filters, filter)
}
+ } else {
+ return resp, fmt.Errorf("filter unparsable: not an array\n")
}
// Use the generic /groups/contents endpoint for filter groups
options.UUID = ""