aws-sdk-s3 1.152.1 → 1.152.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/client.rb +1 -1
- data/lib/aws-sdk-s3/plugins/http_200_errors.rb +16 -27
- data/lib/aws-sdk-s3.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f58eb23517500bb537d985b462dbe4e7260a24fd31cbbe1211c60e058b325e9
|
4
|
+
data.tar.gz: c4511cbafb037323c68e2cd009897783f2574ce36a7521beea2cd98b14226917
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2e085ebe17353842130b4a896d8ef99b1c847ddbd13c43c996d9469042c2f9c6c93b23cd205cf5312177de36f7d3a431c0ed902df9bf8fd3fd4ba9a06763d53
|
7
|
+
data.tar.gz: 53577dfee6c983413b911a1b45073f8e1e5b296bdd89f13395f9bfc1e1ddd2c8960271fef96301bf5384dc0cce2ee73e15d431b64c892c95dc0b72b9f4e0260c
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.152.
|
1
|
+
1.152.2
|
data/lib/aws-sdk-s3/client.rb
CHANGED
@@ -18828,7 +18828,7 @@ module Aws::S3
|
|
18828
18828
|
params: params,
|
18829
18829
|
config: config)
|
18830
18830
|
context[:gem_name] = 'aws-sdk-s3'
|
18831
|
-
context[:gem_version] = '1.152.
|
18831
|
+
context[:gem_version] = '1.152.2'
|
18832
18832
|
Seahorse::Client::Request.new(handlers, context)
|
18833
18833
|
end
|
18834
18834
|
|
@@ -15,40 +15,21 @@ module Aws
|
|
15
15
|
|
16
16
|
def call(context)
|
17
17
|
@handler.call(context).on(200) do |response|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
context.http_response.status_code = 500
|
24
|
-
response.data = nil
|
25
|
-
response.error = error
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
private
|
30
|
-
|
31
|
-
def streaming_output?(output)
|
32
|
-
if (payload = output[:payload_member]) # checking ref and shape
|
33
|
-
payload['streaming'] || payload.shape['streaming'] ||
|
34
|
-
payload.eventstream
|
35
|
-
else
|
36
|
-
false
|
18
|
+
if error = check_for_error(context)
|
19
|
+
context.http_response.status_code = 500
|
20
|
+
response.data = nil
|
21
|
+
response.error = error
|
22
|
+
end
|
37
23
|
end
|
38
24
|
end
|
39
25
|
|
40
|
-
def members_in_body?(output)
|
41
|
-
output.shape.members.any? { |_, k| k.location.nil? }
|
42
|
-
end
|
43
|
-
|
44
26
|
def check_for_error(context)
|
45
27
|
xml = context.http_response.body_contents
|
46
|
-
if xml.match(
|
28
|
+
if xml.match(/<Error>/)
|
47
29
|
error_code = xml.match(/<Code>(.+?)<\/Code>/)[1]
|
48
30
|
error_message = xml.match(/<Message>(.+?)<\/Message>/)[1]
|
49
31
|
S3::Errors.error_class(error_code).new(context, error_message)
|
50
|
-
elsif
|
51
|
-
# Must have a body member and have the start of an XML Tag
|
32
|
+
elsif !xml.match(/<\w/) # Must have the start of an XML Tag
|
52
33
|
# Other incomplete xml bodies will result in XML ParsingError
|
53
34
|
Seahorse::Client::NetworkingError.new(
|
54
35
|
S3::Errors
|
@@ -59,7 +40,15 @@ module Aws
|
|
59
40
|
end
|
60
41
|
end
|
61
42
|
|
62
|
-
handler(
|
43
|
+
handler(
|
44
|
+
Handler,
|
45
|
+
step: :sign,
|
46
|
+
operations: [
|
47
|
+
:complete_multipart_upload,
|
48
|
+
:copy_object,
|
49
|
+
:upload_part_copy,
|
50
|
+
]
|
51
|
+
)
|
63
52
|
end
|
64
53
|
end
|
65
54
|
end
|
data/lib/aws-sdk-s3.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.152.
|
4
|
+
version: 1.152.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-kms
|