libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [libcloud] Kami commented on issue #1452: Tilde ('~') character is incorrectly URL-encoded with Python 2
Date Sun, 03 May 2020 19:49:29 GMT

Kami commented on issue #1452:
URL: https://github.com/apache/libcloud/issues/1452#issuecomment-623170355


   I just tested ``urlqoute`` from Python 3.6 and it seems to handle it in the same manner
as Python 2 - aka it encodes it as ``%7E``.
   
   ```bash
   Python 3.6.9 (default, Sep  9 2019, 13:49:23) 
   [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)] on linux
   Type "help", "copyright", "credits" or "license" for more information.
   >>> from urllib.parse import quote as urlquote
   >>> urlquote('~')
   '%7E'
   ```
   
   Having said that, to be on the safe side - I think we should only add that change to S3
driver to begin with.
   
   Who knows how many (if any) provider APIs rely on ``~`` being url encoded as ``%7E`` so
changing it could introduce regressions in many other drivers.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message