Bug #7418
open[SDKs] Unhelpful 404 stack trace when trying to arv-copy a collection without access
Description
Trying to copy https://workbench.tb05z.arvadosapi.com/collections/tb05z-4zz18-ooocid07llbtdil
bcosc@bcosc.qr1hi:~$ arv-copy --src tb05z --dst qr1hi tb05z-4zz18-ooocid07llbtdil
Traceback (most recent call last):
File "/usr/local/bin/arv-copy", line 4, in <module>
main()
File "/usr/local/lib/python2.7/dist-packages/arvados/commands/arv_copy.py", line 116, in main
set_src_owner_uuid(src_arv.collections(), args.object_uuid, args)
File "/usr/local/lib/python2.7/dist-packages/arvados/commands/arv_copy.py", line 148, in set_src_owner_uuid
c = resource.get(uuid=uuid).execute(num_retries=args.retries)
File "/usr/local/lib/python2.7/dist-packages/oauth2client/util.py", line 137, in positional_wrapper
return wrapped(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/googleapiclient/http.py", line 729, in execute
raise HttpError(resp, content, uri=self.uri)
arvados.errors.ApiError: <HttpError 404 when requesting https://tb05z.arvadosapi.com/arvados/v1/collections/tb05z-4zz18-ooocid07llbtdil?alt=json returned "Path not found">
Inputting https://tb05z.arvadosapi.com/arvados/v1/collections/tb05z-4zz18-ooocid07llbtdil?alt=json in my browser gets me {"errors":["#<NoMethodError: undefined method `[]' for nil:NilClass>"],"error_token":"1443642113+421456db"}