From 84fb97f82a425e306b013f70f65d5f8ad985df61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 18 Nov 2020 13:07:58 +0100 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=90=9B=20PMGR:=20Don't=20use=20jsonif?= =?UTF-8?q?y=20outside=20flask=20context?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We've moved `_command_install_archive` into its own thread, so we must return results instead of jsonify'ing them. As discovered through #3825 --- src/octoprint/plugins/pluginmanager/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/plugins/pluginmanager/__init__.py b/src/octoprint/plugins/pluginmanager/__init__.py index d730aa2b1..d732e0b43 100644 --- a/src/octoprint/plugins/pluginmanager/__init__.py +++ b/src/octoprint/plugins/pluginmanager/__init__.py @@ -789,7 +789,7 @@ class PluginManagerPlugin( "for generated output", } self._send_result_notification("install", result) - return jsonify(result) + return result # The final output of a pip install command looks something like this: # From 4768a7eb5a8b4cb8f5d436274c1a2f9a9a04d660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 18 Nov 2020 13:09:51 +0100 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=90=9B=20Value=20AND=20key=20might=20?= =?UTF-8?q?need=20str-conversion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #3825 --- src/octoprint/util/commandline.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/octoprint/util/commandline.py b/src/octoprint/util/commandline.py index d47e3a8e6..b45358ce1 100644 --- a/src/octoprint/util/commandline.py +++ b/src/octoprint/util/commandline.py @@ -176,7 +176,9 @@ class CommandlineCaller(object): # if we are running under windows, make sure there are no unicode strings in the env if get_os() == "windows" and "env" in kwargs: - kwargs["env"] = dict((k, to_native_str(v)) for k, v in kwargs["env"].items()) + kwargs["env"] = dict( + (to_native_str(k), to_native_str(v)) for k, v in kwargs["env"].items() + ) delimiter = kwargs.get("delimiter", b"\n") try: From 5e7ea35239908f9ed91895751d8a8202aa76ed4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 18 Nov 2020 13:53:07 +0100 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=94=96=20Preparing=20release=20of=201?= =?UTF-8?q?.5.0rc3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/plugins/errortracking/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/plugins/errortracking/__init__.py b/src/octoprint/plugins/errortracking/__init__.py index 3587afc27..00d9b82cc 100644 --- a/src/octoprint/plugins/errortracking/__init__.py +++ b/src/octoprint/plugins/errortracking/__init__.py @@ -21,10 +21,10 @@ from octoprint.util.version import ( ) SENTRY_URL_SERVER = ( - "https://5604af9afe444b44961b62f2f4e35395@o118517.ingest.sentry.io/1373987" + "https://e08a2195f1844c17a99a03dd04cc127f@o118517.ingest.sentry.io/1373987" ) SENTRY_URL_COREUI = ( - "https://d8119fba01a0429185ead6dae19ca45d@o118517.ingest.sentry.io/1374096" + "https://def48ce0f05340f0b30d5f4e981f8686@o118517.ingest.sentry.io/1374096" ) SETTINGS_DEFAULTS = { From 149161694d5ba0ededa1d78bc9d1fa2779aa7ec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 18 Nov 2020 16:31:01 +0100 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=94=96=20staging/maintenance=20is=20n?= =?UTF-8?q?ow=201.5.0rc4.dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .versioneer-lookup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.versioneer-lookup b/.versioneer-lookup index 6dc27a19d..2ca573de6 100644 --- a/.versioneer-lookup +++ b/.versioneer-lookup @@ -27,10 +27,10 @@ improve/.* 1.5.0 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev # staging/hotfix is the branch for preparation of the 1.4.2 hotfix release staging/hotfix 1.4.2 3ab84ed7e4c3aaaf71fe0f184b465f25d689f929 pep440-dev -# staging/maintenance is currently the branch for preparation of 1.5.0rc3 +# staging/maintenance is currently the branch for preparation of 1.5.0rc4 # so is regressionfix/... -staging/maintenance 1.5.0rc3 9f5781eff4d8b21e5fa6166fab8f4c1e4429710e pep440-dev -regressionfix/.* 1.5.0rc3 9f5781eff4d8b21e5fa6166fab8f4c1e4429710e pep440-dev +staging/maintenance 1.5.0rc4 5e7ea35239908f9ed91895751d8a8202aa76ed4b pep440-dev +regressionfix/.* 1.5.0rc4 5e7ea35239908f9ed91895751d8a8202aa76ed4b pep440-dev # staging/devel is currently inactive (but has the 1.4.1rc4 namespace) staging/devel 1.4.1rc4 650d54d1885409fa1d411eb54b9e8c7ff428910f pep440-dev