File tree Expand file tree Collapse file tree 4 files changed +21
-2
lines changed
Expand file tree Collapse file tree 4 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ class ServiceEnumerator
99 MANIFEST_PATH = File . expand_path ( '../../services.json' , __FILE__ )
1010
1111 # Minimum `aws-sdk-core` version for new gem builds
12- MINIMUM_CORE_VERSION = "3.241.3 "
12+ MINIMUM_CORE_VERSION = "3.241.4 "
1313
1414 # Minimum `aws-sdk-core` version for new S3 gem builds
15- MINIMUM_CORE_VERSION_S3 = "3.241.3 "
15+ MINIMUM_CORE_VERSION_S3 = "3.241.4 "
1616
1717 EVENTSTREAM_PLUGIN = "Aws::Plugins::EventStreamConfiguration"
1818
Original file line number Diff line number Diff line change 11Unreleased Changes
22------------------
33
4+ * Issue - Rewind IO during initialization for ` AwsChunkedTrailerDigestIO ` .
5+
463.241.3 (2026-01-08)
57------------------
68
Original file line number Diff line number Diff line change @@ -485,6 +485,7 @@ class AwsChunkedTrailerDigestIO
485485
486486 def initialize ( options = { } )
487487 @io = options . delete ( :io )
488+ @io . rewind if @io . respond_to? ( :rewind )
488489 @location_name = options . delete ( :location_name )
489490 @algorithm = options . delete ( :algorithm )
490491 @digest = ChecksumAlgorithm . digest_for_algorithm ( @algorithm )
Original file line number Diff line number Diff line change @@ -479,6 +479,22 @@ def stub_client(client)
479479 expect ( resp . context [ :http_checksum ] [ :validated ] ) . to eq ( 'CRC32' )
480480 end
481481 end
482+
483+ describe 'AwsChunkedTrailerDigestIO' do
484+ it 'rewinds IO on initialization' do
485+ io = StringIO . new ( 'hello world' )
486+ io . read # move to EOF
487+ expect ( io . pos ) . to eq ( 11 )
488+
489+ ChecksumAlgorithm ::AwsChunkedTrailerDigestIO . new (
490+ io : io ,
491+ algorithm : 'CRC32' ,
492+ location_name : 'x-amz-checksum-crc32'
493+ )
494+
495+ expect ( io . pos ) . to eq ( 0 )
496+ end
497+ end
482498 end
483499 end
484500end
You can’t perform that action at this time.
0 commit comments