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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04cd3629d781fac53a42400ffda3b499f2e512b728a6432ee2932fa4e1e76c5c
4
- data.tar.gz: 869b0a1a4d44f02f23bf159c07e734eb50344a9d25d24090f1b2723d8b407bca
3
+ metadata.gz: 57429dc4de8e3597a4d8e608eba6d77d7277c730a7229c16e3d1f0961e542c22
4
+ data.tar.gz: 8a1b6eefeab828b630a6d7a2fc2e00826ecc593401dd00ce6587a4f161cbd52c
5
5
  SHA512:
6
- metadata.gz: e5fddb285500693142e0d80531f8989f3535da52eaebb345a4a35fe0a1c3d7657c18c0a23a4249449d8884b5e0642c8fe7f08b305421619da63b0857cf8a4d9b
7
- data.tar.gz: 321a2d1726752b04c0a3bb7491130e69680e65f3b20007cf5a511534034dbc5d32829f0c91c63571bf17b7c02bc2b163345842211273b540a69f0f2ac29f18fe
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.0
1
+ 1.203.1
@@ -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.0'
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
- # When `"ENABLED"` and the object has a stored checksum, it will be used to validate the download and will
522
- # raise an `Aws::Errors::ChecksumError` if checksum validation fails. You may provide a `on_checksum_validated`
523
- # callback if you need to verify that validation occurred and which algorithm was used.
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({}) { |k, h| h[k] = opts[k] if opts.key?(k) }
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({}) { |k, h| h[k] = opts[k] if opts.key?(k) }
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
- # When `"ENABLED"` and the object has a stored checksum, it will be used to validate the download and will
128
- # raise an `Aws::Errors::ChecksumError` if checksum validation fails. You may provide a `on_checksum_validated`
129
- # callback if you need to verify that validation occurred and which algorithm was used.
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
@@ -75,7 +75,7 @@ module Aws::S3
75
75
  autoload :ObjectVersion, 'aws-sdk-s3/object_version'
76
76
  autoload :EventStreams, 'aws-sdk-s3/event_streams'
77
77
 
78
- GEM_VERSION = '1.203.0'
78
+ GEM_VERSION = '1.203.1'
79
79
 
80
80
  end
81
81
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.203.0
4
+ version: 1.203.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services