From edfa7865140524eb2c1d9d8bc3e6ad8ff0adb2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 3 Mar 2020 16:28:10 +0100 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20self.=5Fuser=20might=20not?= =?UTF-8?q?=20be=20a=20SessionUser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the socket is already logged out it will be an AnonymousUser and thus not a SessionUser. We shouldn't actually be pushing this without a round over an RC but frankly I don't want to postpone the release for two weeks (as next week is kinda busy) just to solve this obvious issue with zero side effects. So here I am doing things I shouldn't. --- src/octoprint/server/util/sockjs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/server/util/sockjs.py b/src/octoprint/server/util/sockjs.py index d65d02426..f051f63a0 100644 --- a/src/octoprint/server/util/sockjs.py +++ b/src/octoprint/server/util/sockjs.py @@ -312,7 +312,7 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection, self._temperatureBacklog.append(data) def on_user_logged_out(self, user, stale=False): - if user.get_id() == self._user.get_id() and hasattr(user, "session") and user.session == self._user.session: + if user.get_id() == self._user.get_id() and hasattr(user, "session") and hasattr(self._user, "session") and user.session == self._user.session: self._logger.info("User {} logged out, logging out on socket".format(user.get_id())) self._on_logout() From 6232a04e52fbf09a8b912590718764fccc3598ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 3 Mar 2020 16:28:51 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=94=96=20Preparing=20release=20of=201?= =?UTF-8?q?.4.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OMG OMG --- SUPPORTERS.md | 5 +++-- src/octoprint/plugins/errortracking/__init__.py | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/SUPPORTERS.md b/SUPPORTERS.md index 8c53a3928..a06ccfb07 100644 --- a/SUPPORTERS.md +++ b/SUPPORTERS.md @@ -6,6 +6,7 @@ thanks to everyone who contributed! ## Patreon Patrons + * Alex Krilov * Andrew Moorby * Arnljot Arntsen * BigTreeTech @@ -55,11 +56,11 @@ thanks to everyone who contributed! * Robert Gusek * Ronald Griehsler * Sacha Telgenhof - * sghnsk * Simon Hallam * Stefan Krister + * Steve Thompson * Sven Mueller * Trent Shumay * Ulrich Kempken -and 1764 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [Github Sponsors](https://github.com/users/foosel/sponsorship)! +and 1741 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [Github Sponsors](https://github.com/users/foosel/sponsorship)! diff --git a/src/octoprint/plugins/errortracking/__init__.py b/src/octoprint/plugins/errortracking/__init__.py index 51a0c352e..c6f21b1dc 100644 --- a/src/octoprint/plugins/errortracking/__init__.py +++ b/src/octoprint/plugins/errortracking/__init__.py @@ -13,8 +13,8 @@ from octoprint.util.version import get_octoprint_version_string, is_released_oct from flask import jsonify from flask_babel import gettext -SENTRY_URL_SERVER = "https://24203d6e841d4f708846e77553dfb277@sentry.io/1373987" -SENTRY_URL_COREUI = "https://84a46e028bd54b768165817f64a35bb6@sentry.io/1374096" +SENTRY_URL_SERVER = "https://2e668ba966024cfc962ba97eef89dc15@sentry.io/1373987" +SENTRY_URL_COREUI = "https://dccc2e2f3c6b4adda72f376bbb7fe561@sentry.io/1374096" SETTINGS_DEFAULTS = dict(enabled=False, enabled_unreleased=False,