Project

General

Profile

Actions

Bug #10096

open

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

Added by Lucas Di Pentima over 7 years ago. Updated about 2 months ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
SDKs
Target version:
Story points:
-
Release:
Release relationship:
Auto

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.")
Actions

Also available in: Atom PDF