From 33d28e6226bb008bf365301ab6178f29b797eda5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 6 Aug 2020 15:02:02 +0200 Subject: [PATCH 1/7] =?UTF-8?q?=F0=9F=A5=85=20Increase=20default=20sockjs?= =?UTF-8?q?=20timeout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See #3502 --- src/octoprint/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/settings.py b/src/octoprint/settings.py index 0a21b60d4..0834899a0 100644 --- a/src/octoprint/settings.py +++ b/src/octoprint/settings.py @@ -420,7 +420,7 @@ default_settings = { }, "useFrozenDictForPrinterState": True, "showLoadingAnimation": True, - "sockJsConnectTimeout": 10 + "sockJsConnectTimeout": 30 } } """The default settings of the core application.""" From 3111846ddce1dee7dd1076809fa7e25df5a56b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 6 Aug 2020 16:12:41 +0200 Subject: [PATCH 2/7] =?UTF-8?q?=F0=9F=90=9B=20Gracefully=20handle=20non=20?= =?UTF-8?q?existing=20Accept-Encoding=20header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://community.octoprint.org/t/22738 --- src/octoprint/server/util/tornado.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/server/util/tornado.py b/src/octoprint/server/util/tornado.py index 2929fa1b0..e242ed93b 100644 --- a/src/octoprint/server/util/tornado.py +++ b/src/octoprint/server/util/tornado.py @@ -999,7 +999,7 @@ class LargeResponseHandler(RequestlessExceptionLoggingMixin, def should_use_precompressed(self): return (self._is_pre_compressed - and "gzip" in self.request.headers.get("Accept-Encoding")) + and "gzip" in self.request.headers.get("Accept-Encoding", "")) def get(self, path, include_body=True): if self._access_validation is not None: From 09c28001812380d4eb0a620c047ce3ab512766b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 6 Aug 2020 17:53:11 +0200 Subject: [PATCH 3/7] =?UTF-8?q?=F0=9F=90=9B=20Fix=20a=20wrong=20settings?= =?UTF-8?q?=20key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #3679 --- src/octoprint/server/api/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/server/api/settings.py b/src/octoprint/server/api/settings.py index 791cbde28..b07d1e7d5 100644 --- a/src/octoprint/server/api/settings.py +++ b/src/octoprint/server/api/settings.py @@ -445,7 +445,7 @@ def _saveSettings(data): if "timeoutConnection" in data["serial"]: s.setFloat(["serial", "timeout", "connection"], data["serial"]["timeoutConnection"], min=1.0) if "timeoutDetectionFirst" in data["serial"]: s.setFloat(["serial", "timeout", "detectionFirst"], data["serial"]["timeoutDetectionFirst"], min=1.0) if "timeoutDetectionConsecutive" in data["serial"]: s.setFloat(["serial", "timeout", "detectionConsecutive"], data["serial"]["timeoutDetectionConsecutive"], min=1.0) - if "timeoutCommunication" in data["serial"]: s.setFloat(["serial", "timeout", "communication"], data["serial"]["timeoutCommunicationFirst"], min=1.0) + if "timeoutCommunication" in data["serial"]: s.setFloat(["serial", "timeout", "communication"], data["serial"]["timeoutCommunication"], min=1.0) if "timeoutCommunicationBusy" in data["serial"]: s.setFloat(["serial", "timeout", "communicationBusy"], data["serial"]["timeoutCommunicationBusy"], min=1.0) if "timeoutTemperature" in data["serial"]: s.setFloat(["serial", "timeout", "temperature"], data["serial"]["timeoutTemperature"], min=1.0) if "timeoutTemperatureTargetSet" in data["serial"]: s.setFloat(["serial", "timeout", "temperatureTargetSet"], data["serial"]["timeoutTemperatureTargetSet"], min=1.0) From 4bf28964130386b7486c1c53c59b6e2e63ab6678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 10 Aug 2020 14:27:01 +0200 Subject: [PATCH 4/7] =?UTF-8?q?=F0=9F=94=96=20maintenance=20is=20now=20act?= =?UTF-8?q?ually=201.5.0.dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We are switching to PROPER semver and going forward will release maintenance releases with increased minor instead of patch, and leave patch increases to hotfixes. --- .versioneer-lookup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.versioneer-lookup b/.versioneer-lookup index e20a9a6fb..6f70957cd 100644 --- a/.versioneer-lookup +++ b/.versioneer-lookup @@ -18,11 +18,11 @@ prerelease HEAD \(detached.* -# maintenance is currently the branch for preparation of maintenance release 1.4.3 +# maintenance is currently the branch for preparation of maintenance release 1.5.0 # so are any fix/... and improve/... branches -maintenance 1.4.3 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev -fix/.* 1.4.3 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev -improve/.* 1.4.3 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev +maintenance 1.5.0 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev +fix/.* 1.5.0 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev +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 From 5df72729d16ab94e8bd35b3045adfc91ad216a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 10 Aug 2020 14:38:37 +0200 Subject: [PATCH 5/7] =?UTF-8?q?=F0=9F=90=9B=20Fix=20login=20behind=20prefi?= =?UTF-8?q?x=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/octoprint/server/views.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/octoprint/server/views.py b/src/octoprint/server/views.py index 84a0d2077..c1a69dde6 100644 --- a/src/octoprint/server/views.py +++ b/src/octoprint/server/views.py @@ -132,7 +132,7 @@ def _add_additional_assets(hook): def login(): from flask_login import current_user - redirect_url = request.args.get("redirect", url_for("index")) + redirect_url = request.args.get("redirect", request.script_root + url_for("index")) permissions = sorted(filter(lambda x: x is not None and isinstance(x, OctoPrintPermission), map(lambda x: getattr(Permissions, x.strip()), request.args.get("permissions", "").split(","))), @@ -165,7 +165,9 @@ def login(): @app.route("/recovery/") def recovery(): if not Permissions.ADMIN.can(): - return redirect(url_for("login", redirect=request.full_path, permissions=Permissions.ADMIN.key)) + return redirect(url_for("login", + redirect=request.script_root + request.full_path, + permissions=Permissions.ADMIN.key)) render_kwargs = dict(theming=[]) @@ -234,7 +236,7 @@ def index(): and userManager.has_been_customized(): if not (Permissions.STATUS.can() and Permissions.SETTINGS_READ.can()): return redirect(url_for("login", - redirect=request.full_path, + redirect=request.script_root + request.full_path, permissions=",".join([Permissions.STATUS.key, Permissions.SETTINGS_READ.key]))) From 2a19480084d3b9720b6f62799d210f60cffa1ffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 10 Aug 2020 16:07:35 +0200 Subject: [PATCH 6/7] =?UTF-8?q?=F0=9F=93=9D=20Update=20versioning=20scheme?= =?UTF-8?q?=20and=20PR=20instructions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CONTRIBUTING.md | 114 ++++++++++++++++++++++++++---------------------- 1 file changed, 63 insertions(+), 51 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 675b60b4d..61de0f8d3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -39,7 +39,7 @@ nothing but ticket management. [community forum at community.octoprint.org](https://community.octoprint.org) for such support issues. - If you are a **developer** that wants to brainstorm a pull request or possible - changes to the plugin system, please get in touch on the + changes to the plugin system, please get in touch on the [community forum at community.octoprint.org](https://community.octoprint.org/c/development). - If you need **support**, have a **question** or some **other reason** that doesn't fit any of the above categories, the issue tracker is not the right place. @@ -49,7 +49,7 @@ No matter what kind of ticket you create, never mix two or more "ticket reasons" into one ticket: One ticket per bug, request, brainstorming thread please. > 👉 **Note** -> +> > A bot is in place that monitors new tickets, automatically > categorizes them and checks new bug reports for usage of the provided template. > That bot will only bother you if you open a ticket that appears to be a bug (no @@ -71,12 +71,12 @@ following section *completely* and also follow the instructions in the 1. **Make sure you are at the right location**. This is the bug tracker of the official version of OctoPrint, which is the 3D print server and corresponding web interface itself. - + **OctoPrint doesn't manage your network connection or your webcam nor - can it fix your printer not getting detected as a serial interface** - - if you have any kinds of problems with that, get in touch on the + can it fix your printer not getting detected as a serial interface** - + if you have any kinds of problems with that, get in touch on the [community forum](https://community.octoprint.org). - + **This is not the bug tracker of OctoPi**, which is the preconfigured Raspberry Pi image including OctoPrint among other things - that one can be found [here](https://github.com/guysoft/OctoPi). If you have any kind of specific @@ -125,17 +125,17 @@ following section *completely* and also follow the instructions in the makes it more difficult due to on top of having to figure out the original problem there's now also a [red herring](https://en.wikipedia.org/wiki/Red_herring) interfering - so please be very diligent here! - + If in doubt about any of the above - get in touch on the [community forum](https://community.octoprint.org) -instead of opening a ticket here. If you are actually running into a bug, we'll figure it out together +instead of opening a ticket here. If you are actually running into a bug, we'll figure it out together there. - + ### What should I include in a bug report? First of all make sure your use **a descriptive title**. "It doesn't work" and similar unspecific complaints are NOT descriptive titles. -**Always use the following template, even if only adding a "me too" to an +**Always use the following template, even if only adding a "me too" to an existing ticket**: ``` @@ -152,7 +152,7 @@ or request features within OctoPrint (not OctoPi, not any OctoPrint plugins and not unofficial OctoPrint versions). Do not seek support here ("I need help with ...", "I have a -question ..."), that belongs on the community forum at +question ..."), that belongs on the community forum at community.octoprint.org, NOT here. Mark requests with a "[Request]" prefix in the title please. For bug @@ -172,7 +172,7 @@ Thank you! #### What were you doing? -