aws-sdk-s3 1.23.0 → 1.23.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0ed9e7a99495dccd31ba122af637ccd2bb2b0f3
4
- data.tar.gz: '0169601078bef3eb0ce0cd0c04cfcaa17af2327f'
3
+ metadata.gz: 3f8a30dfebf04be8862002eaee088ef026e5e9ae
4
+ data.tar.gz: 4a287e9a67f86f21a173180e8a21a9775e3c3d4a
5
5
  SHA512:
6
- metadata.gz: c8f6dbb6902fd893e40c1c6189f4e20fd4317392b994aaa8fe54517270b5ec83d78e977a9175a07dee21341e6914f6b06b126d5303c518879311293eb35473f0
7
- data.tar.gz: c516ce65f15d6d9824c683723be5c9ba49507ac95dedf581ed664b097a2fa1c4073ef8203663d846bad2030bcad39794055a4f18670949e4413bc6123a0b820e
6
+ metadata.gz: 05e578505d81fda9ebec96cd1be439c945df7bfbc6f2348f5e8d58c6e57c2fac946e3b35eacdeaf95c1962467e1bb769c3371acc821a971fa6124108551981f9
7
+ data.tar.gz: e5a3baec6bf4714a75af90a3e68e0d9c058fb9d69e46ea1ce86d7a95b2a0ef20a55e6226051228a1f83c2c643acbd865e760ef242830fefe942962bf524fbee5
@@ -63,6 +63,6 @@ require_relative 'aws-sdk-s3/event_streams'
63
63
  # @service
64
64
  module Aws::S3
65
65
 
66
- GEM_VERSION = '1.23.0'
66
+ GEM_VERSION = '1.23.1'
67
67
 
68
68
  end
@@ -6452,7 +6452,7 @@ module Aws::S3
6452
6452
  params: params,
6453
6453
  config: config)
6454
6454
  context[:gem_name] = 'aws-sdk-s3'
6455
- context[:gem_version] = '1.23.0'
6455
+ context[:gem_version] = '1.23.1'
6456
6456
  Seahorse::Client::Request.new(handlers, context)
6457
6457
  end
6458
6458
 
@@ -22,8 +22,10 @@ module Aws
22
22
 
23
23
  def write(chunk)
24
24
  chunk = truncate_chunk(chunk)
25
- @bytes_written += chunk.bytesize
26
- @decrypter.write(chunk)
25
+ if chunk.bytesize > 0
26
+ @bytes_written += chunk.bytesize
27
+ @decrypter.write(chunk)
28
+ end
27
29
  end
28
30
 
29
31
  def finalize
@@ -39,8 +41,12 @@ module Aws
39
41
  def truncate_chunk(chunk)
40
42
  if chunk.bytesize + @bytes_written <= @max_bytes
41
43
  chunk
42
- else
44
+ elsif @bytes_written < @max_bytes
43
45
  chunk[0..(@max_bytes - @bytes_written - 1)]
46
+ else
47
+ # If the tag was sent over after the full body has been read,
48
+ # we don't want to accidentally append it.
49
+ ""
44
50
  end
45
51
  end
46
52
 
@@ -129,7 +129,7 @@ module Aws
129
129
  body, thread_part_number = mutex.synchronize do
130
130
  [read_to_part_body(read_pipe), part_number += 1]
131
131
  end
132
- break unless body
132
+ break unless (body || thread_part_number == 1)
133
133
  begin
134
134
  part = options.merge(
135
135
  body: body,
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.23.0
4
+ version: 1.23.1
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: 2018-10-24 00:00:00.000000000 Z
11
+ date: 2018-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms