[Bug 1011636] Re: Symbols & and ? in the name of a large object
John Dickinson
1011636 at bugs.launchpad.net
Thu Jul 16 01:54:56 UTC 2015
** Changed in: python-swiftclient
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-swiftclient in Ubuntu.
https://bugs.launchpad.net/bugs/1011636
Title:
Symbols & and ? in the name of a large object
Status in python-swiftclient:
Fix Released
Status in python-swiftclient package in Ubuntu:
Fix Released
Bug 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 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 at 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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/python-swiftclient/+bug/1011636/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list