130 Commits

Author SHA1 Message Date
Iryoung Jeong
de4d23c2a5 Adapt Swift for WebOb 1.2
Based on PatchSet 3 of https://review.openstack.org/#/c/7569/ , make them to pass all funcional tests with both webob 1.x and 1.2.

The additional following compatibility issues were addressed:
 - Until patch for range header issue is merged into official webob release, testRangedGetsWithLWSinHeader() should skip test against webob 1.2
(49c175aec2)

 - common.constraints.check_utf8() can accept both utf8 str and unicode.

 - To convert unicode to utf-8 str if necessary.

 - Making proxy_logging can handle invalid utf-8 str

bug 888371
bug 959881

blueprint webob-support

Change-Id: I00e5fd04cd1653259606a4ffdd4926db3c84c496
2012-07-15 00:03:01 +09:00
Ionuț Arțăriși
9f5a6bba1a only allow methods which implement HTTP verbs to be called remotely
This fixes 500 server crashes caused by requests such as:

curl -X__init__ "http://your-swift-object-server:6000/sda1/p/a/c/o"

Fixes bug 1005903

Change-Id: I6c0ad39a29e07ce5f46b0fdbd11a53a9a1010a04
2012-06-04 17:46:17 +02:00
John Dickinson
1ecf5ebba1 updated copyright date for all files
Change-Id: Ifd909d3561c2647770a7e0caa3cd91acd1b4f298
2012-03-19 13:45:34 -05:00
Juan J. Martinez
bb3bfe1dbd Consistent timestamp formatting for last_modified.
Fixes bug 798268.

Python datetime's isoformat() uses %Y-%m-%dT%H:%M:%S.%f format, but
the miliseconds part is not included when it's zero.

As consequence the compliant ISO 8601 format was not consistent
when performing a GET request over a container (listing objects info).

Change-Id: Ifed3f0adf3eaca47304c142615169bd3f1901631
2012-02-02 11:54:15 +00:00
Scott Simpson
dfb9a9f0a3 fixes bug lp 891247
added try/except around the accept header matcher
to catch the assertionerror that was being thrown
and return a more meaningful message.

Change-Id: I64184be0a40f8696f8e7e3801763d555ec2526dd
2011-11-23 11:50:09 -06:00
gholt
dd839048f1 Updated TimeoutError and except Exception refs...
Updated eventlet.TimeoutError (deprecated) references to
Timeout and, more importantly, updated many except Exception
clauses to except (Exception, Timeout).

Change-Id: Ib089265551bd20b94c00ea84f11140ccd795d301
2011-11-07 16:26:03 +00:00
gholt
872420efdb Expiring Objects Support
Please see the doc/source/overview_expiring_objects.rst for
more detail.

Change-Id: I4ab49e731248cf62ce10001016e0c819cc531738
2011-11-01 15:49:00 +00:00
David Goetz
d234461344 merge up to trunk, rollback xml 2011-07-22 12:58:22 -07:00
David Goetz
9be62bd9cd rolling back xml changes bzr merge -r319..318 2011-07-22 10:54:54 -07:00
David Goetz
065318a251 rolling back xml changes bzr merge -r323..322 2011-07-22 10:53:25 -07:00
gholt
498edf3e34 Reset container sync points when the sync-to changes 2011-07-14 20:07:45 +00:00
gholt
7b06c9855c Update to <?xml version="1.1" 2011-07-13 20:03:04 +00:00
gholt
082b324bc3 Update to comply with XML 1.1: No NULLs in names allowed; control chars are converted to entities (ex: &#x4;) 2011-06-17 00:57:00 +00:00
gholt
f68232bf89 Fixed account and container listings to return with charset=utf-8 instead of charset=utf8 2011-06-10 18:36:02 +00:00
Conrad Weidenkeller
68ec704cbc Modified Unit tests for XML change 2011-05-19 06:59:47 +00:00
gholt
cc00bd40e0 Fix tests to cleanup their /tmp dirs 2011-01-24 17:12:38 -08:00
Clay Gerrard
e64e21dd01 pep8 2011-01-19 16:19:43 -06:00
Clay Gerrard
105315dfc4 obsolete PATH_TO_TEST_XFS 2011-01-19 14:18:37 -06:00
Anne Gentle
8823427161 Changed copyright notices on py files and the single rst file with a copyright notice 2011-01-04 17:34:43 -06:00
Michael Barton
5d564a98b0 support text/xml 2010-11-02 16:04:15 +00:00
Michael Barton
cefcd568cd more tests 2010-10-29 10:28:19 +00:00
Michael Barton
58f3372360 shore up accept header parsing 2010-10-29 01:23:01 +00:00
gholt
d2ec027e22 For ACL strings: Shortened .ref to just .r, though .ref, .referer, and .referrer are all accepted. Updated 'Creating Your Own Auth Middleware' to describe how the DevAuth server works and suggestions for creating one's own. Added reseller_prefix (optional) implementation. Used urlparse in referrer_allowed. Fixed bug where group names would get lowercased by clean_acl. Changed .r:any to .r:*. Allowed .r:*.example.com to mean .r:.example.com. Made proxy log just the first authenticated group (the user) alongside the token. Moved proxy callback to clean_acl before the length check of the metadata. Cleaned up redundant logic in first proxy swift.authorize callback. Bit better docs. More and updated tests. 2010-09-08 22:37:27 -07:00
gholt
cfcfdd3de1 Refactored auth and adding ACLs using repoze.what 2010-09-02 21:50:16 -07:00
Chuck Thier
2a36fe0619 Initial commit of middleware refactor 2010-08-20 00:50:12 +00:00
Chuck Thier
2c596c0a0f Initial commit of middleware refactor 2010-08-20 00:42:38 +00:00
gholt
e8d3f260b9 Expose account/container metadata facility to external API 2010-08-16 15:30:27 -07:00
gholt
15009bb76e Added metadata to account and container servers 2010-08-10 12:18:15 -07:00
gholt
f381184ae2 Make xfs-based tests optional 2010-07-13 15:04:12 -07:00
Chuck Thier
001407b969 Initial commit of Swift code 2010-07-12 17:03:45 -05:00