85 Commits

Author SHA1 Message Date
gholt
7c9e542c02 Implemented object POST as COPY 2011-06-08 04:19:34 +00:00
gholt
37fbf5ab77 Object COPY requests now always copy the newest object they can find. 2011-06-08 02:26:16 +00:00
gholt
6c50e9b3a1 You can specify X-Newest: true on GETs and HEADs to indicate you want Swift to query all backend copies and return the newest version retrieved. 2011-06-07 23:19:48 +00:00
John Dickinson
4d3c76ab85 moved transaction id to catch errors middleware 2011-05-09 15:21:34 -05:00
John Dickinson
26b5ff12bf added transaction id header to every response 2011-05-06 09:50:06 -05:00
Scott Simpson
995bd5822d fixing unit test 2011-04-21 15:09:04 -05:00
Scott Simpson
22f88ce4af adding Accept-Ranges: bytes header to HEAD and GET requests. 2011-04-20 15:10:02 -07:00
Scott Simpson
97e817ecb7 made client ip fill in, in the absence of a load balancer in the client field in the access logs. 2011-04-16 01:52:47 +00:00
David Goetz
e999656935 unit tests for timeout exception 2011-04-11 16:26:50 -07:00
Scott Simpson
191b41231c making client ip appear in a standard place 2011-04-01 08:10:55 -07:00
gholt
028ad1c613 Fixes to work with WebOb 1.0.1 and WebOb 1.0.3 2011-03-10 08:52:03 -08:00
Michael Barton
f0acd547d7 merge trunk 2011-02-24 07:43:05 +00:00
Clay Gerrard
5d0bc6b9c7 logging refactor to support proxy access logs
New log level "notice" set to python log level 25 maps to syslog priority
LOG_NOTICE.  Used for some messages in the proxy server, but will be available
to all apps using the LogAdapter returned from get_logger.  Cleaned up some
code in get_logger so that console logging works with log_routes and removed
some unneeded bits.  NamedFormatter functionality was split between LogAdapter
(which now inherits from logging.LoggerAdapter) and TxnFormatter (which now is
only responsible for adding the log records txn_id).

The proxy server app now configures a separate logger for access line logging.
By default it will use the same settings as the regular proxy logger.
2011-02-10 14:59:52 -06:00
Clay Gerrard
461bf8df71 added new proxy-server configuration options for access_log_facility and
access_log_name
2011-02-05 15:38:49 -06:00
Clay Gerrard
f9fa63686c Moved proxy server access log messages into their own log level
Added new "access" log level available on swift loggers that will be routed to
the LOG_NOTICE priority in syslog for easy redirection of access log messages
via rsyslog and syslog-ng.
2011-02-03 15:23:07 -06:00
Michael Barton
12839d06ad tweaks 2011-01-31 01:46:33 +00:00
Michael Barton
a4921169dd trunk merge 2011-01-31 01:29:04 +00:00
David Goetz
3ea09dd0e6 merge to trunk 2011-01-26 14:38:13 -08:00
David Goetz
86cb12036b removing blank excepts 2011-01-26 14:31:33 -08:00
gholt
cc00bd40e0 Fix tests to cleanup their /tmp dirs 2011-01-24 17:12:38 -08:00
Clay Gerrard
e784f1c3a4 obsolete PATH_TO_TEST_XFS 2011-01-20 00:31:55 +00:00
gholt
9dd1e2ae84 Updates to remove _ usage that is not i18n related 2011-01-19 15:21:57 -08:00
Clay Gerrard
105315dfc4 obsolete PATH_TO_TEST_XFS 2011-01-19 14:18:37 -06:00
Michael Barton
80f635a924 trunk merge 2011-01-19 19:22:08 +00:00
Clay Gerrard
efda6c0736 mocked out xattr in test_proxy 2011-01-19 11:05:42 -06:00
Michael Barton
74e20dad89 merge trunk 2011-01-19 14:28:22 +00:00
Michael Barton
2fc5c401fa break up that chunked put test 2011-01-19 03:56:13 +00:00
Michael Barton
9ec4cf0023 shuffle nodes and cache files for public access performance 2011-01-18 20:55:19 +00:00
Michael Barton
4741fcd441 proxy refactor 2011-01-16 14:50:29 +00:00
gholt
41b1452ab7 Fix for GETing a manifest that has an empty listing 2011-01-12 08:40:55 -08:00
John Dickinson
0f7d5d5a80 merged with trunk 2011-01-11 00:11:20 -06:00
John Dickinson
7dc0753f1e fixed and tested charset on content types 2011-01-11 00:08:35 -06:00
John Dickinson
2ec7e8705e I did not know the wonders of test_chunked_put_and_a_bit_more 2011-01-10 23:11:46 -06:00
John Dickinson
26573e43a6 object copy now copies the content type 2011-01-05 16:24:14 -06:00
gholt
ac250dd950 Merge from trunk 2011-01-05 07:16:17 -08: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
gholt
9682f8b85d Made copies of ridiculously segmented objects error. 2010-12-28 09:57:17 -08:00
gholt
3d36034722 Change copies of x-object-manifest objects to copy the actual contents of the object, not just the manifest marker itself 2010-12-28 09:18:37 -08:00
Michael Barton
24590669d8 i18n finishup 2010-12-22 16:36:31 +00:00
gholt
20d1ee6757 Now supports infinite objects! 2010-12-13 14:14:26 -08:00
gholt
b48f5091ea Merge from trunk 2010-12-06 12:32:56 -08:00
Greg Lange
84aa5f0fc8 Improved caching of results in the proxy server's account_info() and container_info() methods. 2010-12-06 20:02:43 +00:00
Greg Lange
27741ba25b makes account and container info caching in proxy better 2010-11-30 22:40:44 +00:00
gholt
6a2a4cf554 Merge from trunk 2010-11-30 08:01:05 -08:00
gholt
847cbe591d Merged from trunk 2010-11-30 07:57:01 -08:00
Conrad Weidenkeller
bbbf38324d Added the ability to keep a separate mime.types file in the /etc/swift dir. 2010-11-30 15:47:36 +00:00
gholt
544107a4ae proxy: added account DELETE method; added option to control whether account PUTs and DELETEs are even callable 2010-11-29 15:19:29 -08:00
Chuck Thier
21d355af18 Removed uneeded creation of resellers.conf from the unit test 2010-11-26 19:37:08 +00:00
gholt
c01b5d9f1d Maybe even a bit more concise with test_custom_mime_types_files 2010-11-24 14:58:17 -08:00
gholt
5fac58a012 Updated test_custom_mime_types_files 2010-11-24 14:48:03 -08:00