Compare commits

...
4 Commits
Author SHA1 Message Date
Gina Häußge ab3ebf101f Merge branch 'staging/bugfix' 2022-10-18 10:42:21 +02:00
Gina Häußge 1875623f05 🔖 Prepare release of 1.8.6 2022-10-18 10:38:08 +02:00
Gina Häußge ac6240a3a3 🐛 Fix tornado download endpoint
Something broke during the initial fix for #4659.

Fixes #4659
2022-10-17 21:14:29 +02:00
Gina Häußge ae407492bc 🔖 staging/bugfix is now 1.8.6.dev 2022-10-17 17:16:48 +02:00
3 changed files with 13 additions and 8 deletions

No files matched your search

+3 -3
View File
@@ -24,10 +24,10 @@ maintenance 1.8.0 3fe45661cd79c5137d9d4f5f4adb4d9519bc2084 pep440-dev
fix/.* 1.8.0 3fe45661cd79c5137d9d4f5f4adb4d9519bc2084 pep440-dev
improve/.* 1.8.0 3fe45661cd79c5137d9d4f5f4adb4d9519bc2084 pep440-dev
# staging/bugfix is the branch for preparation of the 1.8.5 bugfix release
# staging/bugfix is the branch for preparation of the 1.8.6 bugfix release
# so are any bug/... branches
staging/bugfix 1.8.5 27a576e352a9b3d9abee89ab92cd02012c0e39dd pep440-dev
bug/.* 1.8.5 27a576e352a9b3d9abee89ab92cd02012c0e39dd pep440-dev
staging/bugfix 1.8.6 395354212c2bb65b37b303de171418f6475ca346 pep440-dev
bug/.* 1.8.6 395354212c2bb65b37b303de171418f6475ca346 pep440-dev
# staging/maintenance is currently the branch for preparation of 1.8.0rc6
# so is regressionfix/...
+8 -3
View File
@@ -381,16 +381,21 @@ class BackupPlugin(
)
from octoprint.util import is_hidden_path
plugin_folder = self.get_plugin_data_folder()
def path_check(path):
joined = os.path.join(plugin_folder, path)
return not is_hidden_path(joined) and self._valid_backup(joined)
return [
(
r"/download/(.*)",
LargeResponseHandler,
{
"path": self.get_plugin_data_folder(),
"path": plugin_folder,
"as_attachment": True,
"path_validation": path_validation_factory(
lambda path: not is_hidden_path(path)
and self._valid_backup(path),
path_check,
status_code=404,
),
"access_validation": access_validation_factory(
@@ -18,10 +18,10 @@ from octoprint.util.version import (
)
SENTRY_URL_SERVER = (
"https://ed6946a2c4f344738768ac7f34ce27df@o118517.ingest.sentry.io/1373987"
"https://faa02914ec8f42139e12a36482cfdb60@o118517.ingest.sentry.io/1373987"
)
SENTRY_URL_COREUI = (
"https://1b37bf389cbc4150890838f99c42adab@o118517.ingest.sentry.io/1374096"
"https://be7a53389fb045b48d6c384bb8ee89eb@o118517.ingest.sentry.io/1374096"
)
SETTINGS_DEFAULTS = {