Dmytro Milinevskyy
6e61ee4caa
s3: handle WebsiteRedirectLocation
...
spulec/moto#821
2017-04-14 13:32:52 +02:00
Waldemar Hummer
b8a41c5605
fix domain handling for local domain names in S3 API
2017-04-08 15:28:51 +10:00
Steve Pulec
446843e756
Fix py3 s3 prefix decoding.
2017-03-15 23:13:09 -04:00
Steve Pulec
3899eee648
Fix S3 filtering by unicode prefix. Closes #838
2017-03-15 22:53:27 -04:00
Steve Pulec
5f3fbff627
Standardize on one account id (123456789012).
2017-03-15 22:21:04 -04:00
Steve Pulec
6d422d1f37
Add BaseModel to all models.
2017-03-11 23:41:12 -05:00
Steve Pulec
3b4ef2cf15
Merge in master.
2017-03-05 09:58:39 -05:00
Matt Chamberlin
0393c384ad
fix etag metadata field name in key response dict (etag --> ETag) ( #855 )
2017-03-04 23:17:18 -05:00
Steve Pulec
f37bad0e00
Lints.
2017-02-23 21:37:43 -05:00
Steve Pulec
81836b6981
Get standalone server mode working for all tests.
2017-02-23 19:43:48 -05:00
Steve Pulec
cad185c74d
Cleanup headers and encoding.
2017-02-16 22:51:04 -05:00
Steve Pulec
fde721bed7
Testing new version of decorator.
2017-02-15 22:35:45 -05:00
Stefan Nordhausen
1a01bae74e
Implement list_objects_v2() for S3 buckets ( #814 )
...
This adds/fixes the following things:
- Add missing KeyCount in result (fixes #734 ).
- Do not hard code MaxKeys to 1000.
- Truncate result if it has more than MaxKeys items. Set IsTruncated
and NextContinuationToken accordingly.
- Support the StartAfter parameter.
- Return Owner information only when FetchOwner=True is given.
- "Prefix" in response is now "" instead of None when omitted in request.
- "Delimiter" is now omitted from response when not given in request.
2017-02-08 21:21:43 -05:00
Steve Pulec
2c6a967f45
Disable strict_slashes for Flask so that S3 works in server mode.
2016-12-03 18:59:28 -05:00
mfranke
5dc8e59fab
Fix s3bucket_path ( #784 )
...
* check HTTP header for IPv4 or IPv6 addresses and default to path based S3
* improved IPv4 and IPv6 checking with optional ports
* typo
* subdomain bucket creation with trailing '/' did not work
* Use regex for Host field check to determine IPv4/IPv6
* add testcases for trailing slash, IPv4 and IPv6
2016-12-03 18:15:24 -05:00
Tom V
c54985a39f
Fix for #748 . Turn on autoescape for S3 templates. ( #779 )
2016-12-03 18:13:24 -05:00
Steve Pulec
136f6d67fb
Add S3 ACL for aws-exec-read. Closes #740 .
2016-11-23 19:42:36 -06:00
mfranke
040c2cd8cc
Fix s3bucketpath handling for IP based requests ( #765 )
...
* check HTTP header for IPv4 or IPv6 addresses and default to path based S3
* improved IPv4 and IPv6 checking with optional ports
* typo
2016-11-23 19:05:34 -06:00
Taro Sato
bdb9d59e46
Update response headers with response_dict from key; add tests
2016-09-20 15:42:21 -07:00
imran
478e791c39
Fix unicode S3 key listing in Python 2
2016-09-04 04:31:03 +06:00
Declan Shanaghy
1441087e5c
Add S3 parsing for CloudFormation
2016-08-15 10:57:40 -07:00
Jesse Szwedko
ef10df0636
Update format of S3 client errors
...
To match
http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html#RESTErrorResponses
which documents that it should be at the top level rather than nested
under `Errors`.
2016-07-08 19:32:34 +00:00
George Leslie-Waksman
48c57384c5
Return headers and response matching AWS specification for copy_from requests.
2016-06-13 13:24:09 -07:00
Steve Pulec
bd7327fca2
Fix issues around S3 deletion. Closes #606 .
2016-05-08 17:14:35 -04:00
Steve Pulec
79addb8926
Add S3 functionality to copy range. Closes #526 .
2016-05-05 22:52:12 -04:00
Steve Pulec
0a10b2f738
Fix issues with unicode and slashes for S3. Closes #521 .
2016-05-01 22:03:52 -04:00
Steve Pulec
15dc619fb2
More liberal regrex for S3 region matching. Closes #580 .
2016-05-01 21:17:06 -04:00
Steve Pulec
b932343fec
Break out MissingKey as separate exception. Closes #571 .
2016-05-01 17:04:09 -04:00
Dan Felix
1988c957e0
Pass query to _key_response_head for versioning support.
2016-04-28 13:16:25 -07:00
George Leslie-Waksman
0ed7d1bb71
Add support for src_version_id to bucket copy_key op.
2016-04-27 17:08:44 -07:00
Steve Pulec
31dbe61233
Fix s3 url regex. Closes #516 .
2016-01-24 17:15:21 -05:00
Steve Pulec
a7938ed9ec
Fix s3 url regex to ensure path-based bucket and key does not catch.
2016-01-24 16:33:50 -05:00
Daniel Miller
35a89da273
Fix delete keys with werkzeug request
2016-01-22 12:44:57 -05:00
Daniel Miller
89d5c72d86
Fix delete keys detection with werkzeug request
2016-01-22 12:44:12 -05:00
Steve Pulec
075d008509
Change s3 urls to ordereddict to fix python3 issues.
2016-01-17 17:19:53 -05:00
Steve Pulec
0df03ba409
cleanup code.
2015-11-27 14:43:03 -05:00
Steve Pulec
1df454a632
first working version of s3 refactor.
2015-11-27 14:14:59 -05:00
Steve Pulec
c38731ecbb
Add ACL support for S3 buckets.
2015-11-11 20:26:29 -05:00
Steve Pulec
18d63a6cfe
Add basics of S# website configuration. Closes #442 .
2015-11-04 18:55:41 -05:00
Steve Pulec
d3e4c2c4b5
Add ability for specific backends to enable template escaping. Closes #441 .
2015-11-03 09:25:47 -05:00
Mike Kaplinskiy
131d44f0ad
Add S3 ACL supprt.
2015-10-07 00:14:37 -07:00
zeb
b59a77d5bb
Tweak bucket.delete_keys for s3bucket_path.
2015-09-04 19:02:26 +02:00
Steve Pulec
323f720cb5
Fix S3 bucket policy delete. Closes #396 .
2015-08-07 22:43:24 -04:00
Simon-Pierre Gingras
dc0557205d
S3: Bucket policy
2015-07-23 17:33:52 -04:00
MurphyMarkW
b82d0264dc
Fixes suffix range requests to truncate ranges.
2015-06-30 02:04:30 -05:00
MurphyMarkW
723b743381
Modifies check for last-byte-pos.
2015-06-30 00:26:42 -05:00
MurphyMarkW
2cdab4cab9
Fixes last-byte-pos interpretation.
2015-06-29 20:25:22 -05:00
Steve Pulec
5ee1525cd8
Fix S3 missing key error. Closes #364 .
2015-06-27 17:56:37 -04:00
Daniel O'Connell
5cc8f9ed21
S3_BUCKET_VERSIONING and S3_BUCKET_GET_VERSIONING were generating invalid XML, as the '<?xml version="1.0" encoding="UTF-8"?>' bit must be on the first line.
2015-06-12 08:56:14 +02:00
Steve Pulec
91fffbb83b
Add basics for S3 bucket lifecycles.
2015-06-02 23:11:23 -04:00