aws-sdk-core 2.3.10 → 2.3.11
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95d3c274650927df13f06dacf20bf1220323feb0
|
4
|
+
data.tar.gz: dc14efb6d30606db8e8956d2328c2163527b9dc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e5390ee90de40b7eb4be9de82425db783f30dd8aa5554243e08e82e6a858e1907830cc1df67bd8e5b373197d644a09876c17516a7e0dd2509b04cf9c2656c19
|
7
|
+
data.tar.gz: 46e8ba24283a7eddedfdd3e4d7f1ca2443332a161154ee8b665b3f3e3b9e1b275ed16bd8719759a2e8d0b1a4678c64779c43dd8fbcd428998c8ba745f5b8a7fe
|
data/lib/aws-sdk-core/version.rb
CHANGED
@@ -17,9 +17,18 @@ module Aws
|
|
17
17
|
parser.parse
|
18
18
|
end
|
19
19
|
|
20
|
-
def on_start_element_ns(element_name, attributes,
|
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
|
-
|
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
|
|