Activity log for bug #1011636

Date Who What changed Old value New value Message
2012-06-11 14:03:13 Edward bug added bug
2012-06-11 14:03:13 Edward attachment added Fix problem with symbols & and ? in the name of a large object https://bugs.launchpad.net/bugs/1011636/+attachment/3184923/+files/Fix%20problem%20with%20%26%20and%20%3F%20symbols%20in%20the%20name%20of%20large%20object.patch
2012-06-11 14:07:14 Edward summary & and ? in name of large object Symbols & and ? in the name of a large object
2012-06-11 14:12:22 Edward description If I save an object that has symbols "&" or "?" in its name the swift does it rightly. $ swift upload 1 "4&4.txt" 4&4.txt But if I try to save an large object with symbols in its name I get a message about error. $ swift upload -S 10 2 "4&4.txt" 4&4.txt segment 0 Object PUT failed: http://localhost:8080/v1/AUTH_system/2/4%264.txt 400 Bad Request X-Object-Manifest must in the format container/prefix But I've found that the segments of this file were created. etregubov@ten:~/1$ swift list 2_segments 4&4.txt/1339422290.6/2/00000000 I've traced the swift and found that it doesn't create manifest file. But if swift are patched this patch: diff --git a/common/constraints.py b/common/constraints.py index 235dcca..f03589e 100644 --- a/common/constraints.py +++ b/common/constraints.py @@ -120,7 +120,7 @@ def check_object_creation(req, object_name): container, prefix = value.split('/', 1) except ValueError: pass - if not container or not prefix or '?' in value or '&' in value or \ + if not container or not prefix or \ prefix[0] == '/': return HTTPBadRequest(request=req, body='X-Object-Manifest must in the format container/prefix') all works right. If I save an object that has symbols "&" or "?" in its name the swift does it rightly. $ swift upload 1 "4&4.txt" 4&4.txt But if I try to save an large object with these symbols in its name I get a message about error. $ swift upload -S 10 2 "4&4.txt" 4&4.txt segment 0 Object PUT failed: http://localhost:8080/v1/AUTH_system/2/4%264.txt 400 Bad Request X-Object-Manifest must in the format container/prefix But I've found that the segments of this file were created. etregubov@ten:~/1$ swift list 2_segments 4&4.txt/1339422290.6/2/00000000 I've traced the swift and found that it doesn't create manifest file. But if swift are patched this patch: diff --git a/common/constraints.py b/common/constraints.py index 235dcca..f03589e 100644 --- a/common/constraints.py +++ b/common/constraints.py @@ -120,7 +120,7 @@ def check_object_creation(req, object_name):              container, prefix = value.split('/', 1)          except ValueError:              pass - if not container or not prefix or '?' in value or '&' in value or \ + if not container or not prefix or \                  prefix[0] == '/':              return HTTPBadRequest(request=req,                  body='X-Object-Manifest must in the format container/prefix') all works right.
2012-06-11 14:48:42 Edward attachment removed Fix problem with some symbols in the name of a large object https://bugs.launchpad.net/swift/+bug/1011636/+attachment/3184923/+files/Fix%20problem%20with%20%26%20and%20%3F%20symbols%20in%20the%20name%20of%20large%20object.patch
2012-06-11 14:53:19 Edward attachment added Fix problem with ampersend and question mark in the name of a large object.patch https://bugs.launchpad.net/swift/+bug/1011636/+attachment/3184973/+files/Fix%20problem%20with%20ampersend%20and%20question%20mark%20in%20the%20name%20of%20a%20large%20object.patch
2012-06-26 08:25:09 karpov bug added subscriber karpov
2012-06-26 08:39:34 karpov swift: status New Confirmed
2012-06-26 10:31:36 Thierry Carrez swift: importance Undecided High
2012-06-26 13:35:38 Alan Pevec bug added subscriber gholt
2012-06-27 08:32:54 Camille bug added subscriber Camille
2012-06-28 23:19:34 gholt swift: assignee gholt (gholt)
2012-06-28 23:19:41 gholt swift: status Confirmed In Progress
2012-06-29 13:03:16 gholt tags python-swiftclient
2012-07-03 16:40:24 OpenStack Infra swift: status In Progress Fix Committed
2012-07-04 10:26:31 Thierry Carrez affects swift python-swiftclient
2012-08-06 16:11:11 Guillaume Dondero bug task added swift (Ubuntu)
2012-08-06 16:24:11 Ubuntu Foundations Team Bug Bot tags python-swiftclient patch python-swiftclient
2012-08-06 16:24:18 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Review Team
2012-08-16 11:07:25 James Page swift (Ubuntu): status New Triaged
2012-08-16 11:07:28 James Page swift (Ubuntu): importance Undecided High
2012-11-13 14:13:48 Chuck Short affects swift (Ubuntu) python-swiftclient (Ubuntu)
2013-02-18 22:10:57 Chuck Short python-swiftclient (Ubuntu): status Triaged Fix Released
2015-07-16 01:54:56 John Dickinson python-swiftclient: status Fix Committed Fix Released