Blob.from_string() should be able to parse all valid gcs uri #1107
Labels
api: storage
Issues related to the googleapis/python-storage API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Blob.from_string
is terminating parsing of object names at hash(#
) character.Test Code (minimalistic)
Expected
Object name should be
my/problamatic/object#name
Actual
Object name found is
my/problamatic/object
Temporary Workaround
Version
google_cloud_storage-2.10.0-py2.py3-none-any.whl
Suggestion
urlsplit
is not a good utility for parsing gcs uris. I have seen problems with%
char, trailing?
, ... etc withurlsplit
. Most of those characters are valid in context of gcs object names.python-storage/google/cloud/storage/blob.py
Line 406 in 663edc5
The text was updated successfully, but these errors were encountered: