Skip to content

Commit 567fdaa

Browse files
seba-alnClient Engineering Bot
andauthored
Fix issue with signing objects requests containing filter (#123)
* Fix issue with signing objects requests containing filter * PubNub SDK v6.3.2 release. Co-authored-by: Client Engineering Bot <60980775+Client Engineering [email protected]>
1 parent 6a3440d commit 567fdaa

File tree

5 files changed

+25
-7
lines changed

5 files changed

+25
-7
lines changed

.pubnub.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: python
2-
version: 6.3.1
2+
version: 6.3.2
33
schema: 1
44
scm: github.com/pubnub/python
55
sdks:
@@ -18,7 +18,7 @@ sdks:
1818
distributions:
1919
- distribution-type: library
2020
distribution-repository: package
21-
package-name: pubnub-6.3.1
21+
package-name: pubnub-6.3.2
2222
location: https://pypi.org/project/pubnub/
2323
supported-platforms:
2424
supported-operating-systems:
@@ -97,8 +97,8 @@ sdks:
9797
-
9898
distribution-type: library
9999
distribution-repository: git release
100-
package-name: pubnub-6.3.1
101-
location: https://github.com/pubnub/python/releases/download/v6.3.1/pubnub-6.3.1.tar.gz
100+
package-name: pubnub-6.3.2
101+
location: https://github.com/pubnub/python/releases/download/v6.3.2/pubnub-6.3.2.tar.gz
102102
supported-platforms:
103103
supported-operating-systems:
104104
Linux:
@@ -169,6 +169,11 @@ sdks:
169169
license-url: https://github.com/aio-libs/aiohttp/blob/master/LICENSE.txt
170170
is-required: Required
171171
changelog:
172+
- date: 2022-05-16
173+
version: v6.3.2
174+
changes:
175+
- type: bug
176+
text: "Fix issue with signing objects requests containing filter."
172177
- date: 2022-04-27
173178
version: v6.3.1
174179
changes:

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## v6.3.2
2+
May 16 2022
3+
4+
#### Fixed
5+
- Fix issue with signing objects requests containing filter.
6+
17
## v6.3.1
28
April 27 2022
39

pubnub/endpoints/objects_v2/objects_endpoint.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ def validate_params(self):
3232
def validate_specific_params(self):
3333
pass
3434

35+
def encoded_params(self):
36+
params = {}
37+
if isinstance(self, ListEndpoint):
38+
if self._filter:
39+
params["filter"] = utils.url_encode(str(self._filter))
40+
return params
41+
3542
def custom_params(self):
3643
params = {}
3744
inclusions = []
@@ -56,7 +63,7 @@ def custom_params(self):
5663

5764
if isinstance(self, ListEndpoint):
5865
if self._filter:
59-
params["filter"] = utils.url_encode(str(self._filter))
66+
params["filter"] = str(self._filter)
6067

6168
if self._limit:
6269
params["limit"] = int(self._limit)

pubnub/pubnub_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
class PubNubCore:
6767
"""A base class for PubNub Python API implementations"""
68-
SDK_VERSION = "6.3.1"
68+
SDK_VERSION = "6.3.2"
6969
SDK_NAME = "PubNub-Python"
7070

7171
TIMESTAMP_DIVIDER = 1000

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='pubnub',
5-
version='6.3.1',
5+
version='6.3.2',
66
description='PubNub Real-time push service in the cloud',
77
author='PubNub',
88
author_email='[email protected]',

0 commit comments

Comments
 (0)