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

Unicode filenames on Python 2 cause urlquote to fail

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.13.2
    • Fix Version/s: 0.14.0-beta3
    • Component/s: Storage
    • Labels:
      None
    • Environment:

      Python 2.6, 2.7

      Description

      Using filenames (or anything that urlquote is passed) on Python 2 cause an exception:

        File "/usr/lib/python2.7/urllib.py", line 1268, in quote
          return ''.join(map(quoter, s))
      KeyError: u'\xe9'
      

      There is a compatibility module libcloud.utils.py3 which is supposed to handle compatibility issues between the two Python versions.

      I've written a test case for this error and a patch. It appears to function correctly on Python 2.6, 2.7 and 3.3.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              micolous Michael Farrell
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: