From 0081eb0618c3eed8653b4b1bd4321ccdd6fc9228 Mon Sep 17 00:00:00 2001 From: Alex Bourret Date: Tue, 18 Feb 2025 14:43:01 +0100 Subject: [PATCH 1/3] Adding rss decoding --- python-lib/dku_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-lib/dku_utils.py b/python-lib/dku_utils.py index 834b2af..f9750d8 100644 --- a/python-lib/dku_utils.py +++ b/python-lib/dku_utils.py @@ -126,7 +126,7 @@ def extract_key_using_json_path(json_dictionary, json_path): def is_reponse_xml(response): content_types = response.headers.get("Content-Type", "").split(";") for content_type in content_types: - if content_type in ["text/xml", "application/soap+xml", "application/xml", "application/atom+xml"]: + if content_type in ["text/xml", "application/soap+xml", "application/xml", "application/atom+xml", "application/rss+xml"]: return True return False From 99636585b9ece3472a8c1ac3ade8649e290304bd Mon Sep 17 00:00:00 2001 From: Alex Bourret Date: Tue, 18 Feb 2025 14:45:49 +0100 Subject: [PATCH 2/3] v1.2.4 --- CHANGELOG.md | 4 ++++ plugin.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index da09f38..55ab9e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [Version 1.2.4](https://github.com/dataiku/dss-plugin-api-connect/releases/tag/v1.2.4) - Feature release - 2025-02-18 + +- Fix xml decoding for content type application/rss+xml + ## [Version 1.2.3](https://github.com/dataiku/dss-plugin-api-connect/releases/tag/v1.2.3) - Feature and bugfix release - 2024-11-25 - Fix xml decoding for content type application/atom+xml diff --git a/plugin.json b/plugin.json index f8b3ef3..04febb9 100644 --- a/plugin.json +++ b/plugin.json @@ -1,6 +1,6 @@ { "id": "api-connect", - "version": "1.2.3", + "version": "1.2.4", "meta": { "label": "API Connect", "description": "Retrieve data from any REST API", From cb3d522eb3bcca8b0402077fb22341215fc99ae1 Mon Sep 17 00:00:00 2001 From: Alex Bourret Date: Tue, 18 Feb 2025 14:46:06 +0100 Subject: [PATCH 3/3] v1.2.4 --- python-lib/dku_constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-lib/dku_constants.py b/python-lib/dku_constants.py index 54857c8..2145371 100644 --- a/python-lib/dku_constants.py +++ b/python-lib/dku_constants.py @@ -2,6 +2,6 @@ class DKUConstants(object): API_RESPONSE_KEY = "api_response" FORBIDDEN_KEYS = ["token", "password", "api_key_value", "secure_token"] FORM_DATA_BODY_FORMAT = "FORM_DATA" - PLUGIN_VERSION = "1.2.3" + PLUGIN_VERSION = "1.2.4" RAW_BODY_FORMAT = "RAW" REPONSE_ERROR_KEY = "dku_error"