dalli 3.0.5 → 3.0.6
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.
Potentially problematic release.
This version of dalli might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/History.md +5 -0
- data/lib/dalli/protocol/binary/response_processor.rb +4 -4
- data/lib/dalli/protocol/binary/sasl_authentication.rb +7 -4
- data/lib/dalli/version.rb +1 -1
- data/lib/dalli.rb +15 -15
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adcf2507fd177cbc44167154462aae102a6f34f9cd6a85ba29ea9a26e87efce6
|
4
|
+
data.tar.gz: 57bd7da6c8c90fbcd99c4738bdb061df3630df0ff17ead1cc510d5d58f8677e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cec1cceffc54713b77746ec455ddd3817b0dad37ceacb33d20f5f82a51015c7d82788ad78d043f4859d26a6c236bb57d8aac053770ea464827c5c22f07057d98
|
7
|
+
data.tar.gz: 70e93ae5cca84bc211315359391bad55b2f31908604ee195f42e701b472ab469074f3ee9350618491cfbf9d34b53f4e41950998e8e34cd446d8c4aca63d4b0d4
|
data/History.md
CHANGED
@@ -132,15 +132,15 @@ module Dalli
|
|
132
132
|
end
|
133
133
|
|
134
134
|
def validate_auth_format(extra_len, count)
|
135
|
-
return if extra_len.zero?
|
135
|
+
return if extra_len.zero?
|
136
136
|
|
137
137
|
raise Dalli::NetworkError, "Unexpected message format: #{extra_len} #{count}"
|
138
138
|
end
|
139
139
|
|
140
140
|
def auth_response
|
141
|
-
(extra_len,
|
142
|
-
validate_auth_format(extra_len,
|
143
|
-
content = read(
|
141
|
+
(_, extra_len, _, status, body_len,) = read_header.unpack(RESP_HEADER)
|
142
|
+
validate_auth_format(extra_len, body_len)
|
143
|
+
content = read(body_len) if body_len.positive?
|
144
144
|
[status, content]
|
145
145
|
end
|
146
146
|
end
|
@@ -11,9 +11,12 @@ module Dalli
|
|
11
11
|
write(RequestFormatter.standard_request(opkey: :auth_negotiation))
|
12
12
|
|
13
13
|
status, content = @response_processor.auth_response
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
return [status, []] if content.nil?
|
15
|
+
|
16
|
+
# Substitute spaces for the \x00 returned by
|
17
|
+
# memcached as a separator for easier
|
18
|
+
content&.tr("\u0000", ' ')
|
19
|
+
mechanisms = content&.split
|
17
20
|
[status, mechanisms]
|
18
21
|
end
|
19
22
|
|
@@ -45,7 +48,7 @@ module Dalli
|
|
45
48
|
|
46
49
|
return Dalli.logger.info("Dalli/SASL: #{content}") if status.zero?
|
47
50
|
|
48
|
-
raise Dalli::DalliError, "Error authenticating: #{status}" unless status == 0x21
|
51
|
+
raise Dalli::DalliError, "Error authenticating: 0x#{status.to_s(16)}" unless status == 0x21
|
49
52
|
|
50
53
|
raise NotImplementedError, 'No two-step authentication mechanisms supported'
|
51
54
|
# (step, msg) = sasl.receive('challenge', content)
|
data/lib/dalli/version.rb
CHANGED
data/lib/dalli.rb
CHANGED
@@ -49,19 +49,19 @@ module Dalli
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
|
52
|
+
require_relative 'dalli/version'
|
53
53
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
54
|
+
require_relative 'dalli/compressor'
|
55
|
+
require_relative 'dalli/client'
|
56
|
+
require_relative 'dalli/key_manager'
|
57
|
+
require_relative 'dalli/ring'
|
58
|
+
require_relative 'dalli/protocol'
|
59
|
+
require_relative 'dalli/protocol/binary'
|
60
|
+
require_relative 'dalli/protocol/server_config_parser'
|
61
|
+
require_relative 'dalli/protocol/ttl_sanitizer'
|
62
|
+
require_relative 'dalli/protocol/value_compressor'
|
63
|
+
require_relative 'dalli/protocol/value_marshaller'
|
64
|
+
require_relative 'dalli/protocol/value_serializer'
|
65
|
+
require_relative 'dalli/servers_arg_normalizer'
|
66
|
+
require_relative 'dalli/socket'
|
67
|
+
require_relative 'dalli/options'
|