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

Unicode filenames on Python 2 cause urlquote to fail

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.2
    • 0.14.0-beta3
    • Storage
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment