Skip to content

Commit

Permalink
Do not urldecode Key from list_objects response (#670)
Browse files Browse the repository at this point in the history
Also don't urldecode dir name
Fixes #669
  • Loading branch information
DeKe42 authored and kannappanr committed Jun 21, 2018
1 parent 9b349c3 commit 3daa2bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minio/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,15 @@ def _parse_objects_from_xml_elts(bucket_name, contents, common_prefixes):
"""
objects = [
Object(bucket_name,
content.get_urldecoded_elem_text('Key'),
content.get_child_text('Key'),
content.get_localized_time_elem('LastModified'),
content.get_etag_elem(strict=False),
content.get_int_elem('Size'))
for content in contents
]

object_dirs = [
Object(bucket_name, urldecode(dir_elt.text()), None, '',
Object(bucket_name, dir_elt.text(), None, '',
0, is_dir=True)
for dirs_elt in common_prefixes
for dir_elt in dirs_elt.findall('Prefix')
Expand Down

0 comments on commit 3daa2bf

Please sign in to comment.