Skip to content

Commit

Permalink
Fix issue with signing objects requests containing filter (#123)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
seba-aln and Client Engineering Bot authored May 16, 2022
1 parent 6a3440d commit 567fdaa
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 7 deletions.
13 changes: 9 additions & 4 deletions .pubnub.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: python
version: 6.3.1
version: 6.3.2
schema: 1
scm: github.com/pubnub/python
sdks:
Expand All @@ -18,7 +18,7 @@ sdks:
distributions:
- distribution-type: library
distribution-repository: package
package-name: pubnub-6.3.1
package-name: pubnub-6.3.2
location: https://pypi.org/project/pubnub/
supported-platforms:
supported-operating-systems:
Expand Down Expand Up @@ -97,8 +97,8 @@ sdks:
-
distribution-type: library
distribution-repository: git release
package-name: pubnub-6.3.1
location: https://github.com/pubnub/python/releases/download/v6.3.1/pubnub-6.3.1.tar.gz
package-name: pubnub-6.3.2
location: https://github.com/pubnub/python/releases/download/v6.3.2/pubnub-6.3.2.tar.gz
supported-platforms:
supported-operating-systems:
Linux:
Expand Down Expand Up @@ -169,6 +169,11 @@ sdks:
license-url: https://github.com/aio-libs/aiohttp/blob/master/LICENSE.txt
is-required: Required
changelog:
- date: 2022-05-16
version: v6.3.2
changes:
- type: bug
text: "Fix issue with signing objects requests containing filter."
- date: 2022-04-27
version: v6.3.1
changes:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v6.3.2
May 16 2022

#### Fixed
- Fix issue with signing objects requests containing filter.

## v6.3.1
April 27 2022

Expand Down
9 changes: 8 additions & 1 deletion pubnub/endpoints/objects_v2/objects_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ def validate_params(self):
def validate_specific_params(self):
pass

def encoded_params(self):
params = {}
if isinstance(self, ListEndpoint):
if self._filter:
params["filter"] = utils.url_encode(str(self._filter))
return params

def custom_params(self):
params = {}
inclusions = []
Expand All @@ -56,7 +63,7 @@ def custom_params(self):

if isinstance(self, ListEndpoint):
if self._filter:
params["filter"] = utils.url_encode(str(self._filter))
params["filter"] = str(self._filter)

if self._limit:
params["limit"] = int(self._limit)
Expand Down
2 changes: 1 addition & 1 deletion pubnub/pubnub_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

class PubNubCore:
"""A base class for PubNub Python API implementations"""
SDK_VERSION = "6.3.1"
SDK_VERSION = "6.3.2"
SDK_NAME = "PubNub-Python"

TIMESTAMP_DIVIDER = 1000
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='pubnub',
version='6.3.1',
version='6.3.2',
description='PubNub Real-time push service in the cloud',
author='PubNub',
author_email='[email protected]',
Expand Down

0 comments on commit 567fdaa

Please sign in to comment.