aws-sdk-s3 1.152.1 → 1.152.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/client.rb +1 -1
- data/lib/aws-sdk-s3/plugins/http_200_errors.rb +31 -5
- 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: f2482fd08d0cf7ae9c7c6d788012eade6f874ea94884406a3c0dc578fda76144
|
4
|
+
data.tar.gz: f96e49214b5875df09f6240f95c92bb31a8043d4df965d6996bbb43b681904be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 499d5fe7d55cfe2317d258def749e9b2cfc04c1181d35989b0de4bcbc4c7ac977bf39efe572ba956408c82a7bea40dba528383f56b6c8e03fcf9d4b3287535e9
|
7
|
+
data.tar.gz: b969f42c202b5c8677adfee0eb94eac5d1747de817306dbd4b14736c01bf715ce181b7560b445ccc28a4752f9dc409956e257156cdbe5b27964ea6d91b246eba
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.152.3 (2024-06-13)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Issue - Handle 200 errors for all S3 operations that do not have streaming responses.
|
8
|
+
|
9
|
+
1.152.2 (2024-06-12)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Issue - Revert Handling of 200 errors for all S3 operations.
|
13
|
+
|
4
14
|
1.152.1 (2024-06-10)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.152.
|
1
|
+
1.152.3
|
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.3'
|
18832
18832
|
Seahorse::Client::Request.new(handlers, context)
|
18833
18833
|
end
|
18834
18834
|
|
@@ -28,8 +28,10 @@ module Aws
|
|
28
28
|
|
29
29
|
private
|
30
30
|
|
31
|
+
# Streaming outputs are not subject to 200 errors.
|
31
32
|
def streaming_output?(output)
|
32
|
-
if (payload = output[:payload_member])
|
33
|
+
if (payload = output[:payload_member])
|
34
|
+
# checking ref and shape
|
33
35
|
payload['streaming'] || payload.shape['streaming'] ||
|
34
36
|
payload.eventstream
|
35
37
|
else
|
@@ -37,8 +39,34 @@ module Aws
|
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
42
|
+
# Checks if the output shape is a structure shape and has members that
|
43
|
+
# are in the body for the case of a payload and a normal structure. A
|
44
|
+
# non-structure shape will not have members in the body. In the case
|
45
|
+
# of a string or blob, the body contents would have been checked first
|
46
|
+
# before this method is called in incomplete_xml_body?.
|
40
47
|
def members_in_body?(output)
|
41
|
-
|
48
|
+
shape =
|
49
|
+
if output[:payload_member]
|
50
|
+
output[:payload_member].shape
|
51
|
+
else
|
52
|
+
output.shape
|
53
|
+
end
|
54
|
+
|
55
|
+
if structure_shape?(shape)
|
56
|
+
shape.members.any? { |_, k| k.location.nil? }
|
57
|
+
else
|
58
|
+
false
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
def structure_shape?(shape)
|
63
|
+
shape.is_a?(Seahorse::Model::Shapes::StructureShape)
|
64
|
+
end
|
65
|
+
|
66
|
+
# Must have a member in the body and have the start of an XML Tag.
|
67
|
+
# Other incomplete xml bodies will result in an XML ParsingError.
|
68
|
+
def incomplete_xml_body?(xml, output)
|
69
|
+
members_in_body?(output) && !xml.match(/<\w/)
|
42
70
|
end
|
43
71
|
|
44
72
|
def check_for_error(context)
|
@@ -47,9 +75,7 @@ module Aws
|
|
47
75
|
error_code = xml.match(/<Code>(.+?)<\/Code>/)[1]
|
48
76
|
error_message = xml.match(/<Message>(.+?)<\/Message>/)[1]
|
49
77
|
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
|
52
|
-
# Other incomplete xml bodies will result in XML ParsingError
|
78
|
+
elsif incomplete_xml_body?(xml, context.operation.output)
|
53
79
|
Seahorse::Client::NetworkingError.new(
|
54
80
|
S3::Errors
|
55
81
|
.error_class('InternalError')
|
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.3
|
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-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-kms
|