Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-366

0.13 Cloudfiles storage driver encodes object name with _encode_container_name()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Storage
    • Labels:
      None

      Description

      In get_object() function of CloudFiles storage driver, object name is encoded with wrong function.

      libcloud-0.13.0
      storage/drivers/cloudfiles.py:263
      object_name_encoded = self._encode_container_name(object_name)

        Activity

        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 272d80a1ee6b3b8458903036f7b7550f9e9845f8 in branch refs/heads/0.13.x from Tomaz Muraus
        [ https://git-wip-us.apache.org/repos/asf?p=libcloud.git;h=272d80a ]

        Fix a regression with calling encode_container_name instead of
        encode_object_name on object name in get_object method.

        Reported by Ben Meng, part of LIBCLOUD-366.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 272d80a1ee6b3b8458903036f7b7550f9e9845f8 in branch refs/heads/0.13.x from Tomaz Muraus [ https://git-wip-us.apache.org/repos/asf?p=libcloud.git;h=272d80a ] Fix a regression with calling encode_container_name instead of encode_object_name on object name in get_object method. Reported by Ben Meng, part of LIBCLOUD-366 .
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 384b574e4f63af4be877b7cb0cc906187dc0bc24 in branch refs/heads/trunk from Tomaz Muraus
        [ https://git-wip-us.apache.org/repos/asf?p=libcloud.git;h=384b574 ]

        Fix a regression with calling encode_container_name instead of
        encode_object_name on object name in get_object method.

        Reported by Ben Meng, part of LIBCLOUD-366.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 384b574e4f63af4be877b7cb0cc906187dc0bc24 in branch refs/heads/trunk from Tomaz Muraus [ https://git-wip-us.apache.org/repos/asf?p=libcloud.git;h=384b574 ] Fix a regression with calling encode_container_name instead of encode_object_name on object name in get_object method. Reported by Ben Meng, part of LIBCLOUD-366 .
        Hide
        kami Tomaz Muraus added a comment -

        Good catch, thanks.

        Fixed with a test case pushed to trunk and 0.13.x

        Show
        kami Tomaz Muraus added a comment - Good catch, thanks. Fixed with a test case pushed to trunk and 0.13.x

          People

          • Assignee:
            kami Tomaz Muraus
            Reporter:
            msban Ben Meng
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development