1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
Commit graph

32 commits

Author SHA1 Message Date
sue445
44f7db83d4 Deprecate Storage::AWS 2018-09-17 23:04:55 +09:00
sue445
f244ee944c git grep -l "class AWS" -- lib/fog/aws/storage.rb | xargs sed -i "" "s/class AWS/class Storage/g" 2018-09-17 23:04:55 +09:00
sue445
afa48062bc git grep -l "module Storage" -- lib/fog/aws/storage.rb | xargs sed -i "" "s/module Storage/module AWS/g" 2018-09-17 23:04:55 +09:00
sue445
ed087d80d9 git grep -l "Storage::AWS" -- lib/ | xargs sed -i "" "s/Storage::AWS/AWS::Storage/g" 2018-09-17 23:04:55 +09:00
alexcern
7c36189fb0
Escape / in presigned URLs
As per https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html

Fixes #462
2018-08-24 19:14:34 +02:00
Bharanee Rathna
8713af3ce0 regex match cn- regions. 2018-07-10 14:23:44 +10:00
Alessio Caiazza
b4529ca3fd
Expose S3 pre-signed object delete url 2018-02-21 14:00:32 +01:00
Rodrigo de Almeida Pereira
c3131a4694 fix host header with another port on s3 2016-12-05 10:10:15 -02:00
Esther Villars
f8e795d6d3 Replaces usage of Digest with OpenSSL::Digest for #261
The Digest class has some thread safety issues fixed in

aws/aws-sdk-ruby#529
aws/aws-sdk-ruby#525
ruby/ruby@c02fa39
2016-06-22 22:54:05 -07:00
geemus
13bda13933 require mime-types from inits 2016-01-07 10:33:39 -06:00
Jon-Erik Schneiderhan
e452e25c54 Reset 'finished' when rewinding S3Streamer 2015-11-30 14:45:20 -05:00
huming
ec8b515009 add cn support for s3 2015-10-01 10:32:14 +08:00
Derek Richard
6c02b477a3 Use regex instead of string matching to support redirect correctly when path_style is set to true
- Before this change a user would get an exception because the case statement
would attempt to do the else case which would get an `undefined method captures for nil class`
because the region is acutally a default region

Signed-off-by: Aakash Shah <ashah@pivotal.io>
2015-07-30 17:11:19 -07:00
Frederick Cheung
0dee386695 Fix blank content-encoding headers
The S3 docs claim that you should set the content-encoding to aws-chunked
for a streaming upload. This however results in S3 serving files with a blank
content-encoding header. After discussion with AWS support, it appears
that setting the content-encoding to aws-chunked isn't actually necessary
since S3 can infer this from other headers present in the request
2015-07-08 09:50:43 +01:00
Frederick Cheung
d2287ba09c Another attempt to solve content-encoding header issues
identity should not be used as a content encoding
2015-05-07 08:19:06 +01:00
Mathew Kamkar
36c82ab9f6 Refresh credentials if needed when signing S3 URL 2015-05-02 01:07:08 -07:00
Josh Lane
5903a7819b Merge pull request #62 from plribeiro3000/fix-loading-time
Reduce loading time
2015-04-07 13:08:23 -07:00
Paulo Henrique Lopes Ribeiro
722bbdfa45 Remove unecessary requires 2015-04-06 11:23:35 -03:00
Frederick Cheung
9b9faf6818 Fix blank content-encoding when none is supplied
Signature v4 requires that we insert a content-encoding header when doing
a streaming upload. If there is no pre-existing content encoding we should
set it to identity or some client may be confused by a blank content encoding
2015-03-21 14:41:32 +00:00
Matthew O'Riordan
1f6e9a9c41 Fix for undefined method map' for nil:NilClass`
1e799c5918 expects that params[:query] is always defined, and also introduced another bug that reassigned params incorrectly
2015-03-13 16:40:04 +00:00
James Myers
1e799c5918 Stringify keys for query parameters
* The query hash expects that all keys are strings. If the query hash
  has both string and symbol keys the `signature_v2` method raises an
  exception
* The query hash is often the leftover keys that have not been
  extracted from the initial request.
* The conversion of sym -> string is done elsewhere for other parameters
* Makes the request more robust in general.
2015-03-07 18:29:42 -08:00
Duarte Henriques
ba6a4cb454 Add support for cname buckets 2015-02-24 19:39:57 +00:00
mrloop
2b677d4dbd Making it easier to get pre-signed head requests
Very similar to get_url. https://github.com/fog/fog-aws/issues/47
2015-02-07 12:57:19 +00:00
Wesley Beary
963b150a7e Merge pull request #33 from nicholasklick/region_is_null
BUGFIX: When fog_credentials endpoint is set @region defaults to nil
2015-01-25 18:26:58 -06:00
Wesley Beary
c01c5e0817 Merge pull request #39 from greysteil/region-errors
Allow for AWS errors not specifying region
2015-01-25 18:14:17 -06:00
Grey Baker
29fbda675f Allow for AWS errors not specifying region 2015-01-24 11:46:17 +00:00
Frederick Cheung
becea65ad8 [AWS|Storage] signed_url should use v2 signature when aws_signature_version is 2 2015-01-23 21:47:30 +00:00
Nicholas Klick
4c7bf1db18 BUGFIX: When endpoint is set @region defaults to nil 2015-01-20 15:04:34 -05:00
geemus
f8513dc928 another attempt at s3 region redirecting 2015-01-09 16:42:07 -06:00
Josh Lane
c3626c8637 latest import
* still waiting on fog/fog#3376
2015-01-06 09:32:01 -08:00
Josh Lane
dcfd354b8a working tests 2015-01-02 09:42:20 -08:00
Josh Lane
d48d376e9c initial import
* take the liberty of correcting Aws naming
2014-12-31 09:17:51 -08:00