From 9355872455ec17121e619456b0a0f81cace3ae0c Mon Sep 17 00:00:00 2001 From: tkatzir Date: Tue, 6 Jun 2023 23:02:47 +0300 Subject: [PATCH] Fix urllib.parse import in CommonServerPython (#27252) --- Packs/Base/ReleaseNotes/1_32_9.md | 6 ++++++ Packs/Base/Scripts/CommonServerPython/CommonServerPython.py | 3 ++- Packs/Base/pack_metadata.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 Packs/Base/ReleaseNotes/1_32_9.md diff --git a/Packs/Base/ReleaseNotes/1_32_9.md b/Packs/Base/ReleaseNotes/1_32_9.md new file mode 100644 index 000000000000..3da6f3715d43 --- /dev/null +++ b/Packs/Base/ReleaseNotes/1_32_9.md @@ -0,0 +1,6 @@ + +#### Scripts + +##### CommonServerPython + +- Fixed an issue where importing urllib.parse failed. diff --git a/Packs/Base/Scripts/CommonServerPython/CommonServerPython.py b/Packs/Base/Scripts/CommonServerPython/CommonServerPython.py index cbf9a0790858..e779c77f604c 100644 --- a/Packs/Base/Scripts/CommonServerPython/CommonServerPython.py +++ b/Packs/Base/Scripts/CommonServerPython/CommonServerPython.py @@ -1591,7 +1591,8 @@ def add_replace_strs(self, *args): js = js[:-1] to_add.append(js) if IS_PY3: - to_add.append(urllib.parse.quote_plus(a)) # type: ignore[attr-defined] + from urllib import parse as urllib_parse + to_add.append(urllib_parse.quote_plus(a)) # type: ignore[attr-defined] else: to_add.append(urllib.quote_plus(a)) # type: ignore[attr-defined] diff --git a/Packs/Base/pack_metadata.json b/Packs/Base/pack_metadata.json index b566631d0390..670fd189e84c 100644 --- a/Packs/Base/pack_metadata.json +++ b/Packs/Base/pack_metadata.json @@ -2,7 +2,7 @@ "name": "Base", "description": "The base pack for Cortex XSOAR.", "support": "xsoar", - "currentVersion": "1.32.8", + "currentVersion": "1.32.9", "author": "Cortex XSOAR", "serverMinVersion": "6.0.0", "url": "https://www.paloaltonetworks.com/cortex",