aws-sdk-s3 1.203.0 → 1.203.1
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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/client.rb +1 -1
- data/lib/aws-sdk-s3/customizations/object.rb +3 -4
- data/lib/aws-sdk-s3/file_downloader.rb +19 -2
- data/lib/aws-sdk-s3/transfer_manager.rb +3 -4
- data/lib/aws-sdk-s3.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 57429dc4de8e3597a4d8e608eba6d77d7277c730a7229c16e3d1f0961e542c22
|
|
4
|
+
data.tar.gz: 8a1b6eefeab828b630a6d7a2fc2e00826ecc593401dd00ce6587a4f161cbd52c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e7981b06a0c24072d4e880529cddb506c683382c68f64d7c325d87e1e446b5511fb0ec31b3a555d40bcb4bc1f7fdee6a26e17371b5fbe9e7a01c5e3526fac927
|
|
7
|
+
data.tar.gz: 1f3fd5e176b7e41912b52ab6c83877902cd6e15d6280f885f02f2efb1e103843ba021f28d350da6ce6086055ea47e27a32260422c112be9ad4cd2631c88d47c0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.203.1 (2025-11-10)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Issue - Deprecated `:checksum_mode` parameter in `FileDownloader#download`. When set to "DISABLED", a deprecation warning is issued and the parameter is ignored. Use `:response_checksum_validation` on the S3 client instead to control checksum validation behavior.
|
|
8
|
+
|
|
4
9
|
1.203.0 (2025-11-05)
|
|
5
10
|
------------------
|
|
6
11
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.203.
|
|
1
|
+
1.203.1
|
data/lib/aws-sdk-s3/client.rb
CHANGED
|
@@ -22224,7 +22224,7 @@ module Aws::S3
|
|
|
22224
22224
|
tracer: tracer
|
|
22225
22225
|
)
|
|
22226
22226
|
context[:gem_name] = 'aws-sdk-s3'
|
|
22227
|
-
context[:gem_version] = '1.203.
|
|
22227
|
+
context[:gem_version] = '1.203.1'
|
|
22228
22228
|
Seahorse::Client::Request.new(handlers, context)
|
|
22229
22229
|
end
|
|
22230
22230
|
|
|
@@ -518,10 +518,9 @@ module Aws
|
|
|
518
518
|
# @option options [Integer] :thread_count (10) Customize threads used in the multipart download.
|
|
519
519
|
#
|
|
520
520
|
# @option options [String] :checksum_mode ("ENABLED")
|
|
521
|
-
#
|
|
522
|
-
#
|
|
523
|
-
#
|
|
524
|
-
# To disable checksum validation, set `checksum_mode` to `"DISABLED"`.
|
|
521
|
+
# This option is deprecated. Use `:response_checksum_validation` on your S3 client instead.
|
|
522
|
+
# To disable checksum validation, set `response_checksum_validation: 'when_required'`
|
|
523
|
+
# when creating your S3 client.
|
|
525
524
|
#
|
|
526
525
|
# @option options [Callable] :on_checksum_validated
|
|
527
526
|
# Called each time a request's checksum is validated with the checksum algorithm and the
|
|
@@ -90,12 +90,29 @@ module Aws
|
|
|
90
90
|
raise error unless error.nil?
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
+
def handle_checksum_mode_option(option_key, opts)
|
|
94
|
+
return false unless option_key == :checksum_mode && opts[:checksum_mode] == 'DISABLED'
|
|
95
|
+
|
|
96
|
+
msg = ':checksum_mode option is deprecated. Checksums will be validated by default. ' \
|
|
97
|
+
'To disable checksum validation, set :response_checksum_validation to "when_required" on your S3 client.'
|
|
98
|
+
warn(msg)
|
|
99
|
+
true
|
|
100
|
+
end
|
|
101
|
+
|
|
93
102
|
def get_opts(opts)
|
|
94
|
-
GET_OPTIONS.each_with_object({})
|
|
103
|
+
GET_OPTIONS.each_with_object({}) do |k, h|
|
|
104
|
+
next if k == :checksum_mode
|
|
105
|
+
|
|
106
|
+
h[k] = opts[k] if opts.key?(k)
|
|
107
|
+
end
|
|
95
108
|
end
|
|
96
109
|
|
|
97
110
|
def head_opts(opts)
|
|
98
|
-
HEAD_OPTIONS.each_with_object({})
|
|
111
|
+
HEAD_OPTIONS.each_with_object({}) do |k, h|
|
|
112
|
+
next if handle_checksum_mode_option(k, opts)
|
|
113
|
+
|
|
114
|
+
h[k] = opts[k] if opts.key?(k)
|
|
115
|
+
end
|
|
99
116
|
end
|
|
100
117
|
|
|
101
118
|
def compute_chunk(chunk_size, file_size)
|
|
@@ -124,10 +124,9 @@ module Aws
|
|
|
124
124
|
# Only used when no custom executor is provided (creates {DefaultExecutor} with given thread count).
|
|
125
125
|
#
|
|
126
126
|
# @option options [String] :checksum_mode ("ENABLED")
|
|
127
|
-
#
|
|
128
|
-
#
|
|
129
|
-
#
|
|
130
|
-
# To disable checksum validation, set `checksum_mode` to `"DISABLED"`.
|
|
127
|
+
# This option is deprecated. Use `:response_checksum_validation` on your S3 client instead.
|
|
128
|
+
# To disable checksum validation, set `response_checksum_validation: 'when_required'`
|
|
129
|
+
# when creating your S3 client.
|
|
131
130
|
#
|
|
132
131
|
# @option options [Callable] :on_checksum_validated
|
|
133
132
|
# Called each time a request's checksum is validated with the checksum algorithm and the
|
data/lib/aws-sdk-s3.rb
CHANGED