Bug #10096

RichCollectionBase's _get_src_target method would crash if "source" argument is not basestring and "target_path" is empty.

Added by Lucas Di Pentima almost 3 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
SDKs
Target version:
Start date:
09/19/2016
Due date:
% Done:

0%

Estimated time:
Story points:
-

Description

Looking at sdk/python/arvados/collection.py:816, it seems that sourcecomponents[-1] would make the program crash before the exception raise statement:

        # Determine the name to use.
        target_name = targetcomponents[-1] if targetcomponents[-1] else sourcecomponents[-1]

        if not target_name:
            raise errors.ArgumentError("Target path is empty and source is an object.  Cannot determine destination filename to use.")

History

#1 Updated by Tom Morris almost 2 years ago

  • Target version set to Arvados Future Sprints

Also available in: Atom PDF