aws-sdk-core 2.3.10 → 2.3.11

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
  SHA1:
3
- metadata.gz: eac816e5b7070b3df1a286c14126d10b90dd4898
4
- data.tar.gz: 831306d7c38c402b7f5e52fae014b5deb6f95066
3
+ metadata.gz: 95d3c274650927df13f06dacf20bf1220323feb0
4
+ data.tar.gz: dc14efb6d30606db8e8956d2328c2163527b9dc9
5
5
  SHA512:
6
- metadata.gz: 3766075c50141e85eab74ac66750ee232d21dc7a653206b301310d5df1ea2567bec43288b2bf40ab2583604ba41f8e904e4b25d34978980c77209c7f184bd048
7
- data.tar.gz: ebcf5abdafcde8d2084cc3229d1dd79d28468d14792b53a5bf07ad05498cbcd933cbf7fb38782d450a436f34addfe2e45ab6ca8fe10e91957fa5164b9a7c3a39
6
+ metadata.gz: 1e5390ee90de40b7eb4be9de82425db783f30dd8aa5554243e08e82e6a858e1907830cc1df67bd8e5b373197d644a09876c17516a7e0dd2509b04cf9c2656c19
7
+ data.tar.gz: 46e8ba24283a7eddedfdd3e4d7f1ca2443332a161154ee8b665b3f3e3b9e1b275ed16bd8719759a2e8d0b1a4678c64779c43dd8fbcd428998c8ba745f5b8a7fe
@@ -1,3 +1,3 @@
1
1
  module Aws
2
- VERSION = '2.3.10'
2
+ VERSION = '2.3.11'
3
3
  end
@@ -17,9 +17,18 @@ module Aws
17
17
  parser.parse
18
18
  end
19
19
 
20
- def on_start_element_ns(element_name, attributes, *ignored)
20
+ def on_start_element_ns(element_name, attributes, prefix = nil, uri = nil, ns = {})
21
+ # libxml-ruby does not provide a mapping from element attribute
22
+ # names to their qname prefixes. The following code line assumes
23
+ # that if a attribute ns is defined it applies to all attributes.
24
+ # This is necessary to support parsing S3 Object ACL Grantees.
25
+ # qnames are not used by any other AWS attribute. Also, new
26
+ # services are using JSON, limiting the possible blast radius
27
+ # of this patch.
28
+ attr_ns_prefix = ns.keys.first
21
29
  @stack.start_element(element_name)
22
30
  attributes.each do |attr_name, attr_value|
31
+ attr_name = "#{attr_ns_prefix}:#{attr_name}" if attr_ns_prefix
23
32
  @stack.attr(attr_name, attr_value)
24
33
  end
25
34
  end
@@ -21,7 +21,9 @@ module Aws
21
21
  def start_element_namespace(element_name, attributes = [], *ignored)
22
22
  @stack.start_element(element_name)
23
23
  attributes.each do |attr|
24
- @stack.attr(attr.localname, attr.value)
24
+ name = attr.localname
25
+ name = "#{attr.prefix}:#{name}" if attr.prefix
26
+ @stack.attr(name, attr.value)
25
27
  end
26
28
  end
27
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.10
4
+ version: 2.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services