Compare commits

...
54 Commits
Author SHA1 Message Date
Gina Häußge d0d226f3e0 🔖 Preparing release of 1.8.3 2022-09-20 11:04:39 +02:00
Gina Häußge 59a0c8e8d7 🔒️ Protect against CSRF attacks (#5)
* 🔒️ Protect against CSRF attacks

CORS and the JSON API heavily reduced the
attack surface here, but especially the upload
endpoints were still vulnerable to CSRF attacks.

All endpoints on the API that use methods
beyond GET, HEAD or OPTIONS now require
the presence of a csrf token (generated
by the UI on first load) AND a X-CSRF-Token
header with a matching value (Double Submit
Cookie), unless authorization is done through
an API-Key instead of a browser session.

Additionally, the SameSite attribute now is
set to "Strict" by default.

* 🔒️ Expand CSRF protection to plugins

Plugins are currently by default *opted out* of CSRF protection, to ensure
backwards compatibility with third party plugins in the field. However,
in a future OctoPrint version this will become a default *opt in*. Plugin
authors are advised to adjust the implementation with an explicit decision
via a logged warning generated in the default implementation. Additionally,
plugins that have opted out their whole plugin will generate a warning in
the startup messages.

A decorator to exempt individual endpoints from CSRF protection as certain
workflows require (see for example the auth request in the appkeys plugin)
is provided.

The general rule of thumb should be to opt in and only exempt those non
GET/HEAD/OPTIONS endpoints that really need to be usable without an
API key or CSRF cookie/header combo. In practice, that should be pretty
much non.

* 🐛 Fix a left-over from a local test

* 🐛 Fix wrong setting in E2E test config.yaml

* 🧑‍💻 Set CSRF header for $.ajax as well

We already ensure the header is set in the client lib and on the
file upload widgets, but many third party plugins don't use the
client lib but rather $.ajax directly and thus break without this.

* 📝 Improve docs on CSRF protection
2022-09-19 10:01:28 +02:00
Gina Häußge 0db80dc0c9 🔒️ Limit folder config in UI to necessities
uploads, timelapse and watched folder should be
configurable in the UI, but limiting anything else
to the config.yaml file is fair considering it
rarely should have to be touched. This reduces
the likelihood of misconfiguration or abuse.
2022-09-12 18:30:30 +02:00
Gina Häußge 3c8f8c84f4 🥅 Improve password hash migration
- users.yaml is now versioned, and a backup is made
  on version change. Thus, before any of the new
  hashes are being saved to it, a backup with the
  old ones will be made, here users.v1.yaml.
- The no longer needed salt is removed from the
  config if no legacy hashes are left in
  users.yaml. Prior to this removal however, a
  backup of config.yaml is made,
  config.cleanup_legacy_hashes.yaml.

When rolling back to an earlier version of
OctoPrint, moving both backups back over to
config.yaml and users.yaml respectively and
restarting will restore the ability to login
again.
2022-09-12 17:21:51 +02:00
Gina Häußge b447779e33 🔒️ Switch password hashing to argon2
With a fallback of pbkdf2_sha256 should anything
go wrong while attempting to import argon2
from passlib, e.g. due to broken native bindings.

Migration happens transparently on first login via
username and password.
2022-09-08 19:20:25 +02:00
Gina Häußge 14aec95898 🐛 Allow user creation without groups
If the default group gets actively deselected
during creation, it should not be automatically
added by the backend. Only add default groups
if no group info was provided at all, don't
add them if an empty list is provided.

Same for permissions.
2022-09-08 18:11:21 +02:00
Gina Häußge dc201416b6 🔒️ Require ADMIN for user management
So far it only required SETTINGS for historic reasons. The
description of SETTINGS however doesn't hint at that kind
of access and so this was misleading and could have led
to dangerous configurations.
2022-09-08 17:22:52 +02:00
Gina Häußge e550c94068 🔒️ Better path validation for backup downloads
Limited to admin anyhow, but let's make sure we only
ever provide things that look like valid backups on
this endpoint anyhow.

Also fixed a deprecated use of admin_validator.
2022-09-08 16:42:57 +02:00
Gina Häußge 0d89198464 🔒️ Limit logs push to MONITOR_TERMINAL permission
While the terminal wasn't visible for users without the
MONITOR_TERMINAL permission, the data was still sent
on the websocket.
2022-09-08 14:30:41 +02:00
Gina Häußge 3092734c62 🔒️ Require FILES_DELETE permission to overwrite a file 2022-09-08 13:36:47 +02:00
Gina Häußge 452dcdfbcc 🐛 Fix a styling issue in the appearance settings
Language pack list had a wrong CSS class.
2022-09-08 13:05:41 +02:00
Gina Häußge 92e8a2a138 Merge branch 'master' into staging/bugfix 2022-09-07 16:12:25 +02:00
Gina Häußge 40e6217ac1 🔒 Make session handling more secure
* 🔒️ Tie remember_me cookie to password hash

That way when the password gets changed,
existing cookies automatically get
invalidated.

* 🔒️ Invalidate user sessions on password change

This will require a user to log in again after
their password is changed, either by themselves
or through an admin.

This is a slight change in behaviour compared
to before, but makes sure password changes
are enforced across all existing sessions.

* ♻️ remember_key_for_user => signature_key_for_user

* 🔒️ Invalidate sessions after 15min of inactivity

The server has been keeping track of login
session for a while, but now it also only
considers such (active login) sessions fresh
that have been active within the past 15min.

That way, a session cookie's lifetime is now
also restricted server side. An active
socket connection suffices to keep the
session alive, as do any other requests
using the cookie.

As the session tracking happens in-memory,
all sessions will become invalid on server
restart. However, if the remember me cookie
is set, after server restart a passive
login will succeed.

* 🔒️ Limit remember_me validity to 90 days

So far that was only done through the cookie
duration, and with a year to boot. Now we
encode the creation date into the cookie
and check against that, if it exceeds the
cookie duration the cookie is considered
unset.

Will prevent reuse of ancient remember me
cookies (and force the user to login at
least once every 90d).

* 💚 Fix unit tests

New cookie handling requires a faked flask
config object.

Related: https://huntr.dev/bounties/d27d232b-2578-4b32-b3b4-74aabdadf629/
2022-09-01 12:45:57 +02:00
Gina Häußge b83b57406e 💚 Add setting to disable rate limiter
Not exposed on the UI and never will be, but allows
us to disable rate limiting on the API for easier
E2E testing.
2022-09-01 12:18:53 +02:00
Gina Häußge 3cca3a43f3 🔒️ Close a sanity check hole in language packs
A language pack containing a directory traversing
symlink could be uploaded. Upon backup creation, the
symlink would then lead to inclusion of whatever it
was pointing to in the resulting backup. This could
be used by an attacker with admin permissions to extract
information from the server.
2022-08-31 18:28:50 +02:00
Gina Häußge ef95ef1c10 🔒️ Fix a wrong permission role
A wrong role assigned to PluginManager LIST permission as
introduced in 1.8.0 causes a privilege escalation,
allowing read-only and user group the same rights as
the MANAGE permission:

- enabling/disabling plugins
- uninstalling plugins
- listing installed plugins incl. their details
- retrieving plugin notices
- deleting orphaned plugin settings
2022-08-24 10:52:48 +02:00
Gina Häußge 2cbeb27140 🔒️ Require the current password for changing it
Admins may still change existing user account passwords without
having to enter the current one, however the regular user oriented
password change dialog has been adjusted to require entry of the
current password. The API has been locked down accordingly and
the password change endpoint has seen a small change due to that,
please refer to the updated documentation.
2022-08-22 12:18:57 +02:00
Gina Häußge c87a7b6851 🐛 Add missing xhr parameter to function 2022-08-18 13:02:08 +02:00
Gina Häußge 6af0ce48dc 💚 Add wrapper around limit decorator to fix pytest discovery 2022-08-18 13:00:54 +02:00
Gina Häußge 3e3c11811e 🔒️ Enforce valid type on copy/move of uploads
Also enforce that on downloads and mirror it on the
API.

Prevents accidental or intentional renaming of
valid files to something like .html to e.g. attempt
to run arbitrary JS code in the browser on
"download" in the context of the OctoPrint URL.
Stealing login credentials via XSS is very unlikely
here given their http-only nature, however it's
still better to prevent this from happening anyhow.
2022-08-17 00:45:31 +02:00
Gina Häußge a33622e0b7 🔒️ Rate limit failed login attempts
Should reduce likelihood of brute force attacks
on unsecure networks if users decide to deploy/make
OctoPrint accessible there against all advice to
the contrary.

Cherry picked from 82c892ba40
2022-08-17 00:21:23 +02:00
Gina Häußge ae1cba8d91 ✅ Make E2E tests compatible to prefix paths 2022-08-16 11:37:44 +02:00
Gina Häußge 9f1ffde4c0 ✅ e2e: Make port configurable
The cookie are port specific, so they need to be
determine from the port from the base URL.
2022-08-11 16:23:16 +02:00
Gina Häußge fd2db95508 🔖 staging/bugfix is now 1.8.3.dev 2022-08-09 15:18:12 +02:00
Gina Häußge 87f4a4e8c9 🔖 Preparing release of 1.8.2 2022-08-09 13:54:24 +02:00
Gina Häußge 91ef0c0d99 📌 Pin Flask to 2.1
Flask 2.2 requires werkzeug 2.2 which we can't
upgrade to due to flask-login, and the current
version pins might be causing issues in the
field.

TODO for 1.9.0: upgrade werkzeug & flask if
possible with flask-login.
2022-08-09 13:03:42 +02:00
Gina Häußge dabdd40806 🔒️ Fix another open redirect issue
The redirect parameter to the login dialog now gets restricted to local URLs (as detected by unset scheme & netloc) that match a short list of allowed endpoints routes.
2022-08-04 10:33:31 +02:00
Gina Häußge 4a9b18582d Merge branch 'master' into staging/bugfix 2022-08-02 12:27:20 +02:00
Christian Clauss 5753ee3cfa ✏ Highlight branch names in PR template (#4573) 2022-08-01 11:41:55 +02:00
Christian Clauss c18a5046d5 ✏️ timelapse.rst: Fix typos (#4569) 2022-07-12 18:48:39 +01:00
Gina Häußge 2e1ec42c5b 👷‍♂️ Needs to run against pull_request_target 2022-06-23 10:50:06 +02:00
Gina Häußge 6bddada8c2 👷‍♂️ Add task labeling 2022-06-21 10:12:53 +02:00
Gina Häußge 008292ce60 Use org wide secret 2022-06-20 15:56:07 +02:00
Gina Häußge 01f24e6cea 👷‍♂️ Add issues/PRs to backlog automatically 2022-06-20 15:49:00 +02:00
Gina Häußge 53b9b61857 👷 Only trigger release jobs on main repo 2022-05-30 14:51:54 +02:00
Gina Häußge e2349b4565 👷 Ignore errors on Discord hook & e2e
e2e are too flaky, discord hook might be unconfigured in a fork.
2022-05-30 14:45:16 +02:00
Gina Häußge 422e3d2b66 🔖 staging/bugfix is now 1.8.2.dev 2022-05-24 12:25:17 +02:00
Gina Häußge 260a1aef11 🔖 Preparing release of 1.8.1 2022-05-24 10:55:31 +02:00
Gina Häußge 866c9a20d7 🐛 Fix a redirect loop on login
If guest/anonymous users where configured with read-only rights,
the login dialog would enter a redirect loop due to require_login_with
not recognizing anonymous use with permissions as valid.

Fixes #4516
2022-05-24 10:26:57 +02:00
Gina Häußge 77904a71b4 🔒️ Fix an XSS issue in the user/group delete confirmation
Requires admin rights to exploit in any way.
With OctoPrint 1.8.0 all cookies with credentials
are http-only and thus not targetable (to my
knowledge) by this.

CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N, Severity Low
2022-05-19 13:08:16 +02:00
Gina Häußge 89fbcfd214 🐛 Gracefully handle errors scanning /dev
Solves an issue with Octo4a on some Android devices.
2022-05-19 09:38:00 +02:00
Gina Häußge 26aac1701f 🔖 staging/bugfix is 1.8.1.dev 2022-05-19 09:25:03 +02:00
Gina Häußge f430257d70 Merge branch 'rc/maintenance' 2022-05-16 14:58:38 +02:00
Gina Häußge d2a9aaceda 🔖 Preparing release of 1.8.0 2022-05-16 14:55:05 +02:00
Gina Häußge 8ca327669c 🔒️ XSS in webcam stream URL test in Chrome
Apparently Chrome will happily create URL objects from
what is actually HTML tags. So now we will also
URI encode the stream URL prior to embedding in the page.
2022-05-12 18:58:16 +02:00
Gina Häußge d1fca86636 🥅 Better error handling 2022-05-12 10:58:08 +02:00
Gina Häußge 4d9e86ca0f 🐛 We also recognize webrtcs: for webcam streams
Thanks for the heads-up, @cp2004
2022-05-12 10:57:39 +02:00
Gina Häußge 6d259d7e6f 🔒️ Fix XSS in webcam stream test 2022-05-11 16:40:07 +02:00
Gina Häußge 5ef16773c8 🔒️ Escape requested user id
Fixes an XSS issue.
2022-05-11 13:03:40 +02:00
Gina Häußge 8087528e4a 🔒️ Sanitize and validate login redirect
Fixes an XSS and an open redirect issue.
2022-05-11 13:02:52 +02:00
Gina Häußge 700034d028 🔒️ Set remember_me cookie http only 2022-05-10 20:56:48 +02:00
Gina Häußge 885ca31168 👷‍♂️ Fix nightly merge
The action needed an upgrade due to a behaviour change in latest git.
2022-05-04 11:28:25 +02:00
Billy Richardson 64c21ba8f0 ✏️ Documentation spelling fixes (#4497) 2022-04-24 17:21:13 +01:00
Gina Häußge 53dbde2ef9 🔖 staging/maintenance is now 1.8.0rc6.dev 2022-04-12 16:21:41 +02:00
75 changed files with 1874 additions and 858 deletions

No files matched your search

+10 -10
View File
@@ -1,10 +1,10 @@
<!--
Thank you for your interest into contributing to OctoPrint, it's
Thank you for your interest in contributing to OctoPrint, it's
highly appreciated!
Please make sure you have read the "guidelines for contributing" as
linked just above this form, there's a section on Pull Requests in there
as well that contains important information.
as well which contains important information.
As a summary, please make sure you have ticked all points on this
checklist:
@@ -16,25 +16,25 @@ checklist:
made sure your changes don't interfere with current development by
talking it through with the maintainers, e.g. through a
Brainstorming ticket
* [ ] Your PR targets OctoPrint's devel branch if it's a completely
new feature, or maintenance if it's a bug fix or improvement of
* [ ] Your PR targets OctoPrint's `devel` branch if it's a completely
new feature, or `maintenance` if it's a bug fix or improvement of
existing functionality for the current stable version (no PRs
against master or anything else please)
against `master` or anything else please)
* [ ] Your PR was opened from a custom branch on your repository
(no PRs from your version of master, maintenance or devel please),
e.g. dev/my_new_feature or fix/my_bugfix
(no PRs from your version of `master`, `maintenance`, or `devel`
please), e.g. `dev/my_new_feature` or `fix/my_bugfix`
* [ ] Your PR only contains relevant changes: no unrelated files,
no dead code, ideally only one commit - rebase and squash your PR
if necessary!
* [ ] Your changes follow the existing coding style
* [ ] If your changes include style sheets: You have modified the
.less source files, not the .css files (those are generated with
lessc)
`.less` source files, not the `.css` files (those are generated
with `lessc`)
* [ ] You have tested your changes (please state how!) - ideally you
have added unit tests
* [ ] You have run the existing unit tests against your changes and
nothing broke
* [ ] You have added yourself to the AUTHORS.md file :)
* [ ] You have added yourself to the `AUTHORS.md` file :)
<!--
Describe your PR further using the template provided below. The more
+3
View File
@@ -1,5 +1,8 @@
accessControl:
salt: zXmvzI3uWuTLkSPOEfA2ZLwn3f3sGUNS
devel:
enableRateLimiter: false
enableCsrfProtection: false
plugins:
virtual_printer:
enabled: true
+20
View File
@@ -0,0 +1,20 @@
name: Add issues/PRs to backlog automatically
on:
issues:
types:
- opened
- transferred
pull_request_target:
types:
- opened
jobs:
add-to-project:
name: Add issue or PR to OctoPrint Backlog project
runs-on: ubuntu-latest
steps:
- uses: actions/add-to-project@main
with:
project-url: https://github.com/orgs/OctoPrint/projects/6
github-token: ${{ secrets.BACKLOG_PROJECT_ACCESS }}
+4 -3
View File
@@ -96,6 +96,7 @@ jobs:
name: 🧪 E2E tests
needs: build
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: ⬇ Checkout code
uses: actions/checkout@v2
@@ -141,7 +142,7 @@ jobs:
publish-on-testpypi:
name: 📦 Publish on TestPyPI
if: github.event_name == 'release'
if: github.event_name == 'release' && github.repository == 'OctoPrint/OctoPrint'
needs:
- pre-commit
- test-unit
@@ -163,7 +164,7 @@ jobs:
publish-on-pypi:
name: 📦 Publish tagged releases to PyPI
if: github.event_name == 'release'
if: github.event_name == 'release' && github.repository == 'OctoPrint/OctoPrint'
needs: publish-on-testpypi
runs-on: ubuntu-latest
steps:
@@ -179,7 +180,7 @@ jobs:
notify-custopizer-build:
name: 📧 Notify OctoPi-UpToDate
if: github.event_name == 'release'
if: github.event_name == 'release' && github.repository == 'OctoPrint/OctoPrint'
needs: publish-on-pypi
runs-on: ubuntu-latest
steps:
+6 -1
View File
@@ -28,6 +28,11 @@ jobs:
labels = labels.filter(label => label !== 'triage');
setLabels = true;
}
if (context.payload.issue.title.match(/\[task\]/i)) {
labels.push('task');
labels = labels.filter(label => label !== 'triage');
setLabels = true;
}
if (labels.length === 0) {
labels.push('triage');
@@ -37,7 +42,7 @@ jobs:
}
case 'closed': {
if (labels.includes('bug') || labels.includes('request') || labels.includes('improvement')) {
if (labels.includes('bug') || labels.includes('request') || labels.includes('improvement') || labels.includes('task')) {
labels.push('done');
setLabels = true;
}
+2 -2
View File
@@ -15,7 +15,7 @@ jobs:
fetch-depth: 0
- name: 🔀 Merge master into maintenance
uses: robotology/gh-action-nightly-merge@v1.3.2
uses: robotology/gh-action-nightly-merge@v1.3.3
with:
stable_branch: "master"
development_branch: "maintenance"
@@ -24,7 +24,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 🔀 Merge maintenance into devel
uses: robotology/gh-action-nightly-merge@v1.3.2
uses: robotology/gh-action-nightly-merge@v1.3.3
with:
stable_branch: "maintenance"
development_branch: "devel"
+4
View File
@@ -31,12 +31,14 @@ jobs:
run: |
pip install .
- name: 📧 Discord success notification
continue-on-error: true
env:
DISCORD_WEBHOOK: ${{ secrets.discord_webhook }}
uses: Ilshidur/action-discord@master
with:
args: "☑️ Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ matrix.branch }}` was successful"
- name: 📧 Discord failure notification
continue-on-error: true
if: failure()
env:
DISCORD_WEBHOOK: ${{ secrets.discord_webhook }}
@@ -65,12 +67,14 @@ jobs:
run: |
pip install https://github.com/OctoPrint/OctoPrint/archive/${{ steps.latest.outputs.release }}.zip
- name: 📧 Discord success notification
continue-on-error: true
env:
DISCORD_WEBHOOK: ${{ secrets.discord_webhook }}
uses: Ilshidur/action-discord@master
with:
args: "☑️ Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ steps.latest.outputs.release }}` was successful"
- name: 📧 Discord failure notification
continue-on-error: true
if: failure()
env:
DISCORD_WEBHOOK: ${{ secrets.discord_webhook }}
+6 -6
View File
@@ -24,15 +24,15 @@ 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.7.4 bugfix release
# staging/bugfix is the branch for preparation of the 1.8.3 bugfix release
# so are any bug/... branches
staging/bugfix 1.7.4 59cbfadf8922d85b9df40f8d0173e8c21724c3b8 pep440-dev
bug/.* 1.7.4 59cbfadf8922d85b9df40f8d0173e8c21724c3b8 pep440-dev
staging/bugfix 1.8.3 87f4a4e8c967dab147beb6213cbf61cca32bec62 pep440-dev
bug/.* 1.8.3 87f4a4e8c967dab147beb6213cbf61cca32bec62 pep440-dev
# staging/maintenance is currently the branch for preparation of 1.8.0rc4
# staging/maintenance is currently the branch for preparation of 1.8.0rc6
# so is regressionfix/...
staging/maintenance 1.8.0rc5 c5b095a8b905d759c84acab5e8a65ed3170d124c pep440-dev
regressionfix/.* 1.8.0rc5 c5b095a8b905d759c84acab5e8a65ed3170d124c pep440-dev
staging/maintenance 1.8.0rc6 45598764e6c7f6257de87a98d15964209ddc9e09 pep440-dev
regressionfix/.* 1.8.0rc6 45598764e6c7f6257de87a98d15964209ddc9e09 pep440-dev
# staging/devel is currently inactive (but has the 1.4.1rc4 namespace)
staging/devel 1.4.1rc4 650d54d1885409fa1d411eb54b9e8c7ff428910f pep440-dev
+8 -18
View File
@@ -8,37 +8,28 @@ thanks to everyone who contributed!
* 3D-TECH
* 3DPrinterOS
* Al Mucci
* Arnljot Arntsen
* Artillery 3D
* Ash King
* BigTreeTech
* Boris Hussein
* Brad Jackson
* BuildBee
* Calvin Vette
* Christian Petropolis
* Christian Wolf
* Christian Würthner
* Christoph Sigrist
* Craig Parker
* Creality3D
* David Bounds
* DeltaMaker 3D Printers
* Dennis Breining
* Douglas Floyd
* Dr. Frank Wester
* Eric Betts
* Ernesto Martinez
* Franziska Kunsmann
* George Robles
* Greg Holloway
* Hog Duske
* Itay Shem-tov
* James Mackay
* Jeff Green
* Jeff Moe
* jeffiel
* Jeremy Cole
* Joshua Wills
* Julian Melo
* Justin Kaufman
* Kaile Riser
@@ -50,13 +41,15 @@ thanks to everyone who contributed!
* Lefteris Lertas
* LulzBot
* Makespace Madrid
* Mark Greenwald
* Mark Walker
* Matt Van Itallie
* Michael Aumock
* Mike Kershaw
* Miles Flavel
* Mosaic Manufacturing
* Norman Jaffe
* Obico
* Ory Weaver
* Peopoly
* Pete Barnwell
* Raise3D
@@ -66,16 +59,13 @@ thanks to everyone who contributed!
* Richard Michaud
* Richard Stocks
* Robert Gusek
* Ronald Griehsler
* Sean Jensen-Grey
* Sebastien Andrivet
* SimplyPrint
* Stefan Krister
* Steve Dougherty
* Steve Thompson
* TH3D
* The Spaghetti Detective
* TJ Horner
* Trent Shumay
* Ulrich Kempken
* Yehuda Katz
and 2307 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)!
and 2188 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)!
+2 -2
View File
@@ -2,11 +2,11 @@
[jinja2: src/octoprint/templates/**.jinja2]
silent=false
extensions=jinja2.ext.autoescape, jinja2.ext.with_, webassets.ext.jinja2.AssetsExtension, jinja2.ext.do, octoprint.util.jinja.trycatch
extensions=webassets.ext.jinja2.AssetsExtension, jinja2.ext.do, octoprint.util.jinja.trycatch
[jinja2: src/octoprint/plugins/**.jinja2]
silent=false
extensions=jinja2.ext.autoescape, jinja2.ext.with_, webassets.ext.jinja2.AssetsExtension, jinja2.ext.do, octoprint.util.jinja.trycatch
extensions=webassets.ext.jinja2.AssetsExtension, jinja2.ext.do, octoprint.util.jinja.trycatch
[javascript: src/octoprint/static/js/app/**.js]
extract_messages = gettext, ngettext
+10 -4
View File
@@ -238,16 +238,22 @@ Change a user's password
Changes the password of a user.
Expects a JSON object with a single property ``password`` as request body.
Expects a JSON object with a property ``password`` containing the new password as
request body. Without the ``SETTINGS`` permission, an additional property ``current``
is also required to be set on the request body, containing the user's current password.
Requires the ``SETTINGS`` permission or to be logged in as the user.
Requires the ``SETTINGS`` permission or to be logged in as the user. Note that ``current``
will be evaluated even in presence of the ``SETTINGS`` permission, if set.
:param username: Name of the user to change the password for
:json password: The new password to set
:json current: The current password
:status 200: No error
:status 400: If the request doesn't contain a ``password`` property or the request
:status 400: If the request doesn't contain a ``password`` property, doesn't
contain a ``current`` property even though required, or the request
is otherwise invalid
:status 403: No admin rights and not logged in as the user
:status 403: No admin rights, not logged in as the user or a current password
mismatch
:status 404: The user is unknown
.. _sec-api-access-users-settings-get:
+1 -1
View File
@@ -649,7 +649,7 @@ Permission record
* - ``dangerous``
- 1
- boolean
- Whether the permission should be considered dangerous due to a high reponsibility (true) or not (false).
- Whether the permission should be considered dangerous due to a high responsibility (true) or not (false).
* - ``default_groups``
- 1
- List of string
+24 -1
View File
@@ -135,7 +135,7 @@ check the corresponding checkbox in the API settings dialog.
.. warning::
This means any browser page can send requests to the OctoPrint API. Authorization is still required however.
This means any browser page can send requests to the OctoPrint API. Authorization via an API-Key is still required however.
If CORS is not enabled you will get errors like the following::
@@ -151,6 +151,29 @@ If CORS is not enabled you will get errors like the following::
the login mechanism (or reusing an existing login session). When accessing OctoPrint
via CORS, you'll therefore always need to use an API key.
.. _sec-api-general-csrf:
CSRF Protection
===============
.. versionadded:: 1.8.3
To protect OctoPrint against `CSRF attacks <https://owasp.org/www-community/attacks/csrf>`_ against the non CORS affected upload endpoints, in case of browser session based authorization the API
is protected using the `Double Submit Cookie mitigation strategy <https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html#double-submit-cookie>`_.
On first page load of the UI, the login page or the recovery page, a ``csrf_token_P<port>`` or ``csrf_token_P<port>_R<root>`` cookie is set
that can be read via client-side JavaScript. All requests towards the API that are not ``GET``, ``HEAD`` or ``OPTIONS``
and rely on cookie based authorization (so not on an API key but rather an active login session) are required
to send both the ``csrf_token`` cookie as well as an ``X-CSRF-Token`` header containing its value.
.. note::
If you use the :ref:`JS Client library <sec-jsclientlib>`, this will take care of doing the needful for you. Any code in the *Core UI* calling
API functions through ``$.ajax`` or ``$.get`` or ``$.post`` will also take care of this for you. If you use another library for
accessing OctoPrint's API in a browser context, you'll need to make sure to send the ``X-CSRF-Token`` header yourself. Examples for
several JS frameworks can be found in the `OWASP cheatsheet on CSRF attacks <https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html#javascript-guidance-for-auto-inclusion-of-csrf-tokens-as-an-ajax-request-header>`_.
Take a look at the implementations of ``OctoPrintClient.getCookie`` and ``OctoPrintClient.getHeaders`` in ``src/octoprint/static/js/client/base.js``
for details on how to retrieve the cookie value and how to construct the header.
.. _sec-api-general-login:
Login
+2 -2
View File
@@ -76,7 +76,7 @@ Change current timelapse config
.. http:post:: /api/timelapse
Save a new :ref:`timelapse configuration <sec-api-timelapse-datamodel-config>` to use for the next print. Set the optional ``save`` flag in the
configuration to ``true`` in order to make the new configuration persist accross restarts.
configuration to ``true`` in order to make the new configuration persist across restarts.
The configuration is expected as the request body.
@@ -220,7 +220,7 @@ Timelapse configuration
* - ``save``
- 1
- bool
- Optional flag to be included when when saving a configuration to make the configuration persist accross restarts
- Optional flag to be included when when saving a configuration to make the configuration persist across restarts
Further fields are timelapse type specific, see below for details.
+2 -6
View File
@@ -72,10 +72,6 @@ Use the following settings to enable access control:
# If a remote user is not found, add them. Use this only if all users from the remote system can use OctoPrint.
addRemoteUsers: false
# Secret salt used for password hashing, DO NOT TOUCH. If changed you will no longer be able to log in with your
# existing accounts.
salt: someSecretSalt
.. _sec-configuration-config_yaml-api:
API
@@ -451,8 +447,8 @@ Use the following settings to enable or disable OctoPrint features:
# whether G90/G91 also influence absolute/relative mode of extruders
g90InfluencesExtruder: false
# Replace all special characters and spaces with text equivalent to make them univerally compatible.
# Replace all special characters and spaces with text equivalent to make them universally compatible.
# Most OS filesystems work fine with unicode characters, but just in case you can revert to the
# older behaviour by setting this to true.
enforceReallyUniversalFilenames: false
+1 -1
View File
@@ -216,7 +216,7 @@ There many configuration options via ``config.yaml`` for the virtual printer tha
# Enable virtual EEPROM
# If enabled, a file `eeprom.json` will be created in the plugin data folder
# to enable settings persistence across connections. Enables M500/1/2/4 commmands
# to enable settings persistence across connections. Enables M500/1/2/4 commands
# And a selection of other settings commands. Responses modeled on Marlin 2.0
enable_eeprom: true
+17 -4
View File
@@ -133,7 +133,7 @@ Example: Your PC has an IP address of ``192.168.23.42`` and a subnet mask of
The easy way: Using the OctoPrint-AutoLoginConfig plugin
........................................................
The easist way to configure AutoLogin is to install the
The easiest way to configure AutoLogin is to install the
`OctoPrint-AutoLoginConfig plugin <https://plugins.octoprint.org/plugins/autologin_config/>`_
via the plugin manager.
@@ -165,7 +165,7 @@ further down there's also a dedicated list of steps for OctoPi specifically.
1. Shutdown OctoPrint
2. Make a backup of your config.yaml
3. Open it in a text editor (e.g. nano). Right at the very top it'll say something like
3. Open it in a text editor (e.g. nano). Look if right at the very top it says something like
this:
.. code-block:: yaml
@@ -173,7 +173,7 @@ further down there's also a dedicated list of steps for OctoPi specifically.
accessControl:
salt: aabbccddee1234523452345
Edit this, adding lines so it looks like this (making absolutely sure not to touch the
If so, edit this, adding lines so it looks like this (making absolutely sure not to touch the
salt line):
.. code-block:: yaml
@@ -187,6 +187,19 @@ further down there's also a dedicated list of steps for OctoPi specifically.
- "::1/128"
- "<yourAddressRange>"
Otherwise, add the following lines to the very top of the file, making sure to keep the
indentation:
.. code-block:: yaml
accessControl:
autologinLocal: true
autologinAs: "<yourUsername>"
localNetworks:
- "127.0.0.0/8"
- "::1/128"
- "<yourAddressRange>"
4. Restart OctoPrint, check that everything works.
This will automatically log you in as the user you specified whenver you connect to
@@ -200,7 +213,7 @@ the following commands:
1. ``sudo service octoprint stop``
2. ``cp ~/.octoprint/config.yaml ~/.octoprint/config.yaml.back``
3. ``nano ~/.octoprint/config.yaml, make the edits as described above``
3. ``nano ~/.octoprint/config.yaml``, make the edits as described above
4. ``sudo service octoprint start``
If something went wrong, you can restore the config backup with
+27 -3
View File
@@ -74,15 +74,39 @@
:returns string: The base url to use to access OctoPrint's API.
.. js:function:: OctoPrintClient.getRequestHeaders(additional)
.. js:function:: OctoPrintClient.getCookie(name)
.. versionadded:: 1.8.3
Returns the value of the cookie with name ``name``. The port based cookie suffix and if
necessary also the script root based suffix will be automatically applied to the ``name``
prior to looking up the value.
:return string: The value of the cookie, if set & accessible, else an empty string.
.. js:function:: OctoPrintClient.getRequestHeaders(method, additional, opts)
.. versionchanged:: 1.8.3
Generates a dictionary of HTTP headers to use for API requests against OctoPrint with all
necessary headers and any additionally provided ones.
At the moment this entails setting the ``X-Api-Key`` header based on the current value of
``OctoPrint.options.apikey`` at a minimum.
``OctoPrint.options.apikey``, if set. Otherwise, for non-cross-domain requests targeting
methods other than ``GET``, ``HEAD`` or ``OPTIONS``, the current CSRF token is read from the
associated cookie and set as ``X-CSRF-Token``.
:param object additional: Additional headers to add to the request.
.. note::
Up until OctoPrint 1.8.3, this method's signature consisted only of the ``additional``
parameter. It has been changed in a backward compatible way so that calling it with the
first parameter being the set of additional headers will still work. This mode of operation
is deprecated however and will be removed in a future version.
A warning will be logged to the debug console accordingly.
:param str method: Method of the request for which to set headers
:param object additional: Additional headers to add to the request, optional.
:param object opts: Additional opts passed to the request, used to read cross domain setting, optional.
:returns object: HTTP headers to use for requests.
.. js:function:: OctoPrintClient.ajax(method, url, opts)
+1 -1
View File
@@ -1938,7 +1938,7 @@ octoprint.timelapse.capture.post
Perform specific actions after capturing a timelapse frame.
``filename`` will be the path of the frame that should have been saved.
``sucesss`` indicates whether the capture was successful or not.
``success`` indicates whether the capture was successful or not.
:param str filename: The path of the frame that should have been saved.
:param boolean success: Indicates whether the capture was successful or not.
+1 -1
View File
@@ -336,7 +336,7 @@ As a summary, follow this checklist to migrate your plugin to be compatible to b
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
* Thorougly test your plugin under Python 3. Pay special attention to any kind of string handling issues, integer
* Thoroughly test your plugin under Python 3. Pay special attention to any kind of string handling issues, integer
division, relative imports from your plugin package and how the results of ``map``, ``filter`` and ``zip`` are
used in your code, as those have proven to be the biggest issues during past migrations.
* Once everything works under both Python versions and you've prepared a new release of your plugin (don't forget to
+4 -1
View File
@@ -34,6 +34,7 @@ bundled_plugins = [
"OctoPrint-PiSupport>=2022.3.28",
]
core_deps = [
"argon2_cffi>=21.3.0,<22",
"cachelib>=0.2,<0.3",
"Click>=8.0.3,<9",
"colorlog>=6,<7",
@@ -43,12 +44,14 @@ core_deps = [
"Flask-Assets>=2.0,<3",
"Flask-Babel>=2.0,<3",
"Flask-Login>=0.5,<0.6", # flask-login doesn't use semver & breaks stuff on minor version increases
"flask>=2,<3",
"Flask-Limiter>=2.6,<3",
"flask>=2.1,<2.2", # flask 2.2 requires werkzeug 2.2+
"frozendict>=2.0,<3",
"future>=0.18.2,<1", # not really needed anymore, but leaving in for py2/3 compat plugins
"markdown>=3.2.2,<4",
"netaddr>=0.8,<0.9", # changelog hints at breaking changes on minor version increases
"netifaces>=0.11,<1",
"passlib>=1.7.4,<2",
"pathvalidate>=2.4.1,<3",
"pkginfo>=1.7.1,<2",
"psutil>=5.8,<6",
+103 -59
View File
@@ -4,6 +4,7 @@ __copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms
import hashlib
import logging
import os
import shutil
import time
import uuid
@@ -18,6 +19,11 @@ from octoprint.util import atomic_write, deprecated, generate_api_key
from octoprint.util import get_fully_qualified_classname as fqcn
from octoprint.util import to_bytes, yaml
try:
from passlib.hash import argon2 as passwordhash
except ImportError:
from passlib.hash import pbkdf2_sha256 as passwordhash
class UserManager(GroupChangeListener):
def __init__(self, group_manager, settings=None):
@@ -127,29 +133,18 @@ class UserManager(GroupChangeListener):
for session, user in list(self._session_users_by_session.items()):
if not isinstance(user, SessionUser):
continue
if user.created + (24 * 60 * 60) < time.monotonic():
if user.touched + (15 * 60) < time.monotonic():
self._logger.info(
"Cleaning up user session {} for user {}".format(
session, user.get_id()
)
f"Cleaning up user session {session} for user {user.get_id()}"
)
self.logout_user(user, stale=True)
@staticmethod
def create_password_hash(password, salt=None, settings=None):
if not salt:
if settings is None:
settings = s()
salt = settings.get(["accessControl", "salt"])
if salt is None:
import string
from random import choice
chars = string.ascii_lowercase + string.ascii_uppercase + string.digits
salt = "".join(choice(chars) for _ in range(32))
settings.set(["accessControl", "salt"], salt)
settings.save()
def create_password_hash(password, *args, **kwargs):
return passwordhash.hash(password)
@staticmethod
def create_legacy_password_hash(password, salt):
return hashlib.sha512(
to_bytes(password, encoding="utf-8", errors="replace") + to_bytes(salt)
).hexdigest()
@@ -159,23 +154,32 @@ class UserManager(GroupChangeListener):
if not user:
return False
hash = UserManager.create_password_hash(password, settings=self._settings)
if user.check_password(hash):
# new hash matches, correct password
if user.check_password(password):
# password matches, correct password
return True
else:
# new hash doesn't match, but maybe the old one does, so check that!
oldHash = UserManager.create_password_hash(
password, salt="mvBUTvwzBzD3yPwvnJ4E4tXNf3CGJvvW", settings=self._settings
# new hash doesn't match, check legacy hash
salt = self._settings.get(["accessControl"], asdict=True, merged=True).get(
"salt", None
)
if user.check_password(oldHash):
# old hash matches, we migrate the stored password hash to the new one and return True since it's the correct password
if salt is None:
return False
legacy_hash = UserManager.create_legacy_password_hash(password, salt)
if user.check_password(legacy_hash, legacy=True):
# legacy hash matches, we migrate the stored password hash to the new one and return True since it's the correct password
self.change_user_password(username, password)
return True
else:
# old hash doesn't match either, wrong password
# legacy hash doesn't match either, wrong password
return False
def cleanup_legacy_hashes(self):
pass
def signature_key_for_user(self, username, salt=None):
return self.create_password_hash(username, salt=salt)
def add_user(self, username, password, active, permissions, groups, overwrite=False):
pass
@@ -227,21 +231,28 @@ class UserManager(GroupChangeListener):
del self._sessionids_by_userid[username]
def validate_user_session(self, userid, session):
self._cleanup_sessions()
if session in self._session_users_by_session:
user = self._session_users_by_session[session]
return userid == user.get_id()
return False
def find_user(self, userid=None, session=None):
def find_user(self, userid=None, session=None, fresh=False):
self._cleanup_sessions()
if session is not None and session in self._session_users_by_session:
user = self._session_users_by_session[session]
if userid is None or userid == user.get_id():
user.touch()
return user
return None
def find_sessions_for(self, matcher):
self._cleanup_sessions()
result = []
for user in self.get_all_users():
if matcher(user):
@@ -249,7 +260,9 @@ class UserManager(GroupChangeListener):
session_ids = self._sessionids_by_userid[user.get_id()]
for session_id in session_ids:
try:
result.append(self._session_users_by_session[session_id])
session_user = self._session_users_by_session[session_id]
session_user.touch()
result.append(session_user)
except KeyError:
# unknown session after all
continue
@@ -339,23 +352,6 @@ class UserManager(GroupChangeListener):
# TODO: Remove deprecated methods in OctoPrint 1.5.0
@staticmethod
def createPasswordHash(*args, **kwargs):
"""
.. deprecated: 1.4.0
Replaced by :func:`~UserManager.create_password_hash`
"""
# we can't use the deprecated decorator here since this method is static
import warnings
warnings.warn(
"createPasswordHash has been renamed to create_password_hash",
DeprecationWarning,
stacklevel=2,
)
return UserManager.create_password_hash(*args, **kwargs)
@deprecated(
"changeUserRoles has been replaced by change_user_permissions",
includedoc="Replaced by :func:`change_user_permissions`",
@@ -489,6 +485,8 @@ class LoginStatusListener:
class FilebasedUserManager(UserManager):
FILE_VERSION = 2
def __init__(self, group_manager, path=None, settings=None):
UserManager.__init__(self, group_manager, settings=settings)
@@ -520,6 +518,17 @@ class FilebasedUserManager(UserManager):
)
raise CorruptUserStorage()
version = data.pop("_version", 1)
if version != self.FILE_VERSION:
self._logger.info(
f"Making a backup of the users.yaml file before migrating from version {version} to {self.FILE_VERSION}"
)
shutil.copy(
self._userfile,
os.path.splitext(self._userfile)[0] + f".v{version}.yaml",
)
self._dirty = True
for name, attributes in data.items():
if not isinstance(attributes, dict):
continue
@@ -567,6 +576,8 @@ class FilebasedUserManager(UserManager):
if self._dirty:
self._save()
self.cleanup_legacy_hashes()
self._customized = True
else:
self._customized = False
@@ -575,7 +586,7 @@ class FilebasedUserManager(UserManager):
if not self._dirty and not force:
return
data = {}
data = {"_version": self.FILE_VERSION}
for name, user in self._users.items():
if not user or not isinstance(user, User):
continue
@@ -618,11 +629,11 @@ class FilebasedUserManager(UserManager):
apikey=None,
overwrite=False,
):
if not permissions:
if permissions is None:
permissions = []
permissions = self._to_permissions(*permissions)
if not groups:
if groups is None:
groups = self._group_manager.default_groups
groups = self._to_groups(*groups)
@@ -773,12 +784,40 @@ class FilebasedUserManager(UserManager):
if username not in self._users:
raise UnknownUser(username)
passwordHash = UserManager.create_password_hash(password, settings=self._settings)
user = self._users[username]
if user._passwordHash != passwordHash:
user._passwordHash = passwordHash
self._dirty = True
self._save()
user._passwordHash = UserManager.create_password_hash(password)
self._dirty = True
self._save()
self._trigger_on_user_modified(user)
def cleanup_legacy_hashes(self):
no_legacy = all(
map(
lambda u: u._passwordHash.startswith("$argon2id$")
or u._passwordHash.startswith("$pbkdf2-"),
self._users.values(),
)
)
salt = self._settings.get(["accessControl"], asdict=True, merged=True).get(
"salt", None
)
if no_legacy and salt:
# no legacy hashs left, kill salt
self._settings.backup("cleanup_legacy_hashes")
self._settings.remove(["accessControl", "salt"])
self._settings.save()
def signature_key_for_user(self, username, salt=None):
if username not in self._users:
raise UnknownUser(username)
user = self._users[username]
return hashlib.sha512(
to_bytes(username + user._passwordHash, encoding="utf-8", errors="replace")
+ to_bytes(salt)
).hexdigest()
def change_user_setting(self, username, key, value):
if username not in self._users:
@@ -845,10 +884,10 @@ class FilebasedUserManager(UserManager):
self._dirty = True
self._save()
def find_user(self, userid=None, apikey=None, session=None):
def find_user(self, userid=None, apikey=None, session=None, fresh=False):
user = UserManager.find_user(self, userid=userid, session=session)
if user is not None:
if user is not None or (session and fresh):
return user
if userid is not None:
@@ -1126,8 +1165,14 @@ class User(UserMixin):
"roles": self._roles,
}
def check_password(self, passwordHash):
return self._passwordHash == passwordHash
def check_password(self, password, legacy=False):
if legacy:
return self._passwordHash == password
try:
return passwordhash.verify(password, self._passwordHash)
except ValueError:
return False
def get_id(self):
return self.get_name()
@@ -1383,8 +1428,7 @@ class SessionUser(wrapt.ObjectProxy):
wrapt.ObjectProxy.__init__(self, user)
self._self_session = "".join("%02X" % z for z in bytes(uuid.uuid4().bytes))
self._self_created = time.monotonic()
self._self_touched = time.monotonic()
self._self_created = self._self_touched = time.monotonic()
@property
def session(self):
+12
View File
@@ -954,6 +954,12 @@ class LocalFileStorage(StorageInterface):
source, destination, must_not_equal=True
)
if not octoprint.filemanager.valid_file_type(destination_data["name"]):
raise StorageError(
f"{destination_data['name']} is an unrecognized file type",
code=StorageError.INVALID_FILE,
)
try:
shutil.copy2(source_data["fullpath"], destination_data["fullpath"])
except Exception as e:
@@ -983,6 +989,12 @@ class LocalFileStorage(StorageInterface):
source, destination
)
if not octoprint.filemanager.valid_file_type(destination_data["name"]):
raise StorageError(
f"{destination_data['name']} is an unrecognized file type",
code=StorageError.INVALID_FILE,
)
# only a display rename? Update that and bail early
if source_data["fullpath"] == destination_data["fullpath"]:
self._set_display_metadata(destination_data)
+86 -4
View File
@@ -1352,8 +1352,39 @@ class BlueprintPlugin(OctoPrintPlugin, RestartNeedingPlugin):
flask.url_for("plugin.myblueprintplugin.myEcho") # will return "/plugin/myblueprintplugin/echo"
.. warning::
As of OctoPrint 1.8.3, endpoints provided through a ``BlueprintPlugin`` do **not** automatically fall under
OctoPrint's :ref:`CSRF protection <sec-api-general-csrf>`, for reasons of backwards compatibility. There will be a short grace period before this changes. You
can and should however already opt into CSRF protection for your endpoints by implementing ``is_blueprint_csrf_protected``
and returning ``True`` from it. You can exempt certain endpoints from CSRF protection by decorating them with
``@octoprint.plugin.BlueprintPlugin.csrf_exempt``.
.. code-block:: python
class MyPlugin(octoprint.plugin.BlueprintPlugin):
@octoprint.plugin.BlueprintPlugin.route("/hello_world", methods=["GET"])
def hello_world(self):
# This is a GET request and thus not subject to CSRF protection
return "Hello world!"
@octoprint.plugin.BlueprintPlugin.route("/hello_you", methods=["POST"])
def hello_you(self):
# This is a POST request and thus subject to CSRF protection. It is not exempt.
return "Hello you!"
@octoprint.plugin.BlueprintPlugin.route("/hello_me", methods=["POST"])
@octoprint.plugin.BlueprintPlugin.csrf_exempt()
def hello_me(self):
# This is a POST request and thus subject to CSRF protection, but this one is exempt.
return "Hello me!"
def is_blueprint_csrf_protected(self):
return True
``BlueprintPlugin`` implements :class:`~octoprint.plugins.core.RestartNeedingPlugin`.
.. versionchanged:: 1.8.3
"""
@staticmethod
@@ -1372,7 +1403,7 @@ class BlueprintPlugin(OctoPrintPlugin, RestartNeedingPlugin):
def decorator(f):
# We attach the decorator parameters directly to the function object, because that's the only place
# we can access right now.
# This neat little trick was adapter from the Flask-Classy project: https://pythonhosted.org/Flask-Classy/
# This neat little trick was adapted from the Flask-Classy project: https://pythonhosted.org/Flask-Classy/
if not hasattr(f, "_blueprint_rules") or f._blueprint_rules is None:
f._blueprint_rules = defaultdict(list)
f._blueprint_rules[f.__name__].append((rule, options))
@@ -1405,6 +1436,27 @@ class BlueprintPlugin(OctoPrintPlugin, RestartNeedingPlugin):
return decorator
@staticmethod
def csrf_exempt():
"""
A decorator to mark a view method in your BlueprintPlugin as exempt from :ref:`CSRF protection <sec-api-general-csrf>`. This makes sense
if you offer an authenticated API for a certain workflow (see e.g. the bundled appkeys plugin) but in most
cases should not be needed.
.. versionadded:: 1.8.3
"""
def decorator(f):
if (
not hasattr(f, "_blueprint_csrf_exempt")
or f._blueprint_csrf_exempt is None
):
f._blueprint_csrf_exempt = set()
f._blueprint_csrf_exempt.add(f.__name__)
return f
return decorator
# noinspection PyProtectedMember
def get_blueprint(self):
"""
@@ -1422,6 +1474,8 @@ class BlueprintPlugin(OctoPrintPlugin, RestartNeedingPlugin):
import flask
from octoprint.server.util.csrf import add_exempt_view
kwargs = self.get_blueprint_kwargs()
blueprint = flask.Blueprint(self._identifier, self._identifier, **kwargs)
@@ -1435,9 +1489,14 @@ class BlueprintPlugin(OctoPrintPlugin, RestartNeedingPlugin):
# this attribute was annotated with our @route decorator
for blueprint_rule in f._blueprint_rules[member]:
rule, options = blueprint_rule
blueprint.add_url_rule(
rule, options.pop("endpoint", f.__name__), view_func=f, **options
)
endpoint = options.pop("endpoint", f.__name__)
blueprint.add_url_rule(rule, endpoint, view_func=f, **options)
if (
hasattr(f, "_blueprint_csrf_exempt")
and member in f._blueprint_csrf_exempt
):
add_exempt_view(f"plugin.{self._identifier}.{endpoint}")
if (
hasattr(f, "_blueprint_error_handler")
@@ -1486,6 +1545,29 @@ class BlueprintPlugin(OctoPrintPlugin, RestartNeedingPlugin):
"""
return True
# noinspection PyMethodMayBeStatic
def is_blueprint_csrf_protected(self):
"""
Whether a blueprint's endpoints are :ref:`CSRF protected <sec-api-general-csrf>`. For now, this defaults to ``False`` to leave it up to
plugins to decide which endpoints *should* be protected. Long term, this will default to ``True`` and hence
enforce protection unless a plugin opts out by returning False here.
If you do not override this method in your mixin implementation, a warning will be logged to the console
to alert you of the requirement to make a decision here and to not rely on the default implementation, due to the
forthcoming change in implemented default behaviour.
.. versionadded:: 1.8.3
"""
self._logger.warning(
"The Blueprint of this plugin is relying on the default implementation of "
"is_blueprint_csrf_protected (newly added in OctoPrint 1.8.3), which in a future version will "
"be switched from False to True for security reasons. Plugin authors should ensure they explicitly "
"declare the CSRF protection status in their BlueprintPlugin mixin implementation. "
"Recommendation is to enable CSRF protection and exempt views that must not use it with the "
"octoprint.plugin.BlueprintPlugin.csrf_exempt decorator."
)
return False
# noinspection PyMethodMayBeStatic
def get_blueprint_api_prefixes(self):
"""
@@ -291,6 +291,9 @@ class AnnouncementPlugin(
def is_blueprint_protected(self):
return False
def is_blueprint_csrf_protected(self):
return True
##~~ EventHandlerPlugin
def on_event(self, event, payload):
+6 -2
View File
@@ -161,6 +161,7 @@ class AppKeysPlugin(
return NO_CONTENT
@octoprint.plugin.BlueprintPlugin.route("/request", methods=["POST"])
@octoprint.plugin.BlueprintPlugin.csrf_exempt()
@no_firstrun_access
def handle_request(self):
data = flask.request.json
@@ -196,7 +197,7 @@ class AppKeysPlugin(
)
return response
@octoprint.plugin.BlueprintPlugin.route("/request/<app_token>")
@octoprint.plugin.BlueprintPlugin.route("/request/<app_token>", methods=["GET"])
@no_firstrun_access
def handle_decision_poll(self, app_token):
result = self._get_pending_by_app_token(app_token)
@@ -214,7 +215,7 @@ class AppKeysPlugin(
return flask.abort(404)
@octoprint.plugin.BlueprintPlugin.route("/auth/<app_token>")
@octoprint.plugin.BlueprintPlugin.route("/auth/<app_token>", methods=["GET"])
@no_firstrun_access
def handle_auth_dialog(self, app_token):
user_id = current_user.get_name()
@@ -284,6 +285,9 @@ class AppKeysPlugin(
def is_blueprint_protected(self):
return False # No API key required to request API access
def is_blueprint_csrf_protected(self):
return True # protect anything that isn't explicitly marked as exempt
##~~ SimpleApiPlugin mixin
def get_api_commands(self):
+27 -7
View File
@@ -356,6 +356,9 @@ class BackupPlugin(
def is_blueprint_protected(self):
return False
def is_blueprint_csrf_protected(self):
return True
##~~ WizardPlugin
def is_wizard_required(self):
@@ -370,7 +373,7 @@ class BackupPlugin(
def route_hook(self, *args, **kwargs):
from octoprint.server import app
from octoprint.server.util.flask import admin_validator
from octoprint.server.util.flask import permission_validator
from octoprint.server.util.tornado import (
LargeResponseHandler,
access_validation_factory,
@@ -386,9 +389,15 @@ class BackupPlugin(
"path": self.get_plugin_data_folder(),
"as_attachment": True,
"path_validation": path_validation_factory(
lambda path: not is_hidden_path(path), status_code=404
lambda path: not is_hidden_path(path)
and self._match_backup_filename(
os.path.basename(path), self._settings
),
status_code=404,
),
"access_validation": access_validation_factory(
app, permission_validator, Permissions.PLUGIN_BACKUP_ACCESS
),
"access_validation": access_validation_factory(app, admin_validator),
},
)
]
@@ -1359,14 +1368,25 @@ class BackupPlugin(
@classmethod
def _build_backup_filename(cls, settings):
backup_prefix = cls._get_backup_prefix(settings)
return "{}-backup-{}.zip".format(
backup_prefix, time.strftime(BACKUP_DATE_TIME_FMT)
)
@classmethod
def _match_backup_filename(cls, path, settings):
import re
backup_prefix = cls._get_backup_prefix(settings)
return re.match(re.escape(backup_prefix) + r"-backup-\d{8}-\d{6}.zip", path)
@classmethod
def _get_backup_prefix(cls, settings):
if settings.global_get(["appearance", "name"]) == "":
backup_prefix = "octoprint"
else:
backup_prefix = settings.global_get(["appearance", "name"])
backup_prefix = sanitize(backup_prefix)
return "{}-backup-{}.zip".format(
backup_prefix, time.strftime(BACKUP_DATE_TIME_FMT)
)
return sanitize(backup_prefix)
@classmethod
def _restore_supported(cls, settings):
@@ -40,7 +40,6 @@ $(function () {
dataType: "json",
maxNumberOfFiles: 1,
autoUpload: false,
headers: OctoPrint.getRequestHeaders(),
add: function (e, data) {
if (data.files.length === 0) {
// no files? ignore
@@ -74,6 +74,11 @@ class CoreWizardPlugin(
else:
return {}
# ~~ BlueprintPlugin API
def is_blueprint_csrf_protected(self):
return True
# ~~ WizardPlugin API
def is_wizard_required(self):
@@ -134,6 +134,9 @@ class DiscoveryPlugin(
def is_blueprint_protected(self):
return False
def is_blueprint_csrf_protected(self):
return True
##~~ StartupPlugin API -- used for registering OctoPrint's Zeroconf and SSDP services upon application startup
def on_startup(self, host, port):
@@ -18,10 +18,10 @@ from octoprint.util.version import (
)
SENTRY_URL_SERVER = (
"https://890bd6bca44a4b7e92918b0ba74049ca@o118517.ingest.sentry.io/1373987"
"https://af30d06358144fb8af076ffd8984136d@o118517.ingest.sentry.io/1373987"
)
SENTRY_URL_COREUI = (
"https://1f4ba2d14bfc4b1c9a861fde1c1d452d@o118517.ingest.sentry.io/1374096"
"https://e1d6b5d760f241408382d62a3e7fb416@o118517.ingest.sentry.io/1374096"
)
SETTINGS_DEFAULTS = {
@@ -127,6 +127,9 @@ class LoggingPlugin(
def is_blueprint_protected(self):
return False
def is_blueprint_csrf_protected(self):
return True
def _get_usage(self):
import psutil
@@ -228,7 +228,7 @@ class PluginManagerPlugin(
"name": "List plugins",
"description": gettext("Allows to list installed plugins."),
"default_groups": [READONLY_GROUP, USER_GROUP, ADMIN_GROUP],
"roles": ["manage"],
"roles": ["list"],
},
{
"key": "MANAGE",
@@ -609,6 +609,9 @@ class PluginManagerPlugin(
def is_blueprint_protected(self):
return False
def is_blueprint_csrf_protected(self):
return True
##~~ EventHandlerPlugin
def on_event(self, event, payload):
@@ -1453,6 +1453,9 @@ class SoftwareUpdatePlugin(
def is_blueprint_protected(self):
return False
def is_blueprint_csrf_protected(self):
return True
# ~~ Asset API
def get_assets(self):
+55 -3
View File
@@ -40,6 +40,7 @@ from watchdog.observers import Observer
from watchdog.observers.polling import PollingObserver
from werkzeug.exceptions import HTTPException
import octoprint.filemanager
import octoprint.util
import octoprint.util.net
from octoprint.server import util
@@ -70,6 +71,7 @@ app = Flask("octoprint")
assets = None
babel = None
limiter = None
debug = False
safe_mode = False
@@ -125,10 +127,11 @@ from octoprint.printer.standard import Printer
from octoprint.server.util import (
corsRequestHandler,
corsResponseHandler,
csrfRequestHandler,
loginFromApiKeyRequestHandler,
requireLoginRequestHandler,
)
from octoprint.server.util.flask import PreemptiveCache
from octoprint.server.util.flask import PreemptiveCache, validate_session_signature
from octoprint.settings import settings
VERSION = __version__
@@ -185,12 +188,25 @@ def load_user(id):
else:
sessionid = None
if session and "usersession.signature" in session:
sessionsig = session["usersession.signature"]
else:
sessionsig = ""
if sessionid:
user = userManager.find_user(userid=id, session=sessionid)
# session["_fresh"] is False if the session comes from a remember me cookie,
# True if it came from a use of the login dialog
user = userManager.find_user(
userid=id, session=sessionid, fresh=session.get("_fresh", False)
)
else:
user = userManager.find_user(userid=id)
if user and user.is_active:
if (
user
and user.is_active
and (not sessionid or validate_session_signature(sessionsig, id, sessionid))
):
return user
return None
@@ -745,6 +761,15 @@ class Server:
)
}
only_known_types_validator = {
"path_validation": util.tornado.path_validation_factory(
lambda path: octoprint.filemanager.valid_file_type(
os.path.basename(path)
),
status_code=404,
)
}
valid_timelapse = lambda path: not octoprint.util.is_hidden_path(path) and (
octoprint.timelapse.valid_timelapse(path)
or octoprint.timelapse.valid_timelapse_thumbnail(path)
@@ -839,6 +864,7 @@ class Server:
download_permission_validator,
download_handler_kwargs,
no_hidden_files_validator,
only_known_types_validator,
additional_mime_types,
),
),
@@ -1338,6 +1364,8 @@ class Server:
timer.start()
def _setup_app(self, app):
global limiter
from octoprint.server.util.flask import (
OctoPrintFlaskRequest,
OctoPrintFlaskResponse,
@@ -1352,6 +1380,9 @@ class Server:
app.config["TEMPLATES_AUTO_RELOAD"] = True
app.config["JSONIFY_PRETTYPRINT_REGULAR"] = False
app.config["REMEMBER_COOKIE_DURATION"] = 90 * 24 * 60 * 60 # 90 days
app.config["REMEMBER_COOKIE_HTTPONLY"] = True
# REMEMBER_COOKIE_SECURE will be taken care of by our custom cookie handling
# we must not set this before TEMPLATES_AUTO_RELOAD is set to True or that won't take
app.debug = self._debug
@@ -1432,6 +1463,17 @@ class Server:
MarkdownFilter(app)
from flask_limiter import Limiter
from flask_limiter.util import get_remote_address
app.config["RATELIMIT_STRATEGY"] = "fixed-window-elastic-expiry"
limiter = Limiter(
app,
key_func=get_remote_address,
enabled=s.getBoolean(["devel", "enableRateLimiter"]),
)
def _setup_i18n(self, app):
global babel
global LOCALES
@@ -1875,6 +1917,16 @@ class Server:
blueprint.before_request(loginFromApiKeyRequestHandler)
blueprint.after_request(corsResponseHandler)
if plugin.is_blueprint_csrf_protected():
self._logger.debug(
f"CSRF Protection for Blueprint of plugin {name} is enabled"
)
blueprint.before_request(csrfRequestHandler)
else:
self._logger.warning(
f"CSRF Protection for Blueprint of plugin {name} is DISABLED"
)
if plugin.is_blueprint_protected():
blueprint.before_request(requireLoginRequestHandler)
+12
View File
@@ -28,6 +28,7 @@ from octoprint.server import NO_CONTENT
from octoprint.server.util import (
corsRequestHandler,
corsResponseHandler,
csrfRequestHandler,
loginFromApiKeyRequestHandler,
loginFromAuthorizationHeaderRequestHandler,
noCachingExceptGetResponseHandler,
@@ -35,8 +36,10 @@ from octoprint.server.util import (
from octoprint.server.util.flask import (
get_json_command_from_request,
get_remote_address,
limit,
no_firstrun_access,
passive_login,
session_signature,
)
from octoprint.settings import settings as s
from octoprint.settings import valid_boolean_trues
@@ -66,6 +69,7 @@ api.after_request(noCachingExceptGetResponseHandler)
api.before_request(corsRequestHandler)
api.before_request(loginFromAuthorizationHeaderRequestHandler)
api.before_request(loginFromApiKeyRequestHandler)
api.before_request(csrfRequestHandler)
api.after_request(corsResponseHandler)
# ~~ data from plugins
@@ -281,6 +285,11 @@ def serverStatus():
@api.route("/login", methods=["POST"])
@limit(
"3/minute;5/10 minutes;10/hour",
deduct_when=lambda response: response.status_code == 403,
error_message="You have made too many failed login attempts. Please try again later.",
)
def login():
data = request.get_json()
if not data:
@@ -306,6 +315,9 @@ def login():
user = octoprint.server.userManager.login_user(user)
session["usersession.id"] = user.session
session["usersession.signature"] = session_signature(
username, user.session
)
g.user = user
login_user(user, remember=remember)
+21 -11
View File
@@ -25,14 +25,14 @@ def get_permissions():
@api.route("/access/groups", methods=["GET"])
@no_firstrun_access
@Permissions.SETTINGS.require(403)
@Permissions.ADMIN.require(403)
def get_groups():
return jsonify(groups=list(map(lambda g: g.as_dict(), groupManager.groups)))
@api.route("/access/groups", methods=["POST"])
@no_firstrun_access
@Permissions.SETTINGS.require(403)
@Permissions.ADMIN.require(403)
def add_group():
if "application/json" not in request.headers["Content-Type"]:
abort(400, description="Expected content-type JSON")
@@ -69,7 +69,7 @@ def add_group():
@api.route("/access/groups/<key>", methods=["GET"])
@no_firstrun_access
@Permissions.SETTINGS.require(403)
@Permissions.ADMIN.require(403)
def get_group(key):
group = groupManager.find_group(key)
if group is not None:
@@ -80,7 +80,7 @@ def get_group(key):
@api.route("/access/groups/<key>", methods=["PUT"])
@no_firstrun_access
@Permissions.SETTINGS.require(403)
@Permissions.ADMIN.require(403)
def update_group(key):
if "application/json" not in request.headers["Content-Type"]:
abort(400, description="Expected content-type JSON")
@@ -113,7 +113,7 @@ def update_group(key):
@api.route("/access/groups/<key>", methods=["DELETE"])
@no_firstrun_access
@Permissions.SETTINGS.require(403)
@Permissions.ADMIN.require(403)
def remove_group(key):
try:
groupManager.remove_group(key)
@@ -129,14 +129,14 @@ def remove_group(key):
@api.route("/access/users", methods=["GET"])
@no_firstrun_access
@Permissions.SETTINGS.require(403)
@Permissions.ADMIN.require(403)
def get_users():
return jsonify(users=list(map(lambda u: u.as_dict(), userManager.get_all_users())))
@api.route("/access/users", methods=["POST"])
@no_firstrun_access
@Permissions.SETTINGS.require(403)
@Permissions.ADMIN.require(403)
def add_user():
if "application/json" not in request.headers["Content-Type"]:
abort(400, description="Expected content-type JSON")
@@ -188,7 +188,7 @@ def get_user(username):
@api.route("/access/users/<username>", methods=["PUT"])
@no_firstrun_access
@Permissions.SETTINGS.require(403)
@Permissions.ADMIN.require(403)
def update_user(username):
user = userManager.find_user(username)
if user is not None:
@@ -223,7 +223,7 @@ def update_user(username):
@api.route("/access/users/<username>", methods=["DELETE"])
@no_firstrun_access
@Permissions.SETTINGS.require(403)
@Permissions.ADMIN.require(403)
def remove_user(username):
try:
userManager.remove_user(username)
@@ -241,7 +241,10 @@ def change_password_for_user(username):
if (
current_user is not None
and not current_user.is_anonymous
and (current_user.get_name() == username or current_user.is_admin)
and (
current_user.get_name() == username
or current_user.has_permission(Permissions.ADMIN)
)
):
if "application/json" not in request.headers["Content-Type"]:
abort(400, description="Expected content-type JSON")
@@ -252,7 +255,14 @@ def change_password_for_user(username):
abort(400, description="Malformed JSON body in request")
if "password" not in data or not data["password"]:
abort(400, description="password is missing")
abort(400, description="new password is missing")
if not current_user.has_permission(Permissions.ADMIN) or "current" in data:
if "current" not in data or not data["current"]:
abort(400, description="current password is missing")
if not userManager.check_password(username, data["current"]):
abort(403, description="Invalid current password")
try:
userManager.change_user_password(username, data["password"])
+54 -32
View File
@@ -607,6 +607,15 @@ def uploadGcodeFile(target):
):
abort(409, description="File already exists and noOverwrite was set")
if (
fileManager.file_exists(FileDestinations.LOCAL, futureFullPathInStorage)
and not Permissions.FILES_DELETE.can()
):
abort(
403,
description="File already exists, cannot overwrite due to a lack of permissions",
)
reselect = printer.is_current_file(futureFullPathInStorage, sd)
user = current_user.get_name()
@@ -1138,42 +1147,55 @@ def gcodeFileCommand(filename, target):
if not (is_file or is_folder):
abort(400, description=f"Neither file nor folder, can't {command}")
if command == "copy":
# destination already there? error...
if _verifyFileExists(target, destination) or _verifyFolderExists(
target, destination
):
abort(409, description="File or folder does already exist")
if is_file:
fileManager.copy_file(target, filename, destination)
else:
fileManager.copy_folder(target, filename, destination)
elif command == "move":
with Permissions.FILES_DELETE.require(403):
if _isBusy(target, filename):
abort(
409,
description="Trying to move a file or folder that is currently in use",
)
# destination already there AND not ourselves (= display rename)? error...
if (
_verifyFileExists(target, destination)
or _verifyFolderExists(target, destination)
) and sanitized_destination != filename:
try:
if command == "copy":
# destination already there? error...
if _verifyFileExists(target, destination) or _verifyFolderExists(
target, destination
):
abort(409, description="File or folder does already exist")
# deselect the file if it's currently selected
currentOrigin, currentFilename = _getCurrentFile()
if currentFilename is not None and filename == currentFilename:
printer.unselect_file()
if is_file:
fileManager.move_file(target, filename, destination)
fileManager.copy_file(target, filename, destination)
else:
fileManager.move_folder(target, filename, destination)
fileManager.copy_folder(target, filename, destination)
elif command == "move":
with Permissions.FILES_DELETE.require(403):
if _isBusy(target, filename):
abort(
409,
description="Trying to move a file or folder that is currently in use",
)
# destination already there AND not ourselves (= display rename)? error...
if (
_verifyFileExists(target, destination)
or _verifyFolderExists(target, destination)
) and sanitized_destination != filename:
abort(409, description="File or folder does already exist")
# deselect the file if it's currently selected
currentOrigin, currentFilename = _getCurrentFile()
if currentFilename is not None and filename == currentFilename:
printer.unselect_file()
if is_file:
fileManager.move_file(target, filename, destination)
else:
fileManager.move_folder(target, filename, destination)
except octoprint.filemanager.storage.StorageError as e:
if e.code == octoprint.filemanager.storage.StorageError.INVALID_FILE:
abort(
415,
description=f"Could not {command} {filename} to {destination}, invalid type",
)
else:
abort(
500,
description=f"Could not {command} {filename} to {destination}",
)
location = url_for(
".readGcodeFile",
+16 -4
View File
@@ -174,7 +174,8 @@ def deleteInstalledLanguagePack(locale, pack):
def _unpack_uploaded_zipfile(path, target):
with zipfile.ZipFile(path, "r") as zip:
# sanity check
map(_validate_archive_name, zip.namelist())
for info in zip.infolist():
_validate_zip_info(info, target)
# unpack everything
zip.extractall(target)
@@ -183,16 +184,27 @@ def _unpack_uploaded_zipfile(path, target):
def _unpack_uploaded_tarball(path, target):
with tarfile.open(path, "r") as tar:
# sanity check
map(_validate_archive_name, tar.getmembers())
for info in tar.getmembers():
_validate_tar_info(info, target)
# unpack everything
tar.extractall(target)
def _validate_archive_name(name):
if name.startswith("/") or ".." in name:
def _validate_archive_name(name, target):
if not os.path.abspath(os.path.join(target, name)).startswith(target + os.path.sep):
raise InvalidLanguagePack(f"Provided language pack contains invalid name {name}")
def _validate_zip_info(info, target):
_validate_archive_name(info.filename, target)
def _validate_tar_info(info, target):
_validate_archive_name(info.name, target)
if not (info.isfile() or info.isdir()):
raise InvalidLanguagePack("Provided language pack contains invalid file type")
class InvalidLanguagePack(Exception):
pass
+2 -8
View File
@@ -18,8 +18,7 @@ from octoprint.settings import settings, valid_boolean_trues
# ~~ settings
FOLDER_TYPES = ("uploads", "timelapse", "timelapse_tmp", "logs", "watched")
FOLDER_MAPPING = {"timelapseTmp": "timelapse_tmp"}
FOLDER_TYPES = ("uploads", "timelapse", "watched")
TIMELAPSE_BITRATE_PATTERN = re.compile(r"\d+[KMGTPEZY]?i?B?", flags=re.IGNORECASE)
@@ -269,8 +268,6 @@ def getSettings():
"folder": {
"uploads": s.getBaseFolder("uploads"),
"timelapse": s.getBaseFolder("timelapse"),
"timelapseTmp": s.getBaseFolder("timelapse_tmp"),
"logs": s.getBaseFolder("logs"),
"watched": s.getBaseFolder("watched"),
},
"temperature": {
@@ -464,10 +461,7 @@ def _saveSettings(data):
if "folder" in data:
try:
folders = {
FOLDER_MAPPING.get(folder, folder): path
for folder, path in data["folder"].items()
}
folders = data["folder"]
future = {}
for folder in FOLDER_TYPES:
future[folder] = s.getBaseFolder(folder)
+40 -3
View File
@@ -148,6 +148,26 @@ def corsResponseHandler(resp):
return resp
def csrfRequestHandler():
"""
``before_request`` handler for blueprints which checks for CRFS double token on
relevant requests & methods.
"""
from octoprint.server.util.csrf import validate_csrf_request
if settings().getBoolean(["devel", "enableCsrfProtection"]):
validate_csrf_request(_flask.request)
def csrfResponseHandler(resp):
"""
``after_request`` handler for updating the CSRF cookie on each response.
"""
from octoprint.server.util.csrf import add_csrf_cookie
return add_csrf_cookie(resp)
def noCachingResponseHandler(resp):
"""
``after_request`` handler for blueprints which shall set no caching headers
@@ -378,9 +398,6 @@ def require_login_with(permissions=None, user_id=None):
):
requires_login = False
if current_user.is_anonymous:
requires_login = True
if permissions is not None and not has_permissions(*permissions):
requires_login = True
login_kwargs["permissions"] = ",".join([x.key for x in permissions])
@@ -424,3 +441,23 @@ def require_login(*permissions):
)
return None
def validate_local_redirect(url, allowed_paths):
"""Validates the given local redirect URL against the given allowed paths.
An `url` is valid for a local redirect if it has neither scheme nor netloc defined,
and its path is one of the given allowed paths.
Args:
url (str): URL to validate
allowed_paths (List[str]): List of allowed paths, only paths contained
will be considered valid.
Returns:
bool: Whether the `url` passed validation or not.
"""
from urllib.parse import urlparse
parsed = urlparse(url)
return parsed.scheme == "" and parsed.netloc == "" and parsed.path in allowed_paths
+97
View File
@@ -0,0 +1,97 @@
"""CSRF double cookie implementation"""
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
import flask
from octoprint.server.util.flask import OctoPrintFlaskResponse
exempt_views = set()
def _get_view_location(view):
if isinstance(view, str):
return view
else:
return f"{view.__module__}.{view.__name__}"
def add_exempt_view(view):
exempt_views.add(_get_view_location(view))
def is_exempt(view):
if not view:
return False
return _get_view_location(view) in exempt_views
def generate_csrf_token():
import hashlib
import os
from itsdangerous import URLSafeTimedSerializer
value = hashlib.sha1(os.urandom(64)).hexdigest()
secret = flask.current_app.config["SECRET_KEY"]
s = URLSafeTimedSerializer(secret, salt="octoprint-csrf-token")
return s.dumps(value)
def validate_csrf_tokens(cookie, header):
import hmac
from itsdangerous import URLSafeTimedSerializer
if cookie is None or header is None:
return False
secret = flask.current_app.config["SECRET_KEY"]
s = URLSafeTimedSerializer(secret, salt="octoprint-csrf-token")
try:
# TODO: set max age for values, once we have a REST based heartbeat
# that takes care of regular cookie refresh
value_cookie = s.loads(cookie)
value_header = s.loads(header)
return hmac.compare_digest(value_cookie, value_header)
except Exception:
return False
def add_csrf_cookie(response):
if not isinstance(response, OctoPrintFlaskResponse):
return
token = generate_csrf_token()
response.set_cookie("csrf_token", token, httponly=False)
return response
def validate_csrf_request(request):
if request.method in ["GET", "HEAD", "OPTIONS"]:
# Irrelevant method for CSRF, bypass
return
if getattr(flask.g, "login_via_apikey", False):
# API key authorization, bypass
return
if is_exempt(request.endpoint):
# marked as exempt, bypass
return
cookie = request.cookies.get("csrf_token", None)
header = request.headers.get("X-CSRF-Token", None)
if not validate_csrf_tokens(cookie, header):
flask.abort(400, "CSRF validation failed")
def csrf_exempt(view):
add_exempt_view(view)
return view
+109 -7
View File
@@ -5,11 +5,13 @@ __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agp
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import functools
import hashlib
import hmac
import logging
import os
import threading
import time
from datetime import datetime
from datetime import datetime, timedelta
from typing import Union
import flask
@@ -23,6 +25,9 @@ import tornado.web
import webassets.updater
import webassets.utils
from cachelib import BaseCache
from flask import current_app
from flask_login import COOKIE_NAME as REMEMBER_COOKIE_NAME
from flask_login.utils import decode_cookie, encode_cookie
from werkzeug.local import LocalProxy
from werkzeug.utils import cached_property
@@ -422,6 +427,49 @@ class ReverseProxiedEnvironment:
# ~~ request and response versions
def encode_remember_me_cookie(value):
from octoprint.server import userManager
name = value.split("|")[0]
try:
remember_key = userManager.signature_key_for_user(
name, salt=current_app.config["SECRET_KEY"]
)
timestamp = datetime.utcnow().timestamp()
return encode_cookie(f"{name}|{timestamp}", key=remember_key)
except Exception:
pass
return ""
def decode_remember_me_cookie(value):
from octoprint.server import userManager
parts = value.split("|")
if len(parts) == 3:
name, created, _ = parts
try:
# valid signature?
signature_key = userManager.signature_key_for_user(
name, salt=current_app.config["SECRET_KEY"]
)
cookie = decode_cookie(value, key=signature_key)
if cookie:
# still valid?
if (
datetime.fromtimestamp(float(created))
+ timedelta(seconds=current_app.config["REMEMBER_COOKIE_DURATION"])
> datetime.utcnow()
):
return encode_cookie(name)
except Exception:
pass
raise ValueError("Invalid remember me cookie")
class OctoPrintFlaskRequest(flask.Request):
environment_wrapper = staticmethod(lambda x: x)
@@ -437,10 +485,23 @@ class OctoPrintFlaskRequest(flask.Request):
result = {}
desuffixed = {}
for key, value in cookies.items():
if key.endswith(self.cookie_suffix):
desuffixed[key[: -len(self.cookie_suffix)]] = value
else:
result[key] = value
def process_value(k, v):
if k == current_app.config.get(
"REMEMBER_COOKIE_NAME", REMEMBER_COOKIE_NAME
):
return decode_remember_me_cookie(v)
return v
try:
if key.endswith(self.cookie_suffix):
key = key[: -len(self.cookie_suffix)]
desuffixed[key] = process_value(key, value)
else:
result[key] = process_value(key, value)
except ValueError:
# ignore broken cookies
pass
result.update(desuffixed)
return result
@@ -471,7 +532,7 @@ class OctoPrintFlaskRequest(flask.Request):
class OctoPrintFlaskResponse(flask.Response):
def set_cookie(self, key, *args, **kwargs):
def set_cookie(self, key, value="", *args, **kwargs):
# restrict cookie path to script root
kwargs["path"] = flask.request.script_root + kwargs.get("path", "/")
@@ -490,9 +551,13 @@ class OctoPrintFlaskResponse(flask.Response):
# set secure if necessary
kwargs["secure"] = settings().getBoolean(["server", "cookies", "secure"])
# tie account properties to remember me cookie (e.g. current password hash)
if key == current_app.config.get("REMEMBER_COOKIE_NAME", REMEMBER_COOKIE_NAME):
value = encode_remember_me_cookie(value)
# add request specific cookie suffix to name
flask.Response.set_cookie(
self, key + flask.request.cookie_suffix, *args, **kwargs
self, key + flask.request.cookie_suffix, value=value, *args, **kwargs
)
def delete_cookie(self, key, path="/", domain=None):
@@ -608,6 +673,9 @@ def passive_login():
)
if hasattr(u, "session"):
flask.session["usersession.id"] = u.session
flask.session["usersession.signature"] = session_signature(
u.get_id(), u.session
)
flask.g.user = u
eventManager().fire(Events.USER_LOGGED_IN, payload={"username": u.get_id()})
@@ -669,6 +737,24 @@ def passive_login():
return flask.jsonify(response)
# ~~ rate limiting helper
def limit(*args, **kwargs):
if octoprint.server.limiter:
return octoprint.server.limiter.limit(*args, **kwargs)
else:
def decorator(f):
@functools.wraps(f)
def decorated_function(*args, **kwargs):
return f(*args, **kwargs)
return decorated_function
return decorator
# ~~ cache decorator for cacheable views
@@ -1814,3 +1900,19 @@ class OctoPrintJsonEncoder(flask.json.JSONEncoder):
return JsonEncoding.encode(obj)
except TypeError:
return flask.json.JSONEncoder.default(self, obj)
##~~ Session signing
def session_signature(user, session):
from octoprint.server import userManager
key = userManager.signature_key_for_user(user, salt=current_app.config["SECRET_KEY"])
return hmac.new(
key.encode("utf-8"), session.encode("utf-8"), hashlib.sha512
).hexdigest()
def validate_session_signature(sig, user, session):
return hmac.compare_digest(sig, session_signature(user, session))
+28 -5
View File
@@ -21,9 +21,10 @@ import octoprint.vendor.sockjs.tornado.session
import octoprint.vendor.sockjs.tornado.util
from octoprint.access.groups import GroupChangeListener
from octoprint.access.permissions import Permissions
from octoprint.access.users import LoginStatusListener
from octoprint.access.users import LoginStatusListener, SessionUser
from octoprint.events import Events
from octoprint.settings import settings
from octoprint.util import RepeatedTimer
from octoprint.util.json import dumps as json_dumps
from octoprint.util.version import get_python_version_string
@@ -173,6 +174,10 @@ class PrinterStateConnection(
self._subscriptions_active = False
self._subscriptions = {"state": False, "plugins": [], "events": []}
self._keep_alive = RepeatedTimer(
60, self._keep_alive_callback, condition=lambda: self._authed
)
@staticmethod
def _get_remote_address(info):
forwarded_for = info.headers.get("X-Forwarded-For")
@@ -180,6 +185,13 @@ class PrinterStateConnection(
return forwarded_for.split(",")[0]
return info.ip
def _keep_alive_callback(self):
if not self._authed:
return
if not isinstance(self._user, SessionUser):
return
self._user.touch()
def __str__(self):
if self._remoteAddress:
return f"{self!r} connected to {self._remoteAddress}"
@@ -442,12 +454,17 @@ class PrinterStateConnection(
{
"serverTime": time.time(),
"temps": temperatures,
"logs": self._filter_logs(logs),
"messages": messages,
"busyFiles": busy_files,
"markings": list(self._printer.get_markings()),
}
)
if self._user.has_permission(Permissions.MONITOR_TERMINAL):
data.update(
{
"logs": self._filter_logs(logs),
"messages": messages,
}
)
self._emit("current", payload=data)
def on_printer_send_initial_data(self, data):
@@ -457,9 +474,13 @@ class PrinterStateConnection(
return
data_to_send = dict(data)
data_to_send["logs"] = self._filter_logs(data_to_send.get("logs", []))
data_to_send["messages"] = self._filter_messages(data_to_send.get("messages", []))
data_to_send["serverTime"] = time.time()
if self._user.has_permission(Permissions.MONITOR_TERMINAL):
data_to_send["logs"] = self._filter_logs(data_to_send.get("logs", []))
data_to_send["messages"] = self._filter_messages(
data_to_send.get("messages", [])
)
self._emit("history", payload=data_to_send)
def _filter_state_subscription(self, sub, values):
@@ -716,6 +737,8 @@ class PrinterStateConnection(
)
self._authed = True
self._keep_alive.start()
for name, hook in self._authed_hooks.items():
try:
hook(self, self._user)
+24 -4
View File
@@ -38,7 +38,12 @@ from octoprint.server import ( # noqa: F401
preemptiveCache,
userManager,
)
from octoprint.server.util import has_permissions, require_login_with
from octoprint.server.util import (
has_permissions,
require_login_with,
validate_local_redirect,
)
from octoprint.server.util.csrf import add_csrf_cookie
from octoprint.settings import settings
from octoprint.util import sv, to_bytes, to_unicode
from octoprint.util.version import get_python_version_string
@@ -170,7 +175,16 @@ def _add_additional_assets(hook):
def login():
from flask_login import current_user
redirect_url = request.args.get("redirect", request.script_root + url_for("index"))
default_redirect_url = request.script_root + url_for("index")
redirect_url = request.args.get("redirect", default_redirect_url)
allowed_paths = [url_for("index"), url_for("recovery")]
if not validate_local_redirect(redirect_url, allowed_paths):
_logger.warning(
f"Got an invalid redirect URL with the login attempt, misconfiguration or attack attempt: {redirect_url}"
)
redirect_url = default_redirect_url
permissions = sorted(
filter(
lambda x: x is not None and isinstance(x, OctoPrintPermission),
@@ -210,7 +224,9 @@ def login():
except Exception:
_logger.exception("Error processing theming CSS, ignoring")
return render_template("login.jinja2", **render_kwargs)
resp = make_response(render_template("login.jinja2", **render_kwargs))
add_csrf_cookie(resp)
return resp
@app.route("/recovery")
@@ -241,7 +257,9 @@ def recovery():
except Exception:
_logger.exception("Error adding backup upload size info, ignoring")
return render_template("recovery.jinja2", **render_kwargs)
resp = make_response(render_template("recovery.jinja2", **render_kwargs))
add_csrf_cookie(resp)
return resp
@app.route("/cached.gif")
@@ -681,6 +699,8 @@ def index():
if response is None:
return abort(404)
add_csrf_cookie(response)
return response
+14 -2
View File
@@ -228,7 +228,7 @@ default_settings = {
"preemptiveCache": {"exceptions": [], "until": 7},
"ipCheck": {"enabled": True, "trustedSubnets": []},
"allowFraming": False,
"cookies": {"secure": False, "samesite": None},
"cookies": {"secure": False, "samesite": "strict"},
},
"webcam": {
"webcamEnabled": True,
@@ -402,7 +402,6 @@ default_settings = {
"controls": [],
"system": {"actions": []},
"accessControl": {
"salt": None,
"userManager": "octoprint.access.users.FilebasedUserManager",
"groupManager": "octoprint.access.groups.FilebasedGroupManager",
"permissionManager": "octoprint.access.permissions.PermissionManager",
@@ -471,6 +470,8 @@ default_settings = {
"showLoadingAnimation": True,
"sockJsConnectTimeout": 30,
"pluginTimings": False,
"enableRateLimiter": True,
"enableCsrfProtection": True,
},
}
"""The default settings of the core application."""
@@ -891,6 +892,7 @@ class Settings:
"logs",
]
)
self.warn_about_risky_settings()
def _init_basedir(self, basedir):
if basedir is not None:
@@ -923,6 +925,16 @@ class Settings:
if len(folder_map.values()) != len(set(folder_map.values())):
raise DuplicateFolderPaths(folders)
def warn_about_risky_settings(self):
if not self.getBoolean(["devel", "enableRateLimiter"]):
self._logger.warning(
"Rate limiting is disabled, this is a security risk. Do not run this in production."
)
if not self.getBoolean(["devel", "enableCsrfProtection"]):
self._logger.warning(
"CSRF Protection is disabled, this is a security risk. Do not run this in production."
)
def _get_default_folder(self, type):
folder = default_settings["folder"][type]
if folder is None:
+1 -1
View File
@@ -1 +1 @@
body{padding-top:40px;padding-bottom:40px;background-color:#f5f5f5}.form-signin{max-width:300px;padding:19px 29px 29px;margin:0 auto 20px;background-color:#fff;border:1px solid #e5e5e5;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,0.05);box-shadow:0 1px 2px rgba(0,0,0,0.05)}.form-signin .form-signin-heading,.form-signin .checkbox{margin-bottom:10px}.form-signin input[type="text"],.form-signin input[type="password"]{font-size:16px;height:auto;margin-bottom:15px;padding:7px 9px}#login-error,#login-offline{display:none}#login-error.in,#login-offline.in{display:block}#login-overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000;display:none}#login-overlay.in{display:block}#login-overlay .background{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000000;filter:alpha(opacity=50);-moz-opacity:.5;-khtml-opacity:.5;opacity:.5}#login-overlay .wrapper{position:absolute;top:0;bottom:0;left:0;right:0}#login-overlay .wrapper .outer{display:table;width:100%;height:100%}#login-overlay .wrapper .outer .inner{display:table-cell;vertical-align:middle}#login-overlay .wrapper .outer .inner .content{text-align:center;color:white}#noscript{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#ffffff;z-index:12310}#noscript .wrapper{position:absolute;top:0;bottom:0;left:0;right:0}#noscript .wrapper .outer{display:table;width:100%;height:100%}#noscript .wrapper .outer .inner{display:table-cell;vertical-align:middle}#noscript .wrapper .outer .inner .content{text-align:center}
body{padding-top:40px;padding-bottom:40px;background-color:#f5f5f5}.form-signin{max-width:300px;padding:19px 29px 29px;margin:0 auto 20px;background-color:#fff;border:1px solid #e5e5e5;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,0.05);box-shadow:0 1px 2px rgba(0,0,0,0.05)}.form-signin .form-signin-heading,.form-signin .checkbox{margin-bottom:10px}.form-signin input[type="text"],.form-signin input[type="password"]{font-size:16px;height:auto;margin-bottom:15px;padding:7px 9px}#login-error-credentials,#login-error-rate,#login-offline{display:none}#login-error-credentials.in,#login-error-rate.in,#login-offline.in{display:block}#login-overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000;display:none}#login-overlay.in{display:block}#login-overlay .background{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000000;filter:alpha(opacity=50);-moz-opacity:.5;-khtml-opacity:.5;opacity:.5}#login-overlay .wrapper{position:absolute;top:0;bottom:0;left:0;right:0}#login-overlay .wrapper .outer{display:table;width:100%;height:100%}#login-overlay .wrapper .outer .inner{display:table-cell;vertical-align:middle}#login-overlay .wrapper .outer .inner .content{text-align:center;color:white}#noscript{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#ffffff;z-index:12310}#noscript .wrapper{position:absolute;top:0;bottom:0;left:0;right:0}#noscript .wrapper .outer{display:table;width:100%;height:100%}#noscript .wrapper .outer .inner{display:table-cell;vertical-align:middle}#noscript .wrapper .outer .inner .content{text-align:center}
+10 -1
View File
@@ -176,17 +176,26 @@
OctoPrintAccessUsersClient.prototype.changePassword = function (
name,
password,
oldpw,
opts
) {
if (_.isObject(oldpw)) {
opts = oldpw;
oldpw = undefined;
}
if (!name || !password) {
throw new OctoPrintClient.InvalidArgumentError(
"user name and password must be set"
"user name and new password must be set"
);
}
var data = {
password: password
};
if (oldpw) {
data["current"] = oldpw;
}
return this.base.putJson(this.url(name, "password"), data, opts);
};
+66 -4
View File
@@ -107,14 +107,75 @@
return url;
};
OctoPrintClient.prototype.getRequestHeaders = function (additional) {
OctoPrintClient.prototype.getCookieSuffix = function () {
if (!this.options.baseurl) return "";
try {
var url = new URL(this.options.baseurl);
} catch (e) {
var parsed = new URL(window.location);
var path = this.options.baseurl;
if (!path || path[0] !== "/") {
path = "/" + (path ? path : "");
}
var url = new URL(parsed.protocol + "//" + parsed.host + path);
}
var port = url.port || (url.protocol === "https:" ? 443 : 80);
if (url.pathname && url.pathname !== "/") {
var path = url.pathname;
if (path.endsWith("/")) {
path = path.substring(0, path.length - 1);
}
return "_P" + port + "_R" + path.replace(/\//, "|");
} else {
return "_P" + port;
}
};
OctoPrintClient.prototype.getCookieName = function (name) {
return name + this.getCookieSuffix();
};
OctoPrintClient.prototype.getCookie = function (name) {
name = this.getCookieName(name);
return ("; " + document.cookie)
.split("; " + name + "=")
.pop()
.split(";")[0];
};
OctoPrintClient.prototype.getRequestHeaders = function (method, additional, opts) {
if (arguments.length <= 1) {
// versions prior 1.8.3 don't know method and opts
if (!_.isString(method)) {
additional = method;
console.warn(
"Calling OctoPrintClient.getRequestHeaders with additional " +
"headers as the first parameter is deprecated. Please " +
"consult the docs about the current signature and adjust " +
"your code accordingly."
);
}
}
method = method || "GET";
additional = additional || {};
opts = opts || {};
var headers = $.extend({}, additional);
if (this.options.apikey) {
headers["X-Api-Key"] = this.options.apikey;
} else {
// no API key, so browser context, so let's make sure the CSRF token
// header is set
var csrfToken = this.getCookie("csrf_token");
if (!/^(GET|HEAD|OPTIONS)$/.test(method) && csrfToken && !opts.crossDomain) {
headers["X-CSRF-Token"] = csrfToken;
}
}
if (this.options.locale !== undefined) {
headers["X-Locale"] = this.options.locale;
}
@@ -134,7 +195,7 @@
opts.url = urlToCall;
}
var headers = this.getRequestHeaders(opts.headers);
var headers = this.getRequestHeaders(method, opts.headers, opts);
var params = $.extend({}, opts);
params.type = method;
@@ -292,14 +353,15 @@
deferred.notify({loaded: e.loaded, total: e.total});
});
var headers = this.getRequestHeaders();
var method = "POST";
var headers = this.getRequestHeaders(method);
var urlToCall = url;
if (!_.startsWith(url, "http://") && !_.startsWith(url, "https://")) {
urlToCall = this.getBaseUrl() + url;
}
request.open("POST", urlToCall);
request.open(method, urlToCall);
_.each(headers, function (value, key) {
request.setRequestHeader(key, value);
});
+64 -30
View File
@@ -1542,41 +1542,75 @@ var copyToClipboard = function (text) {
temp.remove();
};
var determineWebcamStreamType = function (streamUrl) {
if (streamUrl) {
if (streamUrl.startsWith("webrtc")) {
return "webrtc";
}
var getExternalHostUrl = function () {
var loc = window.location;
var port = "";
if (
(loc.protocol === "http:" && loc.port !== "80") ||
(loc.protocol === "https:" && loc.port !== "443")
) {
port = ":" + loc.port;
}
return loc.protocol + "//" + loc.hostname + port;
};
var lastDotPosition = streamUrl.lastIndexOf(".");
var firstQuotationSignPosition = streamUrl.indexOf("?");
if (
lastDotPosition != -1 &&
firstQuotationSignPosition != -1 &&
lastDotPosition >= firstQuotationSignPosition
) {
throw "Malformed URL. Cannot determine stream type.";
}
var validateWebcamUrl = function (streamUrl) {
if (!streamUrl) {
return false;
}
// If we have found a dot, try to extract the extension.
if (lastDotPosition > -1) {
if (firstQuotationSignPosition > -1) {
var extension = streamUrl.slice(
lastDotPosition + 1,
firstQuotationSignPosition - 1
);
} else {
var extension = streamUrl.slice(lastDotPosition + 1);
}
if (extension.toLowerCase() == "m3u8") {
return "hls";
}
}
// By default, 'mjpg' is the stream type.
return "mjpg";
var lower = streamUrl.toLowerCase();
var toParse = streamUrl;
if (lower.startsWith("//")) {
// protocol relative
toParse = window.location.protocol + streamUrl;
} else if (lower.startsWith("/")) {
// host relative
toParse = getExternalHostUrl() + streamUrl;
} else if (
lower.startsWith("http:") ||
lower.startsWith("https:") ||
lower.startsWith("webrtc:") ||
lower.startsWith("webrtcs:")
) {
// absolute & supported protocol
toParse = streamUrl;
} else {
return false;
}
try {
return new URL(toParse);
} catch (e) {
return false;
}
};
var determineWebcamStreamType = function (streamUrl) {
if (!streamUrl) {
throw "Empty streamUrl. Cannot determine stream type.";
}
var parsed = validateWebcamUrl(streamUrl);
if (!parsed) {
throw "Invalid streamUrl. Cannot determine stream type.";
}
if (parsed.protocol === "webrtc:" || parsed.protocol === "webrtcs:") {
return "webrtc";
}
var lastDotPosition = parsed.pathname.lastIndexOf(".");
if (lastDotPosition !== -1) {
var extension = parsed.pathname.substring(lastDotPosition + 1);
if (extension.toLowerCase() === "m3u8") {
return "hls";
}
}
// By default, 'mjpg' is the stream type.
return "mjpg";
};
var saveToLocalStorage = function (key, data) {
+17 -1
View File
@@ -202,6 +202,21 @@ $(function () {
//~~ AJAX setup
$.ajaxSetup({
beforeSend: function (xhr, settings) {
// we already do that in the js client lib, but a lot of plugins don't use
// that but rather use $.ajax directly, so we need to do it here as well
var csrfToken = OctoPrint.getCookie("csrf_token");
if (
!/^(GET|HEAD|OPTIONS)$/.test(settings.type) &&
csrfToken &&
!this.crossDomain
) {
xhr.setRequestHeader("X-CSRF-Token", csrfToken);
}
}
});
// work around a stupid iOS6 bug where ajax requests get cached and only work once, as described at
// http://stackoverflow.com/questions/12506897/is-safari-on-ios-6-caching-ajax-results
$.ajaxPrefilter(function (options, originalOptions, jqXHR) {
@@ -219,7 +234,8 @@ $(function () {
$.widget("blueimp.fileupload", $.blueimp.fileupload, {
options: {
dropZone: null,
pasteZone: null
pasteZone: null,
headers: OctoPrint.getRequestHeaders("POST")
}
});
@@ -40,10 +40,12 @@ $(function () {
groups: ko.observableArray([]),
permissions: ko.observableArray([]),
password: ko.observable(undefined),
currentPassword: ko.observable(undefined),
repeatedPassword: ko.observable(undefined),
passwordMismatch: ko.pureComputed(function () {
return self.editor.password() !== self.editor.repeatedPassword();
}),
currentPasswordMismatch: ko.observable(false),
apikey: ko.observable(undefined),
active: ko.observable(undefined),
permissionSelectable: function (permission) {
@@ -128,6 +130,11 @@ $(function () {
}
self.editor.password(undefined);
self.editor.repeatedPassword(undefined);
self.editor.currentPassword(undefined);
self.editor.currentPasswordMismatch(false);
});
self.editor.currentPassword.subscribe(function () {
self.editor.currentPasswordMismatch(false);
});
self.requestData = function () {
@@ -244,13 +251,21 @@ $(function () {
self.confirmChangePassword = function () {
if (!CONFIG_ACCESS_CONTROL) return;
self.updatePassword(self.currentUser().name, self.editor.password()).done(
function () {
self.updatePassword(
self.currentUser().name,
self.editor.password(),
self.editor.currentPassword()
)
.done(function () {
// close dialog
self.currentUser(undefined);
self.changePasswordDialog.modal("hide");
}
);
})
.fail(function (xhr) {
if (xhr.status === 403) {
self.currentPasswordMismatch(true);
}
});
};
self.confirmGenerateApikey = function () {
@@ -324,7 +339,7 @@ $(function () {
title: gettext("Are you sure?"),
message: _.sprintf(
gettext('You are about to delete the user "%(name)s".'),
{name: user.name}
{name: _.escape(user.name)}
),
proceed: gettext("Delete"),
onproceed: function () {
@@ -349,8 +364,8 @@ $(function () {
.done(self.fromResponse);
};
self.updatePassword = function (username, password) {
return OctoPrint.access.users.changePassword(username, password);
self.updatePassword = function (username, password, current) {
return OctoPrint.access.users.changePassword(username, password, current);
};
self.generateApikey = function (username) {
@@ -656,7 +671,7 @@ $(function () {
title: gettext("Are you sure?"),
message: _.sprintf(
gettext('You are about to delete the group "%(name)s".'),
{name: group.name}
{name: _.escape(group.name)}
),
proceed: gettext("Delete"),
onproceed: function () {
@@ -847,7 +862,7 @@ $(function () {
access.onUserLoggedIn =
access.onUserLoggedOut =
function (user) {
if (access.loginState.hasPermission(access.permissions.SETTINGS)) {
if (access.loginState.hasPermission(access.permissions.ADMIN)) {
access.groups.requestData().done(function () {
access.users.requestData();
});
@@ -573,7 +573,7 @@ $(function () {
}
// Determine stream type and switch to corresponding webcam.
var streamType = determineWebcamStreamType(self.settings.webcam_streamUrl());
var streamType = self.settings.webcam_streamType();
if (streamType == "mjpg") {
self._switchToMjpgWebcam();
} else if (streamType == "hls") {
@@ -760,7 +760,7 @@ $(function () {
return;
}
var newSrc = self.settings.webcam_streamUrl();
var newSrc = self.settings.webcam_streamUrlEscaped();
if (currentSrc != newSrc) {
if (self.settings.webcam_cacheBuster()) {
if (newSrc.lastIndexOf("?") > -1) {
@@ -797,10 +797,10 @@ $(function () {
typeof video.canPlayType != undefined &&
video.canPlayType("application/vnd.apple.mpegurl") == "probably"
) {
video.src = self.settings.webcam_streamUrl();
video.src = self.settings.webcam_streamUrlEscaped();
} else if (Hls.isSupported()) {
self.hls = new Hls();
self.hls.loadSource(self.settings.webcam_streamUrl());
self.hls.loadSource(self.settings.webcam_streamUrlEscaped());
self.hls.attachMedia(video);
}
@@ -836,7 +836,7 @@ $(function () {
if (self.webRTCPeerConnection == null) {
self.webRTCPeerConnection = startWebRTC(
video,
self.settings.webcam_streamUrl(),
self.settings.webcam_streamUrlEscaped(),
self.settings.webcam_streamWebrtcIceServers()
);
}
+17 -11
View File
@@ -1600,9 +1600,7 @@ $(function () {
name: file.name
})
);
$("input", self.uploadExistsDialog)
.val("")
.prop("placeholder", response.suggestion);
$("input", self.uploadExistsDialog).val(response.suggestion);
$("a.upload-rename", self.uploadExistsDialog)
.prop("disabled", false)
.off("click")
@@ -1611,7 +1609,6 @@ $(function () {
"input",
self.uploadExistsDialog
).val();
if (newName === "") newName = response.suggestion;
OctoPrint.files
.exists("local", path, newName)
@@ -1645,13 +1642,22 @@ $(function () {
}
});
});
$("a.upload-overwrite", self.uploadExistsDialog)
.off("click")
.on("click", function () {
self.uploadExistsDialog.modal("hide");
data.formData = formData;
data.submit();
});
if (
self.loginState.hasPermission(
self.access.permissions.FILES_DELETE
)
) {
$("a.upload-overwrite", self.uploadExistsDialog)
.off("click")
.show()
.on("click", function () {
self.uploadExistsDialog.modal("hide");
data.formData = formData;
data.submit();
});
} else {
$("a.upload-overwrite", self.uploadExistsDialog).hide();
}
self.uploadExistsDialog.modal("show");
} else {
data.formData = formData;
@@ -255,8 +255,6 @@ $(function () {
self.folder_uploads = ko.observable(undefined);
self.folder_timelapse = ko.observable(undefined);
self.folder_timelapseTmp = ko.observable(undefined);
self.folder_logs = ko.observable(undefined);
self.folder_watched = ko.observable(undefined);
self.scripts_gcode_beforePrintStarted = ko.observable(undefined);
@@ -312,13 +310,20 @@ $(function () {
self.webcam_ffmpegPathOk(false);
self.webcam_ffmpegPathBroken(false);
};
self.webcam_streamUrlEscaped = ko.pureComputed(function () {
return encodeURI(self.webcam_streamUrl());
});
self.webcam_streamType = ko.pureComputed(function () {
try {
return determineWebcamStreamType(self.webcam_streamUrl());
return determineWebcamStreamType(self.webcam_streamUrlEscaped());
} catch (e) {
return "";
}
});
self.webcam_streamValid = ko.pureComputed(function () {
var url = self.webcam_streamUrlEscaped();
return !url || validateWebcamUrl(url);
});
self.server_onlineCheckText = ko.observable();
self.server_onlineCheckOk = ko.observable(false);
@@ -337,7 +342,7 @@ $(function () {
self.server_onlineCheckResolutionBroken(false);
};
var folderTypes = ["uploads", "timelapse", "timelapseTmp", "logs", "watched"];
var folderTypes = ["uploads", "timelapse", "watched"];
var checkForDuplicateFolders = function () {
_.each(folderTypes, function (folderType) {
@@ -439,7 +444,8 @@ $(function () {
self.testWebcamStreamUrlBusy = ko.observable(false);
self.testWebcamStreamUrl = function () {
if (!self.webcam_streamUrl()) {
var url = self.webcam_streamUrlEscaped();
if (!url) {
return;
}
@@ -450,24 +456,31 @@ $(function () {
var text = gettext(
"If you see your webcam stream below, the entered stream URL is ok."
);
var streamType = self.webcam_streamType();
var streamType;
try {
streamType = self.webcam_streamType();
} catch (e) {
streamType = "";
}
var webcam_element;
var webrtc_peer_connection;
if (streamType == "mjpg") {
webcam_element = $('<img src="' + self.webcam_streamUrl() + '">');
} else if (streamType == "hls") {
if (streamType === "mjpg") {
webcam_element = $('<img src="' + url + '">');
} else if (streamType === "hls") {
webcam_element = $(
'<video id="webcam_hls" muted autoplay style="width: 100%"/>'
);
video_element = webcam_element[0];
if (video_element.canPlayType("application/vnd.apple.mpegurl")) {
video_element.src = self.webcam_streamUrl();
video_element.src = url;
} else if (Hls.isSupported()) {
var hls = new Hls();
hls.loadSource(self.webcam_streamUrl());
hls.loadSource(url);
hls.attachMedia(video_element);
}
} else if (isWebRTCAvailable() && streamType == "webrtc") {
} else if (isWebRTCAvailable() && streamType === "webrtc") {
webcam_element = $(
'<video id="webcam_webrtc" muted autoplay playsinline controls style="width: 100%"/>'
);
@@ -475,7 +488,7 @@ $(function () {
webrtc_peer_connection = startWebRTC(
video_element,
self.webcam_streamUrl(),
url,
self.webcam_streamWebrtcIceServers()
);
} else {
@@ -757,7 +770,6 @@ $(function () {
dataType: "json",
maxNumberOfFiles: 1,
autoUpload: false,
headers: OctoPrint.getRequestHeaders(),
add: function (e, data) {
if (data.files.length == 0) {
return false;
@@ -225,6 +225,8 @@ $(function () {
};
self._processCurrentLogData = function (data) {
if (!data) return;
var length = self.log().length;
if (length >= self.upperLimit()) {
return;
@@ -276,6 +278,8 @@ $(function () {
};
self._processHistoryLogData = function (data) {
if (!data) return;
self.plainLogLines(data);
self.log(_.map(data, self._toInternalFormat));
self.updateOutput();
@@ -25,6 +25,8 @@ $(function () {
self.access_password = ko.observable(undefined);
self.access_repeatedPassword = ko.observable(undefined);
self.access_currentPassword = ko.observable(undefined);
self.access_currentPasswordMismatch = ko.observable(false);
self.access_apikey = ko.observable(undefined);
self.interface_language = ko.observable(undefined);
@@ -32,6 +34,8 @@ $(function () {
self.currentUser.subscribe(function (newUser) {
self.access_password(undefined);
self.access_repeatedPassword(undefined);
self.access_currentPassword(undefined);
self.access_currentPasswordMismatch(false);
self.access_apikey(undefined);
self.interface_language("_default");
@@ -45,6 +49,9 @@ $(function () {
}
}
});
self.access_currentPassword.subscribe(function () {
self.access_currentPasswordMismatch(false);
});
self.passwordMismatch = ko.pureComputed(function () {
return self.access_password() !== self.access_repeatedPassword();
@@ -81,25 +88,38 @@ $(function () {
self.userSettingsDialog.trigger("beforeSave");
if (self.access_password() && !self.passwordMismatch()) {
self.users.updatePassword(
self.currentUser().name,
self.access_password(),
function () {}
);
function saveSettings() {
var settings = {
interface: {
language: self.interface_language()
}
};
self.updateSettings(self.currentUser().name, settings).done(function () {
// close dialog
self.currentUser(undefined);
self.userSettingsDialog.modal("hide");
self.loginState.reloadUser();
});
}
var settings = {
interface: {
language: self.interface_language()
}
};
self.updateSettings(self.currentUser().name, settings).done(function () {
// close dialog
self.currentUser(undefined);
self.userSettingsDialog.modal("hide");
self.loginState.reloadUser();
});
if (self.access_password() && !self.passwordMismatch()) {
self.users
.updatePassword(
self.currentUser().name,
self.access_password(),
self.access_currentPassword()
)
.done(function () {
saveSettings();
})
.fail(function (xhr) {
if (xhr.status === 403) {
self.access_currentPasswordMismatch(true);
}
});
} else {
saveSettings();
}
};
self.copyApikey = function () {
+10 -4
View File
@@ -11,7 +11,8 @@ $(function () {
};
var overlayElement = $("#login-overlay");
var errorElement = $("#login-error");
var errorCredentialsElement = $("#login-error-credentials");
var errorRateElement = $("#login-error-rate");
var offlineElement = $("#login-offline");
var buttonElement = $("#login-button");
var reconnectElement = $("#login-reconnect");
@@ -28,7 +29,8 @@ $(function () {
var remember = rememberElement.prop("checked");
overlayElement.addClass("in");
errorElement.removeClass("in");
errorCredentialsElement.removeClass("in");
errorRateElement.removeClass("in");
OctoPrint.browser
.login(username, password, remember)
@@ -36,7 +38,7 @@ $(function () {
ignoreDisconnect = true;
window.location.href = REDIRECT_URL;
})
.fail(function () {
.fail(function (xhr) {
usernameElement.val(USER_ID);
passwordElement.val("");
@@ -47,7 +49,11 @@ $(function () {
}
overlayElement.removeClass("in");
errorElement.addClass("in");
if (xhr.status === 429) {
errorRateElement.addClass("in");
} else {
errorCredentialsElement.addClass("in");
}
});
return false;
+2 -1
View File
@@ -31,7 +31,8 @@ body {
}
}
#login-error,
#login-error-credentials,
#login-error-rate,
#login-offline {
display: none;
@@ -92,7 +92,7 @@
<div data-bind="visible: languagePacksAvailable()">
<div id="settings_appearance_managelanguagesdialog_list" data-bind="foreach: translations.paginatedItems">
<div class="entry">
<strong><a href="#" class="fas" data-bind="toggleContent: { class: 'fa-caret-right fa-caret-down', parent: '.entry', container: '.packs' }"><i class="fas fa-caret-down"></i> <span data-bind="text: $root.languagePackDisplay($data)"></span></a></strong>
<strong><a href="#" data-bind="toggleContent: { class: 'fa-caret-right fa-caret-down', parent: '.entry', container: '.packs' }"><i class="fas fa-caret-down"></i> <span data-bind="text: $root.languagePackDisplay($data)"></span></a></strong>
<div class="packs">
<!-- ko foreach: $data.packs -->
<div class="row-fluid">
@@ -20,26 +20,6 @@
<span class="help-block" data-bind="visible: testFolderConfigBroken.timelapse() || testFolderConfigOk.timelapse(), text: testFolderConfigText.timelapse"></span>
</div>
</div>
<div class="control-group" data-bind="css: {error: testFolderConfigError.timelapseTmp, success: testFolderConfigSuccess.timelapseTmp}">
<label class="control-label" for="settings-folderTimelapseTemp">{{ _('Timelapse Temp Folder') }}</label>
<div class="controls">
<div class="input-append input-block-level">
<input type="text" data-bind="value: folder_timelapseTmp, valueUpdate: 'input'" id="settings-folderTimelapseTemp">
<a class="btn add-on" data-bind="click: function() { testFolderConfig('timelapseTmp'); }, enable: folder_timelapseTmp() && !testFolderConfigBusy(), css: {disabled: !folder_timelapseTmp() || testFolderConfigBusy()}"><i class="fas fa-spinner fa-spin" data-bind="visible: testFolderConfigBusy"></i> {{ _('Test') }}</a>
</div>
<span class="help-block" data-bind="visible: testFolderConfigBroken.timelapseTmp() || testFolderConfigOk.timelapseTmp(), text: testFolderConfigText.timelapseTmp"></span>
</div>
</div>
<div class="control-group" data-bind="css: {error: testFolderConfigError.logs, success: testFolderConfigSuccess.logs}">
<label class="control-label" for="settings-folderLogs">{{ _('Logs Folder') }}</label>
<div class="controls">
<div class="input-append input-block-level">
<input type="text" data-bind="value: folder_logs, valueUpdate: 'input'" id="settings-folderLogs">
<a class="btn add-on" data-bind="click: function() { testFolderConfig('logs'); }, enable: folder_logs() && !testFolderConfigBusy(), css: {disabled: !folder_logs() || testFolderConfigBusy()}"><i class="fas fa-spinner fa-spin" data-bind="visible: testFolderConfigBusy"></i> {{ _('Test') }}</a>
</div>
<span class="help-block" data-bind="visible: testFolderConfigBroken.logs() || testFolderConfigOk.logs(), text: testFolderConfigText.logs"></span>
</div>
</div>
<div class="control-group" data-bind="css: {error: testFolderConfigError.watched, success: testFolderConfigSuccess.watched}">
<label class="control-label" for="settings-folderWatched">{{ _('Watched Folder') }}</label>
<div class="controls">
@@ -65,6 +45,11 @@
{% endtrans %}
</div>
<p>{% trans %}
Please note: Not all of the folders used by OctoPrint can be configured through the UI, only those most commonly moved to other places. If you need to configure other folders,
please do so by manually editing the configuration. See the docs for details.
{% endtrans %}</p>
<h3>{{ _('Disk space thresholds') }}</h3>
<p>{{ _('If the free disk space falls below these thresholds, OctoPrint will warn the user.') }}</p>
@@ -4,6 +4,13 @@
<p>
{{ _('If you do not wish to change your password, just leave the following fields empty.') }}
</p>
<div class="control-group" data-bind="css: {error: access_currentPasswordMismatch()}">
<label class="control-label" for="userSettings-access_currentPassword">{{ _('Current Password') }}</label>
<div class="controls">
<input type="password" class="input-block-level" id="userSettings-access_currentPassword" data-bind="value: access_currentPassword, valueUpdate: 'afterkeydown'" required>
<span class="help-inline" data-bind="visible: access_currentPasswordMismatch()">{{ _('Passwords do not match') }}</span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="userSettings-access_password">{{ _('New Password') }}</label>
<div class="controls">
@@ -17,6 +24,9 @@
<span class="help-inline" data-bind="visible: passwordMismatch()">{{ _('Passwords do not match') }}</span>
</div>
</div>
<p>{% trans %}
Please note that you will be <strong>logged out immediately</strong> after changing your password and asked to login again.
{% endtrans %}</p>
</fieldset>
<fieldset>
<legend>{{ _('API Key') }}</legend>
+4 -3
View File
@@ -65,16 +65,17 @@
<form class="form-signin">
<h2 class="form-signin-heading" data-test-id="login-title">{{ _('Please log in') }}</h2>
<div id="login-error" class="alert alert-error" data-test-id="login-error">{{ _('Incorrect username or password. Hint: Both are case sensitive!') }}</div>
<div id="login-error-credentials" class="alert alert-error" data-test-id="login-error">{{ _('Incorrect username or password. Hint: Both are case sensitive!') }}</div>
<div id="login-error-rate" class="alert alert-error" data-test-id="login-error-rate">{{ _('You have made too many failed login attempts. Please try again later.') }}</div>
<div id="login-offline" class="alert alert-error">{{ _('Server is currently offline.') }} <a id="login-reconnect" href="javascript:void(0)">{{ _('Reconnect...') }}</a></div>
{% if user_id %}<p>
{{ _('The following account is required:') }} {{ user_id }}
{{ _('The following account is required:') }} {{ user_id|e }}
</p>{% elif logged_in %}<p>
{{ _('An account with the following permissions is required:') }} {{ permission_names|join(", ") }}
</p>{% endif %}
<input type="text" id="login-user" data-test-id="login-username" class="input-block-level" placeholder="{{ _('Username')|edq }}" {% if user_id %}value="{{ user_id }}" disabled{% endif %} autofocus autocapitalize="none">
<input type="text" id="login-user" data-test-id="login-username" class="input-block-level" placeholder="{{ _('Username')|edq }}" {% if user_id %}value="{{ user_id|edq }}" disabled{% endif %} autofocus autocapitalize="none">
<input type="password" id="login-password" data-test-id="login-password" class="input-block-level" placeholder="{{ _('Password')|edq }}">
<span class="pull-right"><small><a href="https://faq.octoprint.org/forgotten-password" id="login-forgotpassword" target="_blank" tabindex="-1">{{ _('Forgot password?') }}</a></small></span>
<label class="checkbox">
@@ -1,9 +1,9 @@
<div class="control-group" title="{{ _('URL to embed into the UI for live viewing of the webcam stream')|edq }}">
<div class="control-group" title="{{ _('URL to embed into the UI for live viewing of the webcam stream')|edq }}" data-bind="css: { error: !webcam_streamValid() }">
<label class="control-label" for="settings-webcamStreamUrl">{{ _('Stream URL') }}</label>
<div class="controls">
<div class="input-append">
<input type="text" class="input-block-level" data-bind="value: webcam_streamUrl, valueUpdate: 'afterkeydown'" id="settings-webcamStreamUrl">
<button class="btn" type="button" data-bind="click: testWebcamStreamUrl, enable: webcam_streamUrl() && !testWebcamStreamUrlBusy(), css: {disabled: !webcam_streamUrl() || testWebcamStreamUrlBusy()}"><i class="fas fa-spinner fa-spin" data-bind="visible: testWebcamStreamUrlBusy"></i> {{ _('Test') }}</button>
<button class="btn" type="button" data-bind="click: testWebcamStreamUrl, enable: !testWebcamStreamUrlBusy() && webcam_streamValid(), css: {disabled: testWebcamStreamUrlBusy() || !webcam_streamValid()}"><i class="fas fa-spinner fa-spin" data-bind="visible: testWebcamStreamUrlBusy"></i> {{ _('Test') }}</button>
</div>
<span class="help-block">
<p>{% trans %}Needs to be reachable from the browser displaying the OctoPrint UI, used to embed the webcam stream into the page.{% endtrans %}</p>
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: OctoPrint 1.8.0\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2022-03-28 14:13+0200\n"
"POT-Creation-Date: 2022-09-19 16:23+0200\n"
"PO-Revision-Date: 2021-08-04 11:01+0200\n"
"Last-Translator: Gina Häußge <gina@octoprint.org>\n"
"Language: de\n"
@@ -327,7 +327,7 @@ msgstr ""
msgid "Announcements"
msgstr "Ankündigungen"
#: src/octoprint/plugins/announcements/__init__.py:629
#: src/octoprint/plugins/announcements/__init__.py:632
msgid ""
"Without this plugin you might miss important announcements regarding "
"security or other critical issues concerning OctoPrint."
@@ -435,7 +435,7 @@ msgstr "Erlaubt Zugriffsgewährung für Apps"
msgid "Application Keys"
msgstr "Application Keys"
#: src/octoprint/plugins/appkeys/__init__.py:253
#: src/octoprint/plugins/appkeys/__init__.py:254
#: src/octoprint/plugins/appkeys/static/js/appkeys.js:115
#, python-format
msgid ""
@@ -445,7 +445,7 @@ msgstr ""
"\"<strong>%(app)s</strong>\" möchte Zugriff auf OctoPrint über die API "
"haben."
#: src/octoprint/plugins/appkeys/__init__.py:539
#: src/octoprint/plugins/appkeys/__init__.py:543
msgid ""
"Without this plugin third party clients will no longer be able to obtain "
"an API key without you manually copy-pasting it."
@@ -529,7 +529,7 @@ msgstr "Applikationsidentifier"
#: src/octoprint/plugins/appkeys/templates/appkeys.jinja2:21
#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:45
#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:16
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:22
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:32
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:24
msgid "API Key"
msgstr "API Key"
@@ -543,7 +543,7 @@ msgstr "API Key in die Zwischenablage kopieren"
#: src/octoprint/plugins/appkeys/templates/appkeys.jinja2:28
#: src/octoprint/templates/dialogs/settings/api.jinja2:38
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:36
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:46
msgid "QR Code"
msgstr "QR Code"
@@ -693,7 +693,7 @@ msgstr "Sicherung & Wiederherstellung"
msgid "Restore Backup?"
msgstr "Sicherung wiederherstellen?"
#: src/octoprint/plugins/backup/__init__.py:1398
#: src/octoprint/plugins/backup/__init__.py:1418
msgid ""
"Without this plugin you will no longer be able to backup & restore your "
"OctoPrint settings and data."
@@ -701,19 +701,19 @@ msgstr ""
"Ohne dieses Plugin kannst du deine OctoPrint Einstellung und Daten nicht "
"länger sichern & wiederherstellen."
#: src/octoprint/plugins/backup/static/js/backup.js:95
#: src/octoprint/plugins/backup/static/js/backup.js:94
#, python-format
msgid "You are about to delete backup file \"%(name)s\"."
msgstr "Du bist im Begriff, die Sicherung \"%(name)s\" zu löschen."
#: src/octoprint/plugins/backup/static/js/backup.js:120
#: src/octoprint/plugins/backup/static/js/backup.js:119
#, python-format
msgid ""
"You are about to restore the backup file \"%(name)s\". This cannot be "
"undone."
msgstr "Du bist im Begriff, die Sicherung \"%(name)s\" wiederherzustellen."
#: src/octoprint/plugins/backup/static/js/backup.js:150
#: src/octoprint/plugins/backup/static/js/backup.js:149
#, python-format
msgid ""
"You are about to upload and restore the backup file \"%(name)s\". This "
@@ -722,7 +722,7 @@ msgstr ""
"Du bist im Begriff, die Sicherung \"%(name)s\" hochzuladen und "
"wiederherzustellen. Das kann nicht rückgängig gemacht werden."
#: src/octoprint/plugins/backup/static/js/backup.js:166
#: src/octoprint/plugins/backup/static/js/backup.js:165
msgid ""
"You are about to delete the record of plugins unknown during the last "
"restore."
@@ -730,20 +730,20 @@ msgstr ""
"Du bist dabei, die Liste der Plugins zu löschen, die während der letzten "
"Wiederherstellung unbekannt waren."
#: src/octoprint/plugins/backup/static/js/backup.js:199
#: src/octoprint/plugins/backup/static/js/backup.js:198
#, python-format
msgid "You are about to delete %(count)d backups."
msgstr "Du bist im Begriff, %(count)d Sicherungen zu löschen."
#: src/octoprint/plugins/backup/static/js/backup.js:222
#: src/octoprint/plugins/backup/static/js/backup.js:221
msgid "Backup created successfully"
msgstr "Backup erfolgreich erstellt"
#: src/octoprint/plugins/backup/static/js/backup.js:231
#: src/octoprint/plugins/backup/static/js/backup.js:230
msgid "Creating the backup failed"
msgstr "Backuperstellung fehlgeschlagen"
#: src/octoprint/plugins/backup/static/js/backup.js:233
#: src/octoprint/plugins/backup/static/js/backup.js:232
#, python-format
msgid ""
"OctoPrint could not create your backup. Please consult "
@@ -752,12 +752,12 @@ msgstr ""
"OctoPrint konnte dein Backup nicht erstellen. Bitte konsultiere "
"<code>octoprint.log</code> für Details. Fehler: %(error)s"
#: src/octoprint/plugins/backup/static/js/backup.js:243
#: src/octoprint/plugins/backup/static/js/backup.js:242
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:120
msgid "Restoring from backup..."
msgstr "Stelle Sicherung wieder her..."
#: src/octoprint/plugins/backup/static/js/backup.js:250
#: src/octoprint/plugins/backup/static/js/backup.js:249
msgid ""
"Restore failed! Check the above output and octoprint.log for reasons as "
"to why."
@@ -765,16 +765,16 @@ msgstr ""
"Wiederherstellung fehlgeschlagen! Prüfe die obige Ausgabe sowie "
"octoprint.log für mögliche Gründe dafür."
#: src/octoprint/plugins/backup/static/js/backup.js:259
#: src/octoprint/plugins/backup/static/js/backup.js:258
msgid "Restore successful! The server will now be restarted!"
msgstr "Wiederherstellung erfolgreich! Der Server wird jetzt neu gestartet!"
#: src/octoprint/plugins/backup/static/js/backup.js:268
#: src/octoprint/plugins/backup/static/js/backup.js:267
#, python-format
msgid "Installing plugin \"%(plugin)s\"..."
msgstr "Installiere Plugin \"%(plugin)s\"..."
#: src/octoprint/plugins/backup/static/js/backup.js:277
#: src/octoprint/plugins/backup/static/js/backup.js:276
#, python-format
msgid ""
"Cannot install plugin \"%(plugin)s\" due to it being incompatible to this"
@@ -783,7 +783,7 @@ msgstr ""
"Kann Plugin \"%(plugin)s\" nicht installieren, da es mit dieser OctoPrint"
" Version oder dem darunter liegenden Betriebssystem inkompatibel ist"
#: src/octoprint/plugins/backup/static/js/backup.js:289
#: src/octoprint/plugins/backup/static/js/backup.js:288
#, python-format
msgid ""
"There are %(count)d plugins you'll need to install manually since they "
@@ -792,16 +792,16 @@ msgstr ""
"Du musst %(count)d Plugins manuell installieren, da sie nicht im "
"Repository registriert sind:"
#: src/octoprint/plugins/backup/static/js/backup.js:331
#: src/octoprint/plugins/backup/static/js/backup.js:330
msgid "Deleting backups"
msgstr "Lösche Sicherungen"
#: src/octoprint/plugins/backup/static/js/backup.js:332
#: src/octoprint/plugins/backup/static/js/backup.js:331
#, python-format
msgid "Deleting %(count)d backups..."
msgstr "Lösche %(count)d Sicherungen..."
#: src/octoprint/plugins/backup/static/js/backup.js:340
#: src/octoprint/plugins/backup/static/js/backup.js:339
#: src/octoprint/plugins/logging/static/js/logging.js:349
#: src/octoprint/static/js/app/viewmodels/timelapse.js:479
#: src/octoprint/static/js/app/viewmodels/timelapse.js:511
@@ -809,7 +809,7 @@ msgstr "Lösche %(count)d Sicherungen..."
msgid "Deleted %(filename)s..."
msgstr "%(filename)s gelöscht..."
#: src/octoprint/plugins/backup/static/js/backup.js:348
#: src/octoprint/plugins/backup/static/js/backup.js:347
#: src/octoprint/plugins/logging/static/js/logging.js:357
#: src/octoprint/static/js/app/viewmodels/timelapse.js:487
#: src/octoprint/static/js/app/viewmodels/timelapse.js:520
@@ -817,7 +817,7 @@ msgstr "%(filename)s gelöscht..."
msgid "Deletion of %(filename)s failed, continuing..."
msgstr "Löschen von %(filename)s fehlgeschlagen, fahre fort..."
#: src/octoprint/plugins/backup/static/js/backup.js:352
#: src/octoprint/plugins/backup/static/js/backup.js:351
#: src/octoprint/plugins/logging/static/js/logging.js:361
#: src/octoprint/static/js/app/viewmodels/timelapse.js:491
#, python-format
@@ -890,8 +890,8 @@ msgid "This backup exceeds the maximum allowed upload size"
msgstr "Dieses Backup übersteigt die erlaubte Uploadgröße"
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:49
#: src/octoprint/static/js/app/viewmodels/access.js:329
#: src/octoprint/static/js/app/viewmodels/access.js:661
#: src/octoprint/static/js/app/viewmodels/access.js:344
#: src/octoprint/static/js/app/viewmodels/access.js:676
#: src/octoprint/templates/dialogs/settings/appearance.jinja2:104
msgid "Delete"
msgstr "Löschen"
@@ -1026,7 +1026,7 @@ msgstr "Durchsuchen..."
msgid "Upload & restore"
msgstr "Hochladen & wiederherstellen"
#: src/octoprint/plugins/corewizard/__init__.py:131
#: src/octoprint/plugins/corewizard/__init__.py:136
msgid ""
"Without this plugin OctoPrint will no longer be able to perform setup "
"steps that might be required after an update."
@@ -1041,13 +1041,13 @@ msgid "Server Commands"
msgstr "Serverbefehle"
#: src/octoprint/plugins/corewizard/subwizards.py:56
#: src/octoprint/server/views.py:1025
#: src/octoprint/server/views.py:1045
msgid "Webcam & Timelapse"
msgstr "Webcam & Zeitraffer"
#: src/octoprint/plugins/corewizard/subwizards.py:71
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:1
#: src/octoprint/server/views.py:1042
#: src/octoprint/server/views.py:1062
#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:1
msgid "Access Control"
msgstr "Zugangsbeschränkung"
@@ -1125,7 +1125,7 @@ msgstr ""
"</p>"
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:11
#: src/octoprint/templates/login.jinja2:77
#: src/octoprint/templates/login.jinja2:78
#: src/octoprint/templates/navbar/login.jinja2:7
#: src/octoprint/templates/navbar/login.jinja2:8
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:83
@@ -1134,7 +1134,7 @@ msgstr "Username"
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:17
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:3
#: src/octoprint/templates/login.jinja2:78
#: src/octoprint/templates/login.jinja2:79
#: src/octoprint/templates/navbar/login.jinja2:10
#: src/octoprint/templates/navbar/login.jinja2:11
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:89
@@ -1146,7 +1146,8 @@ msgid "Confirm Password"
msgstr "Passwort bestätigen"
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:26
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:17
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:11
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:24
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:98
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:150
msgid "Passwords do not match"
@@ -1486,7 +1487,7 @@ msgstr ""
"<p>Um Snapshots zu Zeitrafferaufnahmen zu rendern muss OctoPrint auch den"
" korrekten <strong>Pfad zu FFMPEG</strong> wissen.</p>"
#: src/octoprint/plugins/discovery/__init__.py:801
#: src/octoprint/plugins/discovery/__init__.py:804
msgid ""
"Without this plugin your OctoPrint instance will no longer be "
"discoverable on the network via Bonjour and uPnP."
@@ -1803,7 +1804,7 @@ msgid "on mobile"
msgstr "auf Mobile"
#: src/octoprint/plugins/gcodeviewer/templates/gcodeviewer_settings.jinja2:19
#: src/octoprint/templates/dialogs/settings/folders.jinja2:85
#: src/octoprint/templates/dialogs/settings/folders.jinja2:70
msgid ""
"Provide values including size unit. Allowed units are: b, byte, bytes, "
"kb, mb, gb, tb (case insensitive). Example: <code>5MB</code>, "
@@ -1973,7 +1974,7 @@ msgstr ""
#: src/octoprint/plugins/gcodeviewer/templates/gcodeviewer_tab.jinja2:126
#: src/octoprint/plugins/softwareupdate/templates/snippets/pipEnableCheck.jinja2:4
#: src/octoprint/templates/dialogs/settings/folders.jinja2:73
#: src/octoprint/templates/dialogs/settings/folders.jinja2:58
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:114
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:550
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:566
@@ -2026,7 +2027,7 @@ msgstr ""
"Erlaubt den Download von Logdateien sowie deren Löschung und das Setzen "
"von Loglevels."
#: src/octoprint/plugins/logging/__init__.py:270
#: src/octoprint/plugins/logging/__init__.py:273
msgid ""
"Without this plugin you will no longer be able to retrieve OctoPrint's "
"logs or modify the current logging levels through the web interface."
@@ -2717,7 +2718,7 @@ msgstr ""
" Bugtracker mit allen erbetenen Logs.\n"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:47
#: src/octoprint/server/views.py:809
#: src/octoprint/server/views.py:829
msgid "Plugins"
msgstr "Plugins"
@@ -3165,7 +3166,7 @@ msgid "Python"
msgstr "Python"
#: src/octoprint/plugins/softwareupdate/__init__.py:1185
#: src/octoprint/plugins/softwareupdate/__init__.py:2345
#: src/octoprint/plugins/softwareupdate/__init__.py:2348
msgid "pip"
msgstr "pip"
@@ -3173,19 +3174,19 @@ msgstr "pip"
msgid "setuptools"
msgstr "setuptools"
#: src/octoprint/plugins/softwareupdate/__init__.py:1472
#: src/octoprint/plugins/softwareupdate/__init__.py:1489
#: src/octoprint/plugins/softwareupdate/__init__.py:1475
#: src/octoprint/plugins/softwareupdate/__init__.py:1492
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard_settings.jinja2:1
msgid "Software Update"
msgstr "Software Update"
#: src/octoprint/plugins/softwareupdate/__init__.py:1479
#: src/octoprint/plugins/softwareupdate/__init__.py:1482
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard_update.jinja2:1
msgid "Update?"
msgstr "Aktualisieren?"
#: src/octoprint/plugins/softwareupdate/__init__.py:2323
#: src/octoprint/server/views.py:1040
#: src/octoprint/plugins/softwareupdate/__init__.py:2326
#: src/octoprint/server/views.py:1060
#: src/octoprint/static/js/app/viewmodels/appearance.js:106
#: src/octoprint/static/js/app/viewmodels/appearance.js:110
#: src/octoprint/static/js/app/viewmodels/appearance.js:111
@@ -3196,7 +3197,7 @@ msgstr "Aktualisieren?"
msgid "OctoPrint"
msgstr "OctoPrint"
#: src/octoprint/plugins/softwareupdate/__init__.py:2544
#: src/octoprint/plugins/softwareupdate/__init__.py:2547
msgid ""
"Without this plugin OctoPrint will no longer be able to update itself or "
"any of your installed plugins which might put your system at risk."
@@ -4210,103 +4211,103 @@ msgstr ""
"zur Verbindung zur Verfügung gestellt, mit einer Fake-"
"Druckerimplementierung. Sinnvoll für die Entwicklung."
#: src/octoprint/server/views.py:896
#: src/octoprint/server/views.py:916
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:16
msgid "Connection"
msgstr "Verbindung"
#: src/octoprint/server/views.py:907
#: src/octoprint/server/views.py:927
#: src/octoprint/templates/sidebar/state.jinja2:1
msgid "State"
msgstr "Status"
#: src/octoprint/server/views.py:917
#: src/octoprint/server/views.py:937
msgid "Files"
msgstr "Dateien"
#: src/octoprint/server/views.py:934
#: src/octoprint/server/views.py:954
msgid "Temperature"
msgstr "Temperatur"
#: src/octoprint/server/views.py:943
#: src/octoprint/server/views.py:963
msgid "Control"
msgstr "Steuerung"
#: src/octoprint/server/views.py:952
#: src/octoprint/server/views.py:972
msgid "Terminal"
msgstr "Terminal"
#: src/octoprint/server/views.py:961
#: src/octoprint/server/views.py:981
#: src/octoprint/templates/sidebar/state.jinja2:11
msgid "Timelapse"
msgstr "Zeitraffer"
#: src/octoprint/server/views.py:974
#: src/octoprint/server/views.py:994
msgid "Printer"
msgstr "Drucker"
#: src/octoprint/server/views.py:976
#: src/octoprint/server/views.py:996
msgid "Serial Connection"
msgstr "Serielle Verbindung"
#: src/octoprint/server/views.py:984
#: src/octoprint/server/views.py:1004
#: src/octoprint/templates/dialogs/settings/printerprofiles.jinja2:1
msgid "Printer Profiles"
msgstr "Druckerprofile"
#: src/octoprint/server/views.py:992
#: src/octoprint/server/views.py:1012
msgid "Temperatures"
msgstr "Temperaturen"
#: src/octoprint/server/views.py:1000
#: src/octoprint/server/views.py:1020
#: src/octoprint/templates/dialogs/settings/terminalfilters.jinja2:1
msgid "Terminal Filters"
msgstr "Terminalfilter"
#: src/octoprint/server/views.py:1008
#: src/octoprint/server/views.py:1028
#: src/octoprint/templates/dialogs/settings/gcodescripts.jinja2:1
msgid "GCODE Scripts"
msgstr "GCODE Scripts"
#: src/octoprint/server/views.py:1015 src/octoprint/server/views.py:1017
#: src/octoprint/server/views.py:1035 src/octoprint/server/views.py:1037
#: src/octoprint/templates/dialogs/settings/features.jinja2:1
msgid "Features"
msgstr "Funktionen"
#: src/octoprint/server/views.py:1033
#: src/octoprint/server/views.py:1053
msgid "API"
msgstr "API"
#: src/octoprint/server/views.py:1050
#: src/octoprint/server/views.py:1070
#: src/octoprint/templates/dialogs/settings/folders.jinja2:2
#: src/octoprint/templates/sidebar/files_header.jinja2:13
msgid "Folders"
msgstr "Verzeichnisse"
#: src/octoprint/server/views.py:1058
#: src/octoprint/server/views.py:1078
#: src/octoprint/templates/dialogs/settings/appearance.jinja2:1
msgid "Appearance"
msgstr "Aussehen"
#: src/octoprint/server/views.py:1066
#: src/octoprint/server/views.py:1086
#: src/octoprint/templates/dialogs/settings/server.jinja2:1
msgid "Server"
msgstr "Server"
#: src/octoprint/server/views.py:1079
#: src/octoprint/server/views.py:1099
msgid "Access"
msgstr "Zugriff"
#: src/octoprint/server/views.py:1087
#: src/octoprint/server/views.py:1107
msgid "Interface"
msgstr "Interface"
#: src/octoprint/server/views.py:1117
#: src/octoprint/server/views.py:1137
#: src/octoprint/static/js/app/viewmodels/temperature.js:208
msgid "Start"
msgstr "Start"
#: src/octoprint/server/views.py:1124
#: src/octoprint/server/views.py:1144
#: src/octoprint/templates/dialogs/wizard.jinja2:57
msgid "Finish"
msgstr "Beenden"
@@ -4659,8 +4660,8 @@ msgid "off"
msgstr "Aus"
#: src/octoprint/static/js/app/helpers.js:793
#: src/octoprint/static/js/app/viewmodels/access.js:324
#: src/octoprint/static/js/app/viewmodels/access.js:656
#: src/octoprint/static/js/app/viewmodels/access.js:339
#: src/octoprint/static/js/app/viewmodels/access.js:671
#: src/octoprint/static/js/app/viewmodels/connection.js:188
msgid "Are you sure?"
msgstr "Bist Du sicher?"
@@ -4669,137 +4670,137 @@ msgstr "Bist Du sicher?"
msgid "Progress"
msgstr "Fortschritt"
#: src/octoprint/static/js/app/main.js:245
#: src/octoprint/static/js/app/main.js:261
msgid "Offline"
msgstr "Offline"
#: src/octoprint/static/js/app/main.js:246
#: src/octoprint/static/js/app/main.js:262
msgid "Offline after error"
msgstr "Offline nach Fehler"
#: src/octoprint/static/js/app/main.js:247
#: src/octoprint/static/js/app/main.js:263
#: src/octoprint/static/js/app/viewmodels/system.js:102
msgid "Error"
msgstr "Fehler"
#: src/octoprint/static/js/app/main.js:248
#: src/octoprint/static/js/app/main.js:264
msgid "Opening serial connection"
msgstr "Öffne serielle Verbindung"
#: src/octoprint/static/js/app/main.js:249
#: src/octoprint/static/js/app/main.js:265
msgid "Detecting serial connection"
msgstr "Detektiere serielle Verbindung"
#: src/octoprint/static/js/app/main.js:250
#: src/octoprint/static/js/app/main.js:266
msgid "Connecting"
msgstr "Verbinde"
#: src/octoprint/static/js/app/main.js:251
#: src/octoprint/static/js/app/main.js:267
msgid "Operational"
msgstr "Bereit"
#: src/octoprint/static/js/app/main.js:252
#: src/octoprint/static/js/app/main.js:268
msgid "Starting"
msgstr "Starte"
#: src/octoprint/static/js/app/main.js:253
#: src/octoprint/static/js/app/main.js:269
msgid "Starting print from SD"
msgstr "Starte Druck von SD"
#: src/octoprint/static/js/app/main.js:254
#: src/octoprint/static/js/app/main.js:270
msgid "Starting to send file to SD"
msgstr "Starte Dateitransfer zu SD"
#: src/octoprint/static/js/app/main.js:255
#: src/octoprint/static/js/app/main.js:271
msgid "Printing from SD"
msgstr "Drucke von SD"
#: src/octoprint/static/js/app/main.js:256
#: src/octoprint/static/js/app/main.js:272
msgid "Sending file to SD"
msgstr "Sende Datei zu SD"
#: src/octoprint/static/js/app/main.js:257
#: src/octoprint/static/js/app/main.js:273
msgid "Printing"
msgstr "Drucke"
#: src/octoprint/static/js/app/main.js:258
#: src/octoprint/static/js/app/main.js:274
msgid "Paused"
msgstr "Pausiert"
#: src/octoprint/static/js/app/main.js:259
#: src/octoprint/static/js/app/main.js:275
msgid "Closed"
msgstr "Geschlossen"
#: src/octoprint/static/js/app/main.js:260
#: src/octoprint/static/js/app/main.js:276
msgid "Transferring file to SD"
msgstr "Sende Datei zu SD"
#: src/octoprint/static/js/app/main.js:261
#: src/octoprint/static/js/app/main.js:277
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:563
msgid "Pausing"
msgstr "Pausiere"
#: src/octoprint/static/js/app/main.js:262
#: src/octoprint/static/js/app/main.js:278
msgid "Resuming"
msgstr "Setze fort"
#: src/octoprint/static/js/app/main.js:263
#: src/octoprint/static/js/app/main.js:279
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:572
msgid "Cancelling"
msgstr "Breche ab"
#: src/octoprint/static/js/app/main.js:264
#: src/octoprint/static/js/app/main.js:280
msgid "Finishing"
msgstr "Beende"
#: src/octoprint/static/js/app/main.js:1051
#: src/octoprint/static/js/app/main.js:1067
msgid "Loading OctoPrint's UI, please wait..."
msgstr "Lade OctoPrints Userinterface, bitte warten..."
#: src/octoprint/static/js/app/viewmodels/access.js:99
#: src/octoprint/static/js/app/viewmodels/access.js:101
msgid "This user may not have dangerous permissions."
msgstr "Dieser Nutzer darf keine gefährlichen Berechtigungen erhalten."
#: src/octoprint/static/js/app/viewmodels/access.js:114
#: src/octoprint/static/js/app/viewmodels/access.js:116
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:48
msgid "Add user"
msgstr "Nutzer hinzufügen"
#: src/octoprint/static/js/app/viewmodels/access.js:124
#: src/octoprint/static/js/app/viewmodels/access.js:126
#, python-format
msgid "Edit user \"%(name)s\""
msgstr "Editiere Nutzer \"%(name)s\""
#: src/octoprint/static/js/app/viewmodels/access.js:314
#: src/octoprint/static/js/app/viewmodels/access.js:329
msgid "Not possible"
msgstr "Nicht möglich"
#: src/octoprint/static/js/app/viewmodels/access.js:315
#: src/octoprint/static/js/app/viewmodels/access.js:330
msgid "You may not delete your own account."
msgstr "Du kannst deinen eigenen Account nicht löschen."
#: src/octoprint/static/js/app/viewmodels/access.js:326
#: src/octoprint/static/js/app/viewmodels/access.js:341
#, python-format
msgid "You are about to delete the user \"%(name)s\"."
msgstr "Du bist im Begriff, den Nutzer \"%(name)s\" zu löschen."
#: src/octoprint/static/js/app/viewmodels/access.js:459
#: src/octoprint/static/js/app/viewmodels/access.js:474
msgid "This group may not have dangerous permissions or subgroups."
msgstr ""
"Diese Gruppe darf keine gefährlichen Berechtigungen oder Untergruppern "
"erhalten."
#: src/octoprint/static/js/app/viewmodels/access.js:517
#: src/octoprint/static/js/app/viewmodels/access.js:532
#: src/octoprint/templates/snippets/settings/accesscontrol/groups.jinja2:47
msgid "Add group"
msgstr "Gruppe hinzufügen"
#: src/octoprint/static/js/app/viewmodels/access.js:529
#: src/octoprint/static/js/app/viewmodels/access.js:544
#, python-format
msgid "Edit group \"%(name)s\""
msgstr "Gruppe \"%(name)s\" bearbeiten"
#: src/octoprint/static/js/app/viewmodels/access.js:658
#: src/octoprint/static/js/app/viewmodels/access.js:673
#, python-format
msgid "You are about to delete the group \"%(name)s\"."
msgstr "Du bist im Begriff die Gruppe\"%(name)s\" zu löschen."
@@ -5014,11 +5015,11 @@ msgstr "Streaming von %(local)s nach %(remote)s nicht abgeschlossen"
msgid "File already exists: %(name)s"
msgstr "Datei existiert bereits: %(name)s"
#: src/octoprint/static/js/app/viewmodels/files.js:1673
#: src/octoprint/static/js/app/viewmodels/files.js:1679
msgid "Refreshing list ..."
msgstr "Liste wird aktualisiert ..."
#: src/octoprint/static/js/app/viewmodels/files.js:1703
#: src/octoprint/static/js/app/viewmodels/files.js:1709
msgid ""
"Could not upload the file to the printer's SD. Make sure the SD is "
"initialized and the printer is not busy with a print already."
@@ -5027,7 +5028,7 @@ msgstr ""
"dass die SD initialisiert ist und der Drucker nicht mit einem "
"Druckauftrag belegt ist."
#: src/octoprint/static/js/app/viewmodels/files.js:1707
#: src/octoprint/static/js/app/viewmodels/files.js:1713
msgid ""
"Could not upload the file, overwrite not possible. Make sure it is not "
"already printing and that you have allowed overwriting."
@@ -5036,7 +5037,7 @@ msgstr ""
"sicher, dass sie nicht bereits gedruckt wird und dass du Überschreiben "
"erlaubt hast."
#: src/octoprint/static/js/app/viewmodels/files.js:1716
#: src/octoprint/static/js/app/viewmodels/files.js:1722
#, python-format
msgid ""
"Could not upload the file. Make sure that it is a readable, valid file "
@@ -5046,7 +5047,7 @@ msgstr ""
"eine lesbare valide Datei mit einer dieser Erweiterungen ist: "
"%(extensions)s"
#: src/octoprint/static/js/app/viewmodels/files.js:1725
#: src/octoprint/static/js/app/viewmodels/files.js:1731
msgid ""
"Could not upload the file. Please check octoprint.log for possible "
"reasons."
@@ -5054,11 +5055,11 @@ msgstr ""
"Konnte die Datei nicht hochladen. Bitte überprüfe octoprint.log für "
"mögliche Gründe."
#: src/octoprint/static/js/app/viewmodels/files.js:1756
#: src/octoprint/static/js/app/viewmodels/files.js:1762
msgid "Saving ..."
msgstr "Speichere ..."
#: src/octoprint/static/js/app/viewmodels/files.js:1756
#: src/octoprint/static/js/app/viewmodels/files.js:1762
msgid "Uploading ..."
msgstr "Uploade ..."
@@ -5405,23 +5406,23 @@ msgstr "Weiß"
msgid "Autodetect from browser"
msgstr "Automatisch vom Browser erkennen"
#: src/octoprint/static/js/app/viewmodels/settings.js:450
#: src/octoprint/static/js/app/viewmodels/settings.js:456
msgid "If you see your webcam stream below, the entered stream URL is ok."
msgstr "Falls du unten den Webcamstream sehen kannst, ist die Stream-URL ok."
#: src/octoprint/static/js/app/viewmodels/settings.js:492
#: src/octoprint/static/js/app/viewmodels/settings.js:505
msgid "Stream test"
msgstr "Stream Test"
#: src/octoprint/static/js/app/viewmodels/settings.js:514
#: src/octoprint/static/js/app/viewmodels/settings.js:527
msgid "Could not retrieve snapshot URL, please double check the URL"
msgstr "Konnte die Snapshot-URL nicht abgreifen, bitte prüfen"
#: src/octoprint/static/js/app/viewmodels/settings.js:517
#: src/octoprint/static/js/app/viewmodels/settings.js:530
msgid "Snapshot test failed"
msgstr "Snapshot Test fehlgeschlagen"
#: src/octoprint/static/js/app/viewmodels/settings.js:537
#: src/octoprint/static/js/app/viewmodels/settings.js:550
#, python-format
msgid ""
"Could retrieve the snapshot URL, but it didn't look like an image. Got "
@@ -5433,67 +5434,67 @@ msgstr ""
"aus: <code>%(content_type)s</code>. Bitte überprüfe, dass die URL "
"einzelne Bilder zurückliefert, nicht multipart Daten oder Videos."
#: src/octoprint/static/js/app/viewmodels/settings.js:566
#: src/octoprint/static/js/app/viewmodels/settings.js:579
msgid ""
"If you see your webcam snapshot picture below, the entered snapshot URL "
"is ok."
msgstr "Falls du unten dein Snapshotbild sehen kannst, ist die Snapshot-URL ok."
#: src/octoprint/static/js/app/viewmodels/settings.js:570
#: src/octoprint/static/js/app/viewmodels/settings.js:583
msgid "Snapshot test"
msgstr "Snapshot Test"
#: src/octoprint/static/js/app/viewmodels/settings.js:612
#: src/octoprint/static/js/app/viewmodels/settings.js:625
msgid "The path doesn't exist"
msgstr "Der Pfad existiert nicht"
#: src/octoprint/static/js/app/viewmodels/settings.js:614
#: src/octoprint/static/js/app/viewmodels/settings.js:627
msgid "The path is not a file"
msgstr "Der Pfad ist keine Datei"
#: src/octoprint/static/js/app/viewmodels/settings.js:617
#: src/octoprint/static/js/app/viewmodels/settings.js:630
msgid "The path is not an executable"
msgstr "Der Pfad ist nicht ausführbar"
#: src/octoprint/static/js/app/viewmodels/settings.js:621
#: src/octoprint/static/js/app/viewmodels/settings.js:722
#: src/octoprint/static/js/app/viewmodels/settings.js:634
#: src/octoprint/static/js/app/viewmodels/settings.js:735
msgid "The path is valid"
msgstr "Der Pfad ist valide"
#: src/octoprint/static/js/app/viewmodels/settings.js:646
#: src/octoprint/static/js/app/viewmodels/settings.js:659
msgid "The server is not reachable"
msgstr "Der Server ist nicht erreichbar"
#: src/octoprint/static/js/app/viewmodels/settings.js:649
#: src/octoprint/static/js/app/viewmodels/settings.js:662
msgid "The server is reachable"
msgstr "Der Server ist erreichbar"
#: src/octoprint/static/js/app/viewmodels/settings.js:670
#: src/octoprint/static/js/app/viewmodels/settings.js:683
msgid "Name cannot be resolved"
msgstr "Name kann nicht aufgelöst werden"
#: src/octoprint/static/js/app/viewmodels/settings.js:674
#: src/octoprint/static/js/app/viewmodels/settings.js:687
msgid "Name can be resolved"
msgstr "Name kann aufgelöst werden"
#: src/octoprint/static/js/app/viewmodels/settings.js:706
#: src/octoprint/static/js/app/viewmodels/settings.js:719
msgid "The path is a broken symlink."
msgstr "Der Pfad ist ein kaputter Symlink."
#: src/octoprint/static/js/app/viewmodels/settings.js:710
#: src/octoprint/static/js/app/viewmodels/settings.js:723
msgid "The path does not exist and cannot be created."
msgstr "Der Pfad existiert nicht und kann nicht erstellt werden."
#: src/octoprint/static/js/app/viewmodels/settings.js:714
#: src/octoprint/static/js/app/viewmodels/settings.js:727
msgid "The path is not a folder."
msgstr "Der Pfad ist kein Verzeichnis."
#: src/octoprint/static/js/app/viewmodels/settings.js:718
#: src/octoprint/static/js/app/viewmodels/settings.js:731
msgid "The path is not writable."
msgstr "Der Pfad ist nicht beschreibbar."
#: src/octoprint/static/js/app/viewmodels/settings.js:859
#: src/octoprint/static/js/app/viewmodels/usersettings.js:122
#: src/octoprint/static/js/app/viewmodels/settings.js:871
#: src/octoprint/static/js/app/viewmodels/usersettings.js:142
msgid ""
"This will generate a new API Key. The old API Key will cease to function "
"immediately."
@@ -5633,20 +5634,20 @@ msgstr "zeige %(displayed)d Zeilen (Buffer voll)"
msgid "showing %(displayed)d lines"
msgstr "zeige %(displayed)d Zeilen"
#: src/octoprint/static/js/app/viewmodels/terminal.js:525
#: src/octoprint/static/js/app/viewmodels/terminal.js:529
#, python-format
msgid "The command <code>%(command)s</code> was not sent to the printer:"
msgstr "Der Befehl <code>%(command)s</code> wurde nicht zum Drucker gesendet:"
#: src/octoprint/static/js/app/viewmodels/terminal.js:532
#: src/octoprint/static/js/app/viewmodels/terminal.js:536
msgid "Suppressed command"
msgstr "Unterdrückter Befehl"
#: src/octoprint/static/js/app/viewmodels/terminal.js:541
#: src/octoprint/static/js/app/viewmodels/terminal.js:545
msgid "Invalid tool reported"
msgstr "Invalides Werkzeug gemeldet"
#: src/octoprint/static/js/app/viewmodels/terminal.js:543
#: src/octoprint/static/js/app/viewmodels/terminal.js:547
#, python-format
msgid ""
"Your printer reported tool T%(tool)d as invalid, reverting back to "
@@ -5829,7 +5830,7 @@ msgstr "Neue Zeitrafferaufnahme %(movie_prefix)s wurde fertig gerendert."
msgid "Site default"
msgstr "Seitenvoreinstellung"
#: src/octoprint/static/js/app/viewmodels/usersettings.js:137
#: src/octoprint/static/js/app/viewmodels/usersettings.js:157
msgid "This will delete the API Key. It will cease to to function immediately."
msgstr "Dies wird den API-Key löschen. Er wird sofort aufhören, zu funktionieren."
@@ -5891,34 +5892,38 @@ msgstr ""
"Groß-/Kleinschreibung!"
#: src/octoprint/templates/login.jinja2:69
msgid "You have made too many failed login attempts. Please try again later."
msgstr "Du hattest zu viele fehlgeschlagene Loginversuche. Bitte versuche es später noch einmal."
#: src/octoprint/templates/login.jinja2:70
#: src/octoprint/templates/recovery.jinja2:70
msgid "Server is currently offline."
msgstr "Der Server ist offline."
#: src/octoprint/templates/login.jinja2:69
#: src/octoprint/templates/login.jinja2:70
#: src/octoprint/templates/recovery.jinja2:70
msgid "Reconnect..."
msgstr "Erneut verbinden..."
#: src/octoprint/templates/login.jinja2:72
#: src/octoprint/templates/login.jinja2:73
msgid "The following account is required:"
msgstr "Der folgende Account wird benötigt:"
#: src/octoprint/templates/login.jinja2:74
#: src/octoprint/templates/login.jinja2:75
msgid "An account with the following permissions is required:"
msgstr "Ein Account mit den folgenden Berechtigungen wird benötigt:"
#: src/octoprint/templates/login.jinja2:79
#: src/octoprint/templates/login.jinja2:80
#: src/octoprint/templates/navbar/login.jinja2:9
msgid "Forgot password?"
msgstr "Passwort vergessen?"
#: src/octoprint/templates/login.jinja2:81
#: src/octoprint/templates/login.jinja2:82
#: src/octoprint/templates/navbar/login.jinja2:13
msgid "Remember me"
msgstr "Login merken"
#: src/octoprint/templates/login.jinja2:83
#: src/octoprint/templates/login.jinja2:84
msgid "Log in"
msgstr "Einloggen"
@@ -6373,7 +6378,7 @@ msgid "Access Application Keys"
msgstr "Auf Application Keys zugreifen"
#: src/octoprint/templates/dialogs/settings/api.jinja2:30
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:27
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:37
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:159
msgid "N/A"
msgstr "(nicht vorhanden)"
@@ -6625,8 +6630,6 @@ msgstr "Uploadverzeichnis"
#: src/octoprint/templates/dialogs/settings/folders.jinja2:8
#: src/octoprint/templates/dialogs/settings/folders.jinja2:18
#: src/octoprint/templates/dialogs/settings/folders.jinja2:28
#: src/octoprint/templates/dialogs/settings/folders.jinja2:38
#: src/octoprint/templates/dialogs/settings/folders.jinja2:48
#: src/octoprint/templates/snippets/settings/server/serverOnlineCheckTestConnectivity.jinja2:1
#: src/octoprint/templates/snippets/settings/server/serverOnlineCheckTestResolution.jinja2:1
#: src/octoprint/templates/snippets/settings/webcam/ffmpegPath.jinja2:6
@@ -6640,18 +6643,10 @@ msgid "Timelapse Folder"
msgstr "Zeitrafferverzeichnis"
#: src/octoprint/templates/dialogs/settings/folders.jinja2:24
msgid "Timelapse Temp Folder"
msgstr "Temporäres Zeitrafferverzeichnis"
#: src/octoprint/templates/dialogs/settings/folders.jinja2:34
msgid "Logs Folder"
msgstr "Logverzeichnis"
#: src/octoprint/templates/dialogs/settings/folders.jinja2:44
msgid "Watched Folder"
msgstr "Beobachtetes Verzeichnis"
#: src/octoprint/templates/dialogs/settings/folders.jinja2:56
#: src/octoprint/templates/dialogs/settings/folders.jinja2:36
msgid ""
"Actively poll the watched folder. Check this if files in your watched "
"folder aren't automatically added otherwise."
@@ -6660,7 +6655,7 @@ msgstr ""
"in Deinem beobachteten Verzeichnis hinzugefügt werden sonst nicht "
"automatisch hinzugefügt werden."
#: src/octoprint/templates/dialogs/settings/folders.jinja2:61
#: src/octoprint/templates/dialogs/settings/folders.jinja2:41
msgid ""
"\n"
" Two or more of the folders configured share a location. This "
@@ -6679,11 +6674,22 @@ msgstr ""
"Einstellungen gespeichert werden.\n"
" "
#: src/octoprint/templates/dialogs/settings/folders.jinja2:68
#: src/octoprint/templates/dialogs/settings/folders.jinja2:48
msgid ""
"\n"
" Please note: Not all of the folders used by OctoPrint can be "
"configured through the UI, only those most commonly moved to other "
"places. If you need to configure other folders,\n"
" please do so by manually editing the configuration. See the docs "
"for details.\n"
" "
msgstr ""
#: src/octoprint/templates/dialogs/settings/folders.jinja2:53
msgid "Disk space thresholds"
msgstr "Plattenplatzschwellwerte"
#: src/octoprint/templates/dialogs/settings/folders.jinja2:70
#: src/octoprint/templates/dialogs/settings/folders.jinja2:55
msgid ""
"If the free disk space falls below these thresholds, OctoPrint will warn "
"the user."
@@ -6691,7 +6697,7 @@ msgstr ""
"Falls der freie Plattenplatz unter diese Schwellwerte fallen sollte wird "
"OctoPrint den Nutzer warnen."
#: src/octoprint/templates/dialogs/settings/folders.jinja2:79
#: src/octoprint/templates/dialogs/settings/folders.jinja2:64
msgid "Critical"
msgstr "Kritisch"
@@ -7842,22 +7848,40 @@ msgstr ""
"leer."
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:8
msgid "Current Password"
msgstr "Aktuelles Passwort"
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:15
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:141
msgid "New Password"
msgstr "Neues Passwort"
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:14
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:21
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:95
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:147
msgid "Repeat Password"
msgstr "Passwort wiederholen"
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:24
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:27
msgid ""
"\n"
" Please note that you will be <strong>logged out "
"immediately</strong> after changing your password and asked to login "
"again.\n"
" "
msgstr ""
"\n"
" Bitte beachte, dass du nach Änderung deines Passworts "
"<strong>sofort ausgeloggt wirst</strong> und dich erneut einloggen "
"musst.\n"
" "
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:34
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:156
msgid "Current API Key"
msgstr "Aktueller API-Key"
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:32
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:42
msgid ""
"Please note that changes to the API key are applied immediately, without "
"having to \"Confirm\" first."
@@ -9557,3 +9581,9 @@ msgstr "Zeitrafferaufnahme rendern"
#~ "<code>pip</code> ist nicht unter der "
#~ "Kontrolle der OctoPrint-Maintainer, aktiviere"
#~ " diese Prüfung auf eigene Gefahr."
#~ msgid "Timelapse Temp Folder"
#~ msgstr "Temporäres Zeitrafferverzeichnis"
#~ msgid "Logs Folder"
#~ msgstr "Logverzeichnis"
+9 -4
View File
@@ -198,10 +198,15 @@ def serialList():
else:
candidates = []
with os.scandir("/dev") as it:
for entry in it:
if regex_serial_devices.match(entry.name):
candidates.append(entry.path)
try:
with os.scandir("/dev") as it:
for entry in it:
if regex_serial_devices.match(entry.name):
candidates.append(entry.path)
except Exception:
logging.getLogger(__name__).exception(
"Could not scan /dev for serial ports on the system"
)
# additional ports
additionalPorts = settings().get(["serial", "additionalPorts"])
+1 -2
View File
@@ -18,7 +18,6 @@ class UserManagerTest(unittest.TestCase):
"""Test for issue #1891"""
password = "password with ümläutß"
salt = "abc"
# should not throw an exception
octoprint.access.users.UserManager.create_password_hash(password, salt=salt)
octoprint.access.users.UserManager.create_password_hash(password)
+15 -8
View File
@@ -1,4 +1,11 @@
import {prepare_server, await_coreui, await_loginui, login} from "../util/util";
import {
prepare_server,
await_coreui,
await_loginui,
login,
get_cookie_name,
get_full_url
} from "../util/util";
context("Login tests", () => {
const username = "admin";
@@ -13,7 +20,7 @@ context("Login tests", () => {
cy.visit("/?l10n=en");
await_loginui();
cy.location().should((loc) => {
expect(loc.pathname).to.eq("/login/");
expect(loc.pathname).to.eq(get_full_url("/login/"));
});
});
@@ -27,8 +34,8 @@ context("Login tests", () => {
await_coreui();
cy.get("[data-test-id=login-menu-title]").should("contain", username);
cy.getCookie("session_P5000").should("exist");
cy.getCookie("remember_token_P5000").should("not.exist");
cy.getCookie(get_cookie_name("session")).should("exist");
cy.getCookie(get_cookie_name("remember_token")).should("not.exist");
cy.location().should((loc) => {
expect(loc.hash).to.eq("#temp");
});
@@ -45,8 +52,8 @@ context("Login tests", () => {
await_coreui();
cy.get("[data-test-id=login-menu-title]").should("contain", username);
cy.getCookie("session_P5000").should("exist");
cy.getCookie("remember_token_P5000").should(($cookie) => {
cy.getCookie(get_cookie_name("session")).should("exist");
cy.getCookie(get_cookie_name("remember_token")).should(($cookie) => {
expect($cookie).to.have.property("value");
expect($cookie.value).to.match(new RegExp("^" + username + "|"));
});
@@ -71,7 +78,7 @@ context("Login tests", () => {
await_loginui();
cy.location().should((loc) => {
expect(loc.pathname).to.eq("/login/");
expect(loc.pathname).to.eq(get_full_url("/login/"));
});
});
});
@@ -81,7 +88,7 @@ context("Login tests", () => {
cy.visit("/?l10n=en");
await_loginui();
cy.location().should((loc) => {
expect(loc.pathname).to.eq("/login/");
expect(loc.pathname).to.eq(get_full_url("/login/"));
});
});
+50 -13
View File
@@ -1,12 +1,16 @@
export const prepare_server = () => {
cy.intercept("POST", "/api/login").as("login");
cy.intercept("POST", "/api/logout").as("logout");
cy.intercept("GET", "/api/settings").as("settings");
cy.intercept("GET", "/api/files?recursive=true").as("files");
cy.intercept("GET", "/plugin/softwareupdate/check").as("softwareupdate");
cy.intercept("GET", "/plugin/pluginmanager/plugins").as("pluginmanager");
cy.intercept("POST", "/api/connection").as("connectionCommand");
cy.intercept("GET", "/api/connection").as("connectionDetails");
cy.intercept("POST", get_full_url("/api/login")).as("login");
cy.intercept("POST", get_full_url("/api/logout")).as("logout");
cy.intercept("GET", get_full_url("/api/settings")).as("settings");
cy.intercept("GET", get_full_url("/api/files?recursive=true")).as("files");
cy.intercept("GET", get_full_url("/plugin/softwareupdate/check")).as(
"softwareupdate"
);
cy.intercept("GET", get_full_url("/plugin/pluginmanager/plugins")).as(
"pluginmanager"
);
cy.intercept("POST", get_full_url("/api/connection")).as("connectionCommand");
cy.intercept("GET", get_full_url("/api/connection")).as("connectionDetails");
};
export const await_loginui = () => {
@@ -24,7 +28,7 @@ export const await_coreui = () => {
export const login = (username, password) => {
cy.request({
method: "POST",
url: "/api/login",
url: get_full_url("/api/login"),
body: {
user: username,
pass: password
@@ -35,7 +39,7 @@ export const login = (username, password) => {
export const logout = () => {
cy.request({
method: "POST",
url: "/api/logout"
url: get_full_url("/api/logout")
});
};
@@ -44,7 +48,7 @@ export const connect = (port, baudrate) => {
baudrate = baudrate || 0;
cy.request({
method: "POST",
url: "/api/connection",
url: get_full_url("/api/connection"),
body: {
command: "connect",
port: port,
@@ -56,7 +60,7 @@ export const connect = (port, baudrate) => {
export const disconnect = () => {
cy.request({
method: "POST",
url: "/api/connection",
url: get_full_url("/api/connection"),
body: {
command: "disconnect"
}
@@ -66,7 +70,40 @@ export const disconnect = () => {
export const ensure_file_unknown = (location, name) => {
cy.request({
method: "DELETE",
url: `/api/files/${location}/${name}`,
url: get_full_url(`/api/files/${location}/${name}`),
failOnStatusCode: false
});
};
export const get_cookie_name = (cookie) => {
const url = new URL(Cypress.config("baseUrl"));
const port = url.port || (url.protocol === "https:" ? 443 : 80);
if (url.pathname && url.pathname !== "/") {
let path = url.pathname;
if (path.endsWith("/")) {
path = path.substring(0, path.length - 1);
}
return `${cookie}_P${port}_R${path.replace(/\//, "|")}`;
} else {
return `${cookie}_P${port}`;
}
};
export const get_full_url = (url) => {
const parsed = new URL(Cypress.config("baseUrl"));
let path = "";
if (parsed.pathname) {
path = parsed.pathname;
}
if (path.endsWith("/")) {
path = path.substring(0, path.length - 1);
}
let url2 = url;
if (url2.startsWith("/")) {
url2 = url2.substring(1);
}
return path + "/" + url2;
};
+14 -4
View File
@@ -10,6 +10,7 @@ __copyright__ = "Copyright (C) 2016 The OctoPrint Project - Released under terms
import unittest
from unittest import mock
import flask
from ddt import data, ddt, unpack
from octoprint.server.util.flask import (
@@ -424,6 +425,9 @@ class OctoPrintFlaskRequestTest(unittest.TestCase):
def setUp(self):
self.orig_environment_wrapper = OctoPrintFlaskRequest.environment_wrapper
self.app = flask.Flask("testapp")
self.app.config["SECRET_KEY"] = "secret"
def tearDown(self):
OctoPrintFlaskRequest.environment_wrapper = staticmethod(
self.orig_environment_wrapper
@@ -470,7 +474,8 @@ class OctoPrintFlaskRequestTest(unittest.TestCase):
request = OctoPrintFlaskRequest(environ)
cookies = request.cookies
with self.app.app_context():
cookies = request.cookies
self.assertDictEqual(
{
"postfixed": "postfixed_value",
@@ -495,6 +500,9 @@ class OctoPrintFlaskResponseTest(unittest.TestCase):
self.settings = mock.MagicMock()
self.settings_getter.return_value = self.settings
self.app = flask.Flask("testapp")
self.app.config["SECRET_KEY"] = "secret"
def tearDown(self):
self.settings_patcher.stop()
@@ -545,13 +553,14 @@ class OctoPrintFlaskResponseTest(unittest.TestCase):
# test set_cookie
with mock.patch("flask.Response.set_cookie") as set_cookie_mock:
response.set_cookie("some_key", "some_value", **kwargs)
with self.app.app_context():
response.set_cookie("some_key", "some_value", **kwargs)
# set_cookie should have key and path values adjusted
set_cookie_mock.assert_called_once_with(
response,
"some_key" + expected_suffix,
"some_value",
value="some_value",
path=expected_path_set,
secure=secure,
samesite=expected_samesite,
@@ -560,7 +569,8 @@ class OctoPrintFlaskResponseTest(unittest.TestCase):
# test delete_cookie
with mock.patch("flask.Response.set_cookie") as set_cookie_mock:
with mock.patch("flask.Response.delete_cookie") as delete_cookie_mock:
response.delete_cookie("some_key", **kwargs)
with self.app.app_context():
response.delete_cookie("some_key", **kwargs)
# delete_cookie internally calls set_cookie - so our delete_cookie call still uses the non modified
# key and path values, set_cookie will translate those (as tested above)
+36
View File
@@ -0,0 +1,36 @@
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License"
import pytest
@pytest.mark.parametrize(
"url,paths,expected",
[
# various default UI URLs
("/", ["/", "/recovery/"], True),
("/?", ["/", "/recovery/"], True),
("/?l10n=de", ["/", "/recovery/"], True),
("/?l10n=de&", ["/", "/recovery/"], True),
("/octoprint/", ["/octoprint/", "/octoprint/recovery/"], True),
# various recovery URLs
("/recovery/", ["/", "/recovery/"], True),
("/recovery/?", ["/", "/recovery/"], True),
("/recovery/?l10n=de", ["/", "/recovery/"], True),
("/octoprint/recovery/?l10n=de", ["/octoprint/", "/octoprint/recovery/"], True),
# various external URLs
("http://example.com", ["/", "/recovery/"], False),
("https://example.com", ["/", "/recovery/"], False),
("//example.com", ["/", "/recovery/"], False),
("/\\/\\example.com", ["/", "/recovery/"], False),
(" /\\/\\example.com", ["/", "/recovery/"], False),
("\\/\\/example.com", ["/", "/recovery/"], False),
(" \\/\\/example.com", ["/", "/recovery/"], False),
# other stuff
("javascript:alert(document.cookie)", ["/", "/recovery/"], False),
],
)
def test_validate_local_redirect(url, paths, expected):
from octoprint.server.util import validate_local_redirect
assert validate_local_redirect(url, paths) == expected
Binary file not shown.
+190 -160
View File
@@ -5,7 +5,7 @@ msgid ""
msgstr ""
"Project-Id-Version: OctoPrint 1.8.0\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2022-03-28 14:13+0200\n"
"POT-Creation-Date: 2022-09-19 16:23+0200\n"
"PO-Revision-Date: 2021-08-04 11:01+0200\n"
"Last-Translator: Gina Häußge <gina@octoprint.org>\n"
"Language: de\n"
@@ -327,7 +327,7 @@ msgstr ""
msgid "Announcements"
msgstr "Ankündigungen"
#: src/octoprint/plugins/announcements/__init__.py:629
#: src/octoprint/plugins/announcements/__init__.py:632
msgid ""
"Without this plugin you might miss important announcements regarding "
"security or other critical issues concerning OctoPrint."
@@ -435,7 +435,7 @@ msgstr "Erlaubt Zugriffsgewährung für Apps"
msgid "Application Keys"
msgstr "Application Keys"
#: src/octoprint/plugins/appkeys/__init__.py:253
#: src/octoprint/plugins/appkeys/__init__.py:254
#: src/octoprint/plugins/appkeys/static/js/appkeys.js:115
#, python-format
msgid ""
@@ -445,7 +445,7 @@ msgstr ""
"\"<strong>%(app)s</strong>\" möchte Zugriff auf OctoPrint über die API "
"haben."
#: src/octoprint/plugins/appkeys/__init__.py:539
#: src/octoprint/plugins/appkeys/__init__.py:543
msgid ""
"Without this plugin third party clients will no longer be able to obtain "
"an API key without you manually copy-pasting it."
@@ -529,7 +529,7 @@ msgstr "Applikationsidentifier"
#: src/octoprint/plugins/appkeys/templates/appkeys.jinja2:21
#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:45
#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:16
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:22
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:32
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:24
msgid "API Key"
msgstr "API Key"
@@ -543,7 +543,7 @@ msgstr "API Key in die Zwischenablage kopieren"
#: src/octoprint/plugins/appkeys/templates/appkeys.jinja2:28
#: src/octoprint/templates/dialogs/settings/api.jinja2:38
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:36
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:46
msgid "QR Code"
msgstr "QR Code"
@@ -693,7 +693,7 @@ msgstr "Sicherung & Wiederherstellung"
msgid "Restore Backup?"
msgstr "Sicherung wiederherstellen?"
#: src/octoprint/plugins/backup/__init__.py:1398
#: src/octoprint/plugins/backup/__init__.py:1418
msgid ""
"Without this plugin you will no longer be able to backup & restore your "
"OctoPrint settings and data."
@@ -701,19 +701,19 @@ msgstr ""
"Ohne dieses Plugin kannst du deine OctoPrint Einstellung und Daten nicht "
"länger sichern & wiederherstellen."
#: src/octoprint/plugins/backup/static/js/backup.js:95
#: src/octoprint/plugins/backup/static/js/backup.js:94
#, python-format
msgid "You are about to delete backup file \"%(name)s\"."
msgstr "Du bist im Begriff, die Sicherung \"%(name)s\" zu löschen."
#: src/octoprint/plugins/backup/static/js/backup.js:120
#: src/octoprint/plugins/backup/static/js/backup.js:119
#, python-format
msgid ""
"You are about to restore the backup file \"%(name)s\". This cannot be "
"undone."
msgstr "Du bist im Begriff, die Sicherung \"%(name)s\" wiederherzustellen."
#: src/octoprint/plugins/backup/static/js/backup.js:150
#: src/octoprint/plugins/backup/static/js/backup.js:149
#, python-format
msgid ""
"You are about to upload and restore the backup file \"%(name)s\". This "
@@ -722,7 +722,7 @@ msgstr ""
"Du bist im Begriff, die Sicherung \"%(name)s\" hochzuladen und "
"wiederherzustellen. Das kann nicht rückgängig gemacht werden."
#: src/octoprint/plugins/backup/static/js/backup.js:166
#: src/octoprint/plugins/backup/static/js/backup.js:165
msgid ""
"You are about to delete the record of plugins unknown during the last "
"restore."
@@ -730,20 +730,20 @@ msgstr ""
"Du bist dabei, die Liste der Plugins zu löschen, die während der letzten "
"Wiederherstellung unbekannt waren."
#: src/octoprint/plugins/backup/static/js/backup.js:199
#: src/octoprint/plugins/backup/static/js/backup.js:198
#, python-format
msgid "You are about to delete %(count)d backups."
msgstr "Du bist im Begriff, %(count)d Sicherungen zu löschen."
#: src/octoprint/plugins/backup/static/js/backup.js:222
#: src/octoprint/plugins/backup/static/js/backup.js:221
msgid "Backup created successfully"
msgstr "Backup erfolgreich erstellt"
#: src/octoprint/plugins/backup/static/js/backup.js:231
#: src/octoprint/plugins/backup/static/js/backup.js:230
msgid "Creating the backup failed"
msgstr "Backuperstellung fehlgeschlagen"
#: src/octoprint/plugins/backup/static/js/backup.js:233
#: src/octoprint/plugins/backup/static/js/backup.js:232
#, python-format
msgid ""
"OctoPrint could not create your backup. Please consult "
@@ -752,12 +752,12 @@ msgstr ""
"OctoPrint konnte dein Backup nicht erstellen. Bitte konsultiere "
"<code>octoprint.log</code> für Details. Fehler: %(error)s"
#: src/octoprint/plugins/backup/static/js/backup.js:243
#: src/octoprint/plugins/backup/static/js/backup.js:242
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:120
msgid "Restoring from backup..."
msgstr "Stelle Sicherung wieder her..."
#: src/octoprint/plugins/backup/static/js/backup.js:250
#: src/octoprint/plugins/backup/static/js/backup.js:249
msgid ""
"Restore failed! Check the above output and octoprint.log for reasons as "
"to why."
@@ -765,16 +765,16 @@ msgstr ""
"Wiederherstellung fehlgeschlagen! Prüfe die obige Ausgabe sowie "
"octoprint.log für mögliche Gründe dafür."
#: src/octoprint/plugins/backup/static/js/backup.js:259
#: src/octoprint/plugins/backup/static/js/backup.js:258
msgid "Restore successful! The server will now be restarted!"
msgstr "Wiederherstellung erfolgreich! Der Server wird jetzt neu gestartet!"
#: src/octoprint/plugins/backup/static/js/backup.js:268
#: src/octoprint/plugins/backup/static/js/backup.js:267
#, python-format
msgid "Installing plugin \"%(plugin)s\"..."
msgstr "Installiere Plugin \"%(plugin)s\"..."
#: src/octoprint/plugins/backup/static/js/backup.js:277
#: src/octoprint/plugins/backup/static/js/backup.js:276
#, python-format
msgid ""
"Cannot install plugin \"%(plugin)s\" due to it being incompatible to this"
@@ -783,7 +783,7 @@ msgstr ""
"Kann Plugin \"%(plugin)s\" nicht installieren, da es mit dieser OctoPrint"
" Version oder dem darunter liegenden Betriebssystem inkompatibel ist"
#: src/octoprint/plugins/backup/static/js/backup.js:289
#: src/octoprint/plugins/backup/static/js/backup.js:288
#, python-format
msgid ""
"There are %(count)d plugins you'll need to install manually since they "
@@ -792,16 +792,16 @@ msgstr ""
"Du musst %(count)d Plugins manuell installieren, da sie nicht im "
"Repository registriert sind:"
#: src/octoprint/plugins/backup/static/js/backup.js:331
#: src/octoprint/plugins/backup/static/js/backup.js:330
msgid "Deleting backups"
msgstr "Lösche Sicherungen"
#: src/octoprint/plugins/backup/static/js/backup.js:332
#: src/octoprint/plugins/backup/static/js/backup.js:331
#, python-format
msgid "Deleting %(count)d backups..."
msgstr "Lösche %(count)d Sicherungen..."
#: src/octoprint/plugins/backup/static/js/backup.js:340
#: src/octoprint/plugins/backup/static/js/backup.js:339
#: src/octoprint/plugins/logging/static/js/logging.js:349
#: src/octoprint/static/js/app/viewmodels/timelapse.js:479
#: src/octoprint/static/js/app/viewmodels/timelapse.js:511
@@ -809,7 +809,7 @@ msgstr "Lösche %(count)d Sicherungen..."
msgid "Deleted %(filename)s..."
msgstr "%(filename)s gelöscht..."
#: src/octoprint/plugins/backup/static/js/backup.js:348
#: src/octoprint/plugins/backup/static/js/backup.js:347
#: src/octoprint/plugins/logging/static/js/logging.js:357
#: src/octoprint/static/js/app/viewmodels/timelapse.js:487
#: src/octoprint/static/js/app/viewmodels/timelapse.js:520
@@ -817,7 +817,7 @@ msgstr "%(filename)s gelöscht..."
msgid "Deletion of %(filename)s failed, continuing..."
msgstr "Löschen von %(filename)s fehlgeschlagen, fahre fort..."
#: src/octoprint/plugins/backup/static/js/backup.js:352
#: src/octoprint/plugins/backup/static/js/backup.js:351
#: src/octoprint/plugins/logging/static/js/logging.js:361
#: src/octoprint/static/js/app/viewmodels/timelapse.js:491
#, python-format
@@ -890,8 +890,8 @@ msgid "This backup exceeds the maximum allowed upload size"
msgstr "Dieses Backup übersteigt die erlaubte Uploadgröße"
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:49
#: src/octoprint/static/js/app/viewmodels/access.js:329
#: src/octoprint/static/js/app/viewmodels/access.js:661
#: src/octoprint/static/js/app/viewmodels/access.js:344
#: src/octoprint/static/js/app/viewmodels/access.js:676
#: src/octoprint/templates/dialogs/settings/appearance.jinja2:104
msgid "Delete"
msgstr "Löschen"
@@ -1026,7 +1026,7 @@ msgstr "Durchsuchen..."
msgid "Upload & restore"
msgstr "Hochladen & wiederherstellen"
#: src/octoprint/plugins/corewizard/__init__.py:131
#: src/octoprint/plugins/corewizard/__init__.py:136
msgid ""
"Without this plugin OctoPrint will no longer be able to perform setup "
"steps that might be required after an update."
@@ -1041,13 +1041,13 @@ msgid "Server Commands"
msgstr "Serverbefehle"
#: src/octoprint/plugins/corewizard/subwizards.py:56
#: src/octoprint/server/views.py:1025
#: src/octoprint/server/views.py:1045
msgid "Webcam & Timelapse"
msgstr "Webcam & Zeitraffer"
#: src/octoprint/plugins/corewizard/subwizards.py:71
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:1
#: src/octoprint/server/views.py:1042
#: src/octoprint/server/views.py:1062
#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:1
msgid "Access Control"
msgstr "Zugangsbeschränkung"
@@ -1125,7 +1125,7 @@ msgstr ""
"</p>"
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:11
#: src/octoprint/templates/login.jinja2:77
#: src/octoprint/templates/login.jinja2:78
#: src/octoprint/templates/navbar/login.jinja2:7
#: src/octoprint/templates/navbar/login.jinja2:8
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:83
@@ -1134,7 +1134,7 @@ msgstr "Username"
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:17
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:3
#: src/octoprint/templates/login.jinja2:78
#: src/octoprint/templates/login.jinja2:79
#: src/octoprint/templates/navbar/login.jinja2:10
#: src/octoprint/templates/navbar/login.jinja2:11
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:89
@@ -1146,7 +1146,8 @@ msgid "Confirm Password"
msgstr "Passwort bestätigen"
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:26
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:17
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:11
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:24
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:98
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:150
msgid "Passwords do not match"
@@ -1486,7 +1487,7 @@ msgstr ""
"<p>Um Snapshots zu Zeitrafferaufnahmen zu rendern muss OctoPrint auch den"
" korrekten <strong>Pfad zu FFMPEG</strong> wissen.</p>"
#: src/octoprint/plugins/discovery/__init__.py:801
#: src/octoprint/plugins/discovery/__init__.py:804
msgid ""
"Without this plugin your OctoPrint instance will no longer be "
"discoverable on the network via Bonjour and uPnP."
@@ -1803,7 +1804,7 @@ msgid "on mobile"
msgstr "auf Mobile"
#: src/octoprint/plugins/gcodeviewer/templates/gcodeviewer_settings.jinja2:19
#: src/octoprint/templates/dialogs/settings/folders.jinja2:85
#: src/octoprint/templates/dialogs/settings/folders.jinja2:70
msgid ""
"Provide values including size unit. Allowed units are: b, byte, bytes, "
"kb, mb, gb, tb (case insensitive). Example: <code>5MB</code>, "
@@ -1973,7 +1974,7 @@ msgstr ""
#: src/octoprint/plugins/gcodeviewer/templates/gcodeviewer_tab.jinja2:126
#: src/octoprint/plugins/softwareupdate/templates/snippets/pipEnableCheck.jinja2:4
#: src/octoprint/templates/dialogs/settings/folders.jinja2:73
#: src/octoprint/templates/dialogs/settings/folders.jinja2:58
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:114
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:550
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:566
@@ -2026,7 +2027,7 @@ msgstr ""
"Erlaubt den Download von Logdateien sowie deren Löschung und das Setzen "
"von Loglevels."
#: src/octoprint/plugins/logging/__init__.py:270
#: src/octoprint/plugins/logging/__init__.py:273
msgid ""
"Without this plugin you will no longer be able to retrieve OctoPrint's "
"logs or modify the current logging levels through the web interface."
@@ -2717,7 +2718,7 @@ msgstr ""
" Bugtracker mit allen erbetenen Logs.\n"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:47
#: src/octoprint/server/views.py:809
#: src/octoprint/server/views.py:829
msgid "Plugins"
msgstr "Plugins"
@@ -3165,7 +3166,7 @@ msgid "Python"
msgstr "Python"
#: src/octoprint/plugins/softwareupdate/__init__.py:1185
#: src/octoprint/plugins/softwareupdate/__init__.py:2345
#: src/octoprint/plugins/softwareupdate/__init__.py:2348
msgid "pip"
msgstr "pip"
@@ -3173,19 +3174,19 @@ msgstr "pip"
msgid "setuptools"
msgstr "setuptools"
#: src/octoprint/plugins/softwareupdate/__init__.py:1472
#: src/octoprint/plugins/softwareupdate/__init__.py:1489
#: src/octoprint/plugins/softwareupdate/__init__.py:1475
#: src/octoprint/plugins/softwareupdate/__init__.py:1492
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard_settings.jinja2:1
msgid "Software Update"
msgstr "Software Update"
#: src/octoprint/plugins/softwareupdate/__init__.py:1479
#: src/octoprint/plugins/softwareupdate/__init__.py:1482
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard_update.jinja2:1
msgid "Update?"
msgstr "Aktualisieren?"
#: src/octoprint/plugins/softwareupdate/__init__.py:2323
#: src/octoprint/server/views.py:1040
#: src/octoprint/plugins/softwareupdate/__init__.py:2326
#: src/octoprint/server/views.py:1060
#: src/octoprint/static/js/app/viewmodels/appearance.js:106
#: src/octoprint/static/js/app/viewmodels/appearance.js:110
#: src/octoprint/static/js/app/viewmodels/appearance.js:111
@@ -3196,7 +3197,7 @@ msgstr "Aktualisieren?"
msgid "OctoPrint"
msgstr "OctoPrint"
#: src/octoprint/plugins/softwareupdate/__init__.py:2544
#: src/octoprint/plugins/softwareupdate/__init__.py:2547
msgid ""
"Without this plugin OctoPrint will no longer be able to update itself or "
"any of your installed plugins which might put your system at risk."
@@ -4210,103 +4211,103 @@ msgstr ""
"zur Verbindung zur Verfügung gestellt, mit einer Fake-"
"Druckerimplementierung. Sinnvoll für die Entwicklung."
#: src/octoprint/server/views.py:896
#: src/octoprint/server/views.py:916
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:16
msgid "Connection"
msgstr "Verbindung"
#: src/octoprint/server/views.py:907
#: src/octoprint/server/views.py:927
#: src/octoprint/templates/sidebar/state.jinja2:1
msgid "State"
msgstr "Status"
#: src/octoprint/server/views.py:917
#: src/octoprint/server/views.py:937
msgid "Files"
msgstr "Dateien"
#: src/octoprint/server/views.py:934
#: src/octoprint/server/views.py:954
msgid "Temperature"
msgstr "Temperatur"
#: src/octoprint/server/views.py:943
#: src/octoprint/server/views.py:963
msgid "Control"
msgstr "Steuerung"
#: src/octoprint/server/views.py:952
#: src/octoprint/server/views.py:972
msgid "Terminal"
msgstr "Terminal"
#: src/octoprint/server/views.py:961
#: src/octoprint/server/views.py:981
#: src/octoprint/templates/sidebar/state.jinja2:11
msgid "Timelapse"
msgstr "Zeitraffer"
#: src/octoprint/server/views.py:974
#: src/octoprint/server/views.py:994
msgid "Printer"
msgstr "Drucker"
#: src/octoprint/server/views.py:976
#: src/octoprint/server/views.py:996
msgid "Serial Connection"
msgstr "Serielle Verbindung"
#: src/octoprint/server/views.py:984
#: src/octoprint/server/views.py:1004
#: src/octoprint/templates/dialogs/settings/printerprofiles.jinja2:1
msgid "Printer Profiles"
msgstr "Druckerprofile"
#: src/octoprint/server/views.py:992
#: src/octoprint/server/views.py:1012
msgid "Temperatures"
msgstr "Temperaturen"
#: src/octoprint/server/views.py:1000
#: src/octoprint/server/views.py:1020
#: src/octoprint/templates/dialogs/settings/terminalfilters.jinja2:1
msgid "Terminal Filters"
msgstr "Terminalfilter"
#: src/octoprint/server/views.py:1008
#: src/octoprint/server/views.py:1028
#: src/octoprint/templates/dialogs/settings/gcodescripts.jinja2:1
msgid "GCODE Scripts"
msgstr "GCODE Scripts"
#: src/octoprint/server/views.py:1015 src/octoprint/server/views.py:1017
#: src/octoprint/server/views.py:1035 src/octoprint/server/views.py:1037
#: src/octoprint/templates/dialogs/settings/features.jinja2:1
msgid "Features"
msgstr "Funktionen"
#: src/octoprint/server/views.py:1033
#: src/octoprint/server/views.py:1053
msgid "API"
msgstr "API"
#: src/octoprint/server/views.py:1050
#: src/octoprint/server/views.py:1070
#: src/octoprint/templates/dialogs/settings/folders.jinja2:2
#: src/octoprint/templates/sidebar/files_header.jinja2:13
msgid "Folders"
msgstr "Verzeichnisse"
#: src/octoprint/server/views.py:1058
#: src/octoprint/server/views.py:1078
#: src/octoprint/templates/dialogs/settings/appearance.jinja2:1
msgid "Appearance"
msgstr "Aussehen"
#: src/octoprint/server/views.py:1066
#: src/octoprint/server/views.py:1086
#: src/octoprint/templates/dialogs/settings/server.jinja2:1
msgid "Server"
msgstr "Server"
#: src/octoprint/server/views.py:1079
#: src/octoprint/server/views.py:1099
msgid "Access"
msgstr "Zugriff"
#: src/octoprint/server/views.py:1087
#: src/octoprint/server/views.py:1107
msgid "Interface"
msgstr "Interface"
#: src/octoprint/server/views.py:1117
#: src/octoprint/server/views.py:1137
#: src/octoprint/static/js/app/viewmodels/temperature.js:208
msgid "Start"
msgstr "Start"
#: src/octoprint/server/views.py:1124
#: src/octoprint/server/views.py:1144
#: src/octoprint/templates/dialogs/wizard.jinja2:57
msgid "Finish"
msgstr "Beenden"
@@ -4659,8 +4660,8 @@ msgid "off"
msgstr "Aus"
#: src/octoprint/static/js/app/helpers.js:793
#: src/octoprint/static/js/app/viewmodels/access.js:324
#: src/octoprint/static/js/app/viewmodels/access.js:656
#: src/octoprint/static/js/app/viewmodels/access.js:339
#: src/octoprint/static/js/app/viewmodels/access.js:671
#: src/octoprint/static/js/app/viewmodels/connection.js:188
msgid "Are you sure?"
msgstr "Bist Du sicher?"
@@ -4669,137 +4670,137 @@ msgstr "Bist Du sicher?"
msgid "Progress"
msgstr "Fortschritt"
#: src/octoprint/static/js/app/main.js:245
#: src/octoprint/static/js/app/main.js:261
msgid "Offline"
msgstr "Offline"
#: src/octoprint/static/js/app/main.js:246
#: src/octoprint/static/js/app/main.js:262
msgid "Offline after error"
msgstr "Offline nach Fehler"
#: src/octoprint/static/js/app/main.js:247
#: src/octoprint/static/js/app/main.js:263
#: src/octoprint/static/js/app/viewmodels/system.js:102
msgid "Error"
msgstr "Fehler"
#: src/octoprint/static/js/app/main.js:248
#: src/octoprint/static/js/app/main.js:264
msgid "Opening serial connection"
msgstr "Öffne serielle Verbindung"
#: src/octoprint/static/js/app/main.js:249
#: src/octoprint/static/js/app/main.js:265
msgid "Detecting serial connection"
msgstr "Detektiere serielle Verbindung"
#: src/octoprint/static/js/app/main.js:250
#: src/octoprint/static/js/app/main.js:266
msgid "Connecting"
msgstr "Verbinde"
#: src/octoprint/static/js/app/main.js:251
#: src/octoprint/static/js/app/main.js:267
msgid "Operational"
msgstr "Bereit"
#: src/octoprint/static/js/app/main.js:252
#: src/octoprint/static/js/app/main.js:268
msgid "Starting"
msgstr "Starte"
#: src/octoprint/static/js/app/main.js:253
#: src/octoprint/static/js/app/main.js:269
msgid "Starting print from SD"
msgstr "Starte Druck von SD"
#: src/octoprint/static/js/app/main.js:254
#: src/octoprint/static/js/app/main.js:270
msgid "Starting to send file to SD"
msgstr "Starte Dateitransfer zu SD"
#: src/octoprint/static/js/app/main.js:255
#: src/octoprint/static/js/app/main.js:271
msgid "Printing from SD"
msgstr "Drucke von SD"
#: src/octoprint/static/js/app/main.js:256
#: src/octoprint/static/js/app/main.js:272
msgid "Sending file to SD"
msgstr "Sende Datei zu SD"
#: src/octoprint/static/js/app/main.js:257
#: src/octoprint/static/js/app/main.js:273
msgid "Printing"
msgstr "Drucke"
#: src/octoprint/static/js/app/main.js:258
#: src/octoprint/static/js/app/main.js:274
msgid "Paused"
msgstr "Pausiert"
#: src/octoprint/static/js/app/main.js:259
#: src/octoprint/static/js/app/main.js:275
msgid "Closed"
msgstr "Geschlossen"
#: src/octoprint/static/js/app/main.js:260
#: src/octoprint/static/js/app/main.js:276
msgid "Transferring file to SD"
msgstr "Sende Datei zu SD"
#: src/octoprint/static/js/app/main.js:261
#: src/octoprint/static/js/app/main.js:277
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:563
msgid "Pausing"
msgstr "Pausiere"
#: src/octoprint/static/js/app/main.js:262
#: src/octoprint/static/js/app/main.js:278
msgid "Resuming"
msgstr "Setze fort"
#: src/octoprint/static/js/app/main.js:263
#: src/octoprint/static/js/app/main.js:279
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:572
msgid "Cancelling"
msgstr "Breche ab"
#: src/octoprint/static/js/app/main.js:264
#: src/octoprint/static/js/app/main.js:280
msgid "Finishing"
msgstr "Beende"
#: src/octoprint/static/js/app/main.js:1051
#: src/octoprint/static/js/app/main.js:1067
msgid "Loading OctoPrint's UI, please wait..."
msgstr "Lade OctoPrints Userinterface, bitte warten..."
#: src/octoprint/static/js/app/viewmodels/access.js:99
#: src/octoprint/static/js/app/viewmodels/access.js:101
msgid "This user may not have dangerous permissions."
msgstr "Dieser Nutzer darf keine gefährlichen Berechtigungen erhalten."
#: src/octoprint/static/js/app/viewmodels/access.js:114
#: src/octoprint/static/js/app/viewmodels/access.js:116
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:48
msgid "Add user"
msgstr "Nutzer hinzufügen"
#: src/octoprint/static/js/app/viewmodels/access.js:124
#: src/octoprint/static/js/app/viewmodels/access.js:126
#, python-format
msgid "Edit user \"%(name)s\""
msgstr "Editiere Nutzer \"%(name)s\""
#: src/octoprint/static/js/app/viewmodels/access.js:314
#: src/octoprint/static/js/app/viewmodels/access.js:329
msgid "Not possible"
msgstr "Nicht möglich"
#: src/octoprint/static/js/app/viewmodels/access.js:315
#: src/octoprint/static/js/app/viewmodels/access.js:330
msgid "You may not delete your own account."
msgstr "Du kannst deinen eigenen Account nicht löschen."
#: src/octoprint/static/js/app/viewmodels/access.js:326
#: src/octoprint/static/js/app/viewmodels/access.js:341
#, python-format
msgid "You are about to delete the user \"%(name)s\"."
msgstr "Du bist im Begriff, den Nutzer \"%(name)s\" zu löschen."
#: src/octoprint/static/js/app/viewmodels/access.js:459
#: src/octoprint/static/js/app/viewmodels/access.js:474
msgid "This group may not have dangerous permissions or subgroups."
msgstr ""
"Diese Gruppe darf keine gefährlichen Berechtigungen oder Untergruppern "
"erhalten."
#: src/octoprint/static/js/app/viewmodels/access.js:517
#: src/octoprint/static/js/app/viewmodels/access.js:532
#: src/octoprint/templates/snippets/settings/accesscontrol/groups.jinja2:47
msgid "Add group"
msgstr "Gruppe hinzufügen"
#: src/octoprint/static/js/app/viewmodels/access.js:529
#: src/octoprint/static/js/app/viewmodels/access.js:544
#, python-format
msgid "Edit group \"%(name)s\""
msgstr "Gruppe \"%(name)s\" bearbeiten"
#: src/octoprint/static/js/app/viewmodels/access.js:658
#: src/octoprint/static/js/app/viewmodels/access.js:673
#, python-format
msgid "You are about to delete the group \"%(name)s\"."
msgstr "Du bist im Begriff die Gruppe\"%(name)s\" zu löschen."
@@ -5014,11 +5015,11 @@ msgstr "Streaming von %(local)s nach %(remote)s nicht abgeschlossen"
msgid "File already exists: %(name)s"
msgstr "Datei existiert bereits: %(name)s"
#: src/octoprint/static/js/app/viewmodels/files.js:1673
#: src/octoprint/static/js/app/viewmodels/files.js:1679
msgid "Refreshing list ..."
msgstr "Liste wird aktualisiert ..."
#: src/octoprint/static/js/app/viewmodels/files.js:1703
#: src/octoprint/static/js/app/viewmodels/files.js:1709
msgid ""
"Could not upload the file to the printer's SD. Make sure the SD is "
"initialized and the printer is not busy with a print already."
@@ -5027,7 +5028,7 @@ msgstr ""
"dass die SD initialisiert ist und der Drucker nicht mit einem "
"Druckauftrag belegt ist."
#: src/octoprint/static/js/app/viewmodels/files.js:1707
#: src/octoprint/static/js/app/viewmodels/files.js:1713
msgid ""
"Could not upload the file, overwrite not possible. Make sure it is not "
"already printing and that you have allowed overwriting."
@@ -5036,7 +5037,7 @@ msgstr ""
"sicher, dass sie nicht bereits gedruckt wird und dass du Überschreiben "
"erlaubt hast."
#: src/octoprint/static/js/app/viewmodels/files.js:1716
#: src/octoprint/static/js/app/viewmodels/files.js:1722
#, python-format
msgid ""
"Could not upload the file. Make sure that it is a readable, valid file "
@@ -5046,7 +5047,7 @@ msgstr ""
"eine lesbare valide Datei mit einer dieser Erweiterungen ist: "
"%(extensions)s"
#: src/octoprint/static/js/app/viewmodels/files.js:1725
#: src/octoprint/static/js/app/viewmodels/files.js:1731
msgid ""
"Could not upload the file. Please check octoprint.log for possible "
"reasons."
@@ -5054,11 +5055,11 @@ msgstr ""
"Konnte die Datei nicht hochladen. Bitte überprüfe octoprint.log für "
"mögliche Gründe."
#: src/octoprint/static/js/app/viewmodels/files.js:1756
#: src/octoprint/static/js/app/viewmodels/files.js:1762
msgid "Saving ..."
msgstr "Speichere ..."
#: src/octoprint/static/js/app/viewmodels/files.js:1756
#: src/octoprint/static/js/app/viewmodels/files.js:1762
msgid "Uploading ..."
msgstr "Uploade ..."
@@ -5405,23 +5406,23 @@ msgstr "Weiß"
msgid "Autodetect from browser"
msgstr "Automatisch vom Browser erkennen"
#: src/octoprint/static/js/app/viewmodels/settings.js:450
#: src/octoprint/static/js/app/viewmodels/settings.js:456
msgid "If you see your webcam stream below, the entered stream URL is ok."
msgstr "Falls du unten den Webcamstream sehen kannst, ist die Stream-URL ok."
#: src/octoprint/static/js/app/viewmodels/settings.js:492
#: src/octoprint/static/js/app/viewmodels/settings.js:505
msgid "Stream test"
msgstr "Stream Test"
#: src/octoprint/static/js/app/viewmodels/settings.js:514
#: src/octoprint/static/js/app/viewmodels/settings.js:527
msgid "Could not retrieve snapshot URL, please double check the URL"
msgstr "Konnte die Snapshot-URL nicht abgreifen, bitte prüfen"
#: src/octoprint/static/js/app/viewmodels/settings.js:517
#: src/octoprint/static/js/app/viewmodels/settings.js:530
msgid "Snapshot test failed"
msgstr "Snapshot Test fehlgeschlagen"
#: src/octoprint/static/js/app/viewmodels/settings.js:537
#: src/octoprint/static/js/app/viewmodels/settings.js:550
#, python-format
msgid ""
"Could retrieve the snapshot URL, but it didn't look like an image. Got "
@@ -5433,67 +5434,67 @@ msgstr ""
"aus: <code>%(content_type)s</code>. Bitte überprüfe, dass die URL "
"einzelne Bilder zurückliefert, nicht multipart Daten oder Videos."
#: src/octoprint/static/js/app/viewmodels/settings.js:566
#: src/octoprint/static/js/app/viewmodels/settings.js:579
msgid ""
"If you see your webcam snapshot picture below, the entered snapshot URL "
"is ok."
msgstr "Falls du unten dein Snapshotbild sehen kannst, ist die Snapshot-URL ok."
#: src/octoprint/static/js/app/viewmodels/settings.js:570
#: src/octoprint/static/js/app/viewmodels/settings.js:583
msgid "Snapshot test"
msgstr "Snapshot Test"
#: src/octoprint/static/js/app/viewmodels/settings.js:612
#: src/octoprint/static/js/app/viewmodels/settings.js:625
msgid "The path doesn't exist"
msgstr "Der Pfad existiert nicht"
#: src/octoprint/static/js/app/viewmodels/settings.js:614
#: src/octoprint/static/js/app/viewmodels/settings.js:627
msgid "The path is not a file"
msgstr "Der Pfad ist keine Datei"
#: src/octoprint/static/js/app/viewmodels/settings.js:617
#: src/octoprint/static/js/app/viewmodels/settings.js:630
msgid "The path is not an executable"
msgstr "Der Pfad ist nicht ausführbar"
#: src/octoprint/static/js/app/viewmodels/settings.js:621
#: src/octoprint/static/js/app/viewmodels/settings.js:722
#: src/octoprint/static/js/app/viewmodels/settings.js:634
#: src/octoprint/static/js/app/viewmodels/settings.js:735
msgid "The path is valid"
msgstr "Der Pfad ist valide"
#: src/octoprint/static/js/app/viewmodels/settings.js:646
#: src/octoprint/static/js/app/viewmodels/settings.js:659
msgid "The server is not reachable"
msgstr "Der Server ist nicht erreichbar"
#: src/octoprint/static/js/app/viewmodels/settings.js:649
#: src/octoprint/static/js/app/viewmodels/settings.js:662
msgid "The server is reachable"
msgstr "Der Server ist erreichbar"
#: src/octoprint/static/js/app/viewmodels/settings.js:670
#: src/octoprint/static/js/app/viewmodels/settings.js:683
msgid "Name cannot be resolved"
msgstr "Name kann nicht aufgelöst werden"
#: src/octoprint/static/js/app/viewmodels/settings.js:674
#: src/octoprint/static/js/app/viewmodels/settings.js:687
msgid "Name can be resolved"
msgstr "Name kann aufgelöst werden"
#: src/octoprint/static/js/app/viewmodels/settings.js:706
#: src/octoprint/static/js/app/viewmodels/settings.js:719
msgid "The path is a broken symlink."
msgstr "Der Pfad ist ein kaputter Symlink."
#: src/octoprint/static/js/app/viewmodels/settings.js:710
#: src/octoprint/static/js/app/viewmodels/settings.js:723
msgid "The path does not exist and cannot be created."
msgstr "Der Pfad existiert nicht und kann nicht erstellt werden."
#: src/octoprint/static/js/app/viewmodels/settings.js:714
#: src/octoprint/static/js/app/viewmodels/settings.js:727
msgid "The path is not a folder."
msgstr "Der Pfad ist kein Verzeichnis."
#: src/octoprint/static/js/app/viewmodels/settings.js:718
#: src/octoprint/static/js/app/viewmodels/settings.js:731
msgid "The path is not writable."
msgstr "Der Pfad ist nicht beschreibbar."
#: src/octoprint/static/js/app/viewmodels/settings.js:859
#: src/octoprint/static/js/app/viewmodels/usersettings.js:122
#: src/octoprint/static/js/app/viewmodels/settings.js:871
#: src/octoprint/static/js/app/viewmodels/usersettings.js:142
msgid ""
"This will generate a new API Key. The old API Key will cease to function "
"immediately."
@@ -5633,20 +5634,20 @@ msgstr "zeige %(displayed)d Zeilen (Buffer voll)"
msgid "showing %(displayed)d lines"
msgstr "zeige %(displayed)d Zeilen"
#: src/octoprint/static/js/app/viewmodels/terminal.js:525
#: src/octoprint/static/js/app/viewmodels/terminal.js:529
#, python-format
msgid "The command <code>%(command)s</code> was not sent to the printer:"
msgstr "Der Befehl <code>%(command)s</code> wurde nicht zum Drucker gesendet:"
#: src/octoprint/static/js/app/viewmodels/terminal.js:532
#: src/octoprint/static/js/app/viewmodels/terminal.js:536
msgid "Suppressed command"
msgstr "Unterdrückter Befehl"
#: src/octoprint/static/js/app/viewmodels/terminal.js:541
#: src/octoprint/static/js/app/viewmodels/terminal.js:545
msgid "Invalid tool reported"
msgstr "Invalides Werkzeug gemeldet"
#: src/octoprint/static/js/app/viewmodels/terminal.js:543
#: src/octoprint/static/js/app/viewmodels/terminal.js:547
#, python-format
msgid ""
"Your printer reported tool T%(tool)d as invalid, reverting back to "
@@ -5829,7 +5830,7 @@ msgstr "Neue Zeitrafferaufnahme %(movie_prefix)s wurde fertig gerendert."
msgid "Site default"
msgstr "Seitenvoreinstellung"
#: src/octoprint/static/js/app/viewmodels/usersettings.js:137
#: src/octoprint/static/js/app/viewmodels/usersettings.js:157
msgid "This will delete the API Key. It will cease to to function immediately."
msgstr "Dies wird den API-Key löschen. Er wird sofort aufhören, zu funktionieren."
@@ -5891,34 +5892,38 @@ msgstr ""
"Groß-/Kleinschreibung!"
#: src/octoprint/templates/login.jinja2:69
msgid "You have made too many failed login attempts. Please try again later."
msgstr "Du hattest zu viele fehlgeschlagene Loginversuche. Bitte versuche es später noch einmal."
#: src/octoprint/templates/login.jinja2:70
#: src/octoprint/templates/recovery.jinja2:70
msgid "Server is currently offline."
msgstr "Der Server ist offline."
#: src/octoprint/templates/login.jinja2:69
#: src/octoprint/templates/login.jinja2:70
#: src/octoprint/templates/recovery.jinja2:70
msgid "Reconnect..."
msgstr "Erneut verbinden..."
#: src/octoprint/templates/login.jinja2:72
#: src/octoprint/templates/login.jinja2:73
msgid "The following account is required:"
msgstr "Der folgende Account wird benötigt:"
#: src/octoprint/templates/login.jinja2:74
#: src/octoprint/templates/login.jinja2:75
msgid "An account with the following permissions is required:"
msgstr "Ein Account mit den folgenden Berechtigungen wird benötigt:"
#: src/octoprint/templates/login.jinja2:79
#: src/octoprint/templates/login.jinja2:80
#: src/octoprint/templates/navbar/login.jinja2:9
msgid "Forgot password?"
msgstr "Passwort vergessen?"
#: src/octoprint/templates/login.jinja2:81
#: src/octoprint/templates/login.jinja2:82
#: src/octoprint/templates/navbar/login.jinja2:13
msgid "Remember me"
msgstr "Login merken"
#: src/octoprint/templates/login.jinja2:83
#: src/octoprint/templates/login.jinja2:84
msgid "Log in"
msgstr "Einloggen"
@@ -6373,7 +6378,7 @@ msgid "Access Application Keys"
msgstr "Auf Application Keys zugreifen"
#: src/octoprint/templates/dialogs/settings/api.jinja2:30
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:27
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:37
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:159
msgid "N/A"
msgstr "(nicht vorhanden)"
@@ -6625,8 +6630,6 @@ msgstr "Uploadverzeichnis"
#: src/octoprint/templates/dialogs/settings/folders.jinja2:8
#: src/octoprint/templates/dialogs/settings/folders.jinja2:18
#: src/octoprint/templates/dialogs/settings/folders.jinja2:28
#: src/octoprint/templates/dialogs/settings/folders.jinja2:38
#: src/octoprint/templates/dialogs/settings/folders.jinja2:48
#: src/octoprint/templates/snippets/settings/server/serverOnlineCheckTestConnectivity.jinja2:1
#: src/octoprint/templates/snippets/settings/server/serverOnlineCheckTestResolution.jinja2:1
#: src/octoprint/templates/snippets/settings/webcam/ffmpegPath.jinja2:6
@@ -6640,18 +6643,10 @@ msgid "Timelapse Folder"
msgstr "Zeitrafferverzeichnis"
#: src/octoprint/templates/dialogs/settings/folders.jinja2:24
msgid "Timelapse Temp Folder"
msgstr "Temporäres Zeitrafferverzeichnis"
#: src/octoprint/templates/dialogs/settings/folders.jinja2:34
msgid "Logs Folder"
msgstr "Logverzeichnis"
#: src/octoprint/templates/dialogs/settings/folders.jinja2:44
msgid "Watched Folder"
msgstr "Beobachtetes Verzeichnis"
#: src/octoprint/templates/dialogs/settings/folders.jinja2:56
#: src/octoprint/templates/dialogs/settings/folders.jinja2:36
msgid ""
"Actively poll the watched folder. Check this if files in your watched "
"folder aren't automatically added otherwise."
@@ -6660,7 +6655,7 @@ msgstr ""
"in Deinem beobachteten Verzeichnis hinzugefügt werden sonst nicht "
"automatisch hinzugefügt werden."
#: src/octoprint/templates/dialogs/settings/folders.jinja2:61
#: src/octoprint/templates/dialogs/settings/folders.jinja2:41
msgid ""
"\n"
" Two or more of the folders configured share a location. This "
@@ -6679,11 +6674,22 @@ msgstr ""
"Einstellungen gespeichert werden.\n"
" "
#: src/octoprint/templates/dialogs/settings/folders.jinja2:68
#: src/octoprint/templates/dialogs/settings/folders.jinja2:48
msgid ""
"\n"
" Please note: Not all of the folders used by OctoPrint can be "
"configured through the UI, only those most commonly moved to other "
"places. If you need to configure other folders,\n"
" please do so by manually editing the configuration. See the docs "
"for details.\n"
" "
msgstr ""
#: src/octoprint/templates/dialogs/settings/folders.jinja2:53
msgid "Disk space thresholds"
msgstr "Plattenplatzschwellwerte"
#: src/octoprint/templates/dialogs/settings/folders.jinja2:70
#: src/octoprint/templates/dialogs/settings/folders.jinja2:55
msgid ""
"If the free disk space falls below these thresholds, OctoPrint will warn "
"the user."
@@ -6691,7 +6697,7 @@ msgstr ""
"Falls der freie Plattenplatz unter diese Schwellwerte fallen sollte wird "
"OctoPrint den Nutzer warnen."
#: src/octoprint/templates/dialogs/settings/folders.jinja2:79
#: src/octoprint/templates/dialogs/settings/folders.jinja2:64
msgid "Critical"
msgstr "Kritisch"
@@ -7842,22 +7848,40 @@ msgstr ""
"leer."
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:8
msgid "Current Password"
msgstr "Aktuelles Passwort"
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:15
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:141
msgid "New Password"
msgstr "Neues Passwort"
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:14
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:21
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:95
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:147
msgid "Repeat Password"
msgstr "Passwort wiederholen"
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:24
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:27
msgid ""
"\n"
" Please note that you will be <strong>logged out "
"immediately</strong> after changing your password and asked to login "
"again.\n"
" "
msgstr ""
"\n"
" Bitte beachte, dass du nach Änderung deines Passworts "
"<strong>sofort ausgeloggt wirst</strong> und dich erneut einloggen "
"musst.\n"
" "
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:34
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:156
msgid "Current API Key"
msgstr "Aktueller API-Key"
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:32
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:42
msgid ""
"Please note that changes to the API key are applied immediately, without "
"having to \"Confirm\" first."
@@ -9558,3 +9582,9 @@ msgstr "Zeitrafferaufnahme rendern"
#~ "Kontrolle der OctoPrint-Maintainer, aktiviere"
#~ " diese Prüfung auf eigene Gefahr."
#~ msgid "Timelapse Temp Folder"
#~ msgstr "Temporäres Zeitrafferverzeichnis"
#~ msgid "Logs Folder"
#~ msgstr "Logverzeichnis"
+180 -161
View File
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: OctoPrint 1.8.0rc3.dev8+g54207abbe.dirty\n"
"Project-Id-Version: OctoPrint 1.8.3.dev23+g59a0c8e8d\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2022-03-28 14:13+0200\n"
"POT-Creation-Date: 2022-09-19 16:23+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -282,7 +282,7 @@ msgstr ""
msgid "Announcements"
msgstr ""
#: src/octoprint/plugins/announcements/__init__.py:629
#: src/octoprint/plugins/announcements/__init__.py:632
msgid ""
"Without this plugin you might miss important announcements regarding "
"security or other critical issues concerning OctoPrint."
@@ -386,7 +386,7 @@ msgstr ""
msgid "Application Keys"
msgstr ""
#: src/octoprint/plugins/appkeys/__init__.py:253
#: src/octoprint/plugins/appkeys/__init__.py:254
#: src/octoprint/plugins/appkeys/static/js/appkeys.js:115
#, python-format
msgid ""
@@ -394,7 +394,7 @@ msgid ""
"through the API."
msgstr ""
#: src/octoprint/plugins/appkeys/__init__.py:539
#: src/octoprint/plugins/appkeys/__init__.py:543
msgid ""
"Without this plugin third party clients will no longer be able to obtain "
"an API key without you manually copy-pasting it."
@@ -476,7 +476,7 @@ msgstr ""
#: src/octoprint/plugins/appkeys/templates/appkeys.jinja2:21
#: src/octoprint/plugins/appkeys/templates/appkeys_settings.jinja2:45
#: src/octoprint/plugins/appkeys/templates/appkeys_usersettings.jinja2:16
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:22
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:32
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:24
msgid "API Key"
msgstr ""
@@ -490,7 +490,7 @@ msgstr ""
#: src/octoprint/plugins/appkeys/templates/appkeys.jinja2:28
#: src/octoprint/templates/dialogs/settings/api.jinja2:38
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:36
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:46
msgid "QR Code"
msgstr ""
@@ -624,101 +624,101 @@ msgstr ""
msgid "Restore Backup?"
msgstr ""
#: src/octoprint/plugins/backup/__init__.py:1398
#: src/octoprint/plugins/backup/__init__.py:1418
msgid ""
"Without this plugin you will no longer be able to backup & restore your "
"OctoPrint settings and data."
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:95
#: src/octoprint/plugins/backup/static/js/backup.js:94
#, python-format
msgid "You are about to delete backup file \"%(name)s\"."
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:120
#: src/octoprint/plugins/backup/static/js/backup.js:119
#, python-format
msgid ""
"You are about to restore the backup file \"%(name)s\". This cannot be "
"undone."
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:150
#: src/octoprint/plugins/backup/static/js/backup.js:149
#, python-format
msgid ""
"You are about to upload and restore the backup file \"%(name)s\". This "
"cannot be undone."
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:166
#: src/octoprint/plugins/backup/static/js/backup.js:165
msgid ""
"You are about to delete the record of plugins unknown during the last "
"restore."
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:199
#: src/octoprint/plugins/backup/static/js/backup.js:198
#, python-format
msgid "You are about to delete %(count)d backups."
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:222
#: src/octoprint/plugins/backup/static/js/backup.js:221
msgid "Backup created successfully"
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:231
#: src/octoprint/plugins/backup/static/js/backup.js:230
msgid "Creating the backup failed"
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:233
#: src/octoprint/plugins/backup/static/js/backup.js:232
#, python-format
msgid ""
"OctoPrint could not create your backup. Please consult "
"<code>octoprint.log</code> for details. Error: %(error)s"
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:243
#: src/octoprint/plugins/backup/static/js/backup.js:242
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:120
msgid "Restoring from backup..."
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:250
#: src/octoprint/plugins/backup/static/js/backup.js:249
msgid ""
"Restore failed! Check the above output and octoprint.log for reasons as "
"to why."
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:259
#: src/octoprint/plugins/backup/static/js/backup.js:258
msgid "Restore successful! The server will now be restarted!"
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:268
#: src/octoprint/plugins/backup/static/js/backup.js:267
#, python-format
msgid "Installing plugin \"%(plugin)s\"..."
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:277
#: src/octoprint/plugins/backup/static/js/backup.js:276
#, python-format
msgid ""
"Cannot install plugin \"%(plugin)s\" due to it being incompatible to this"
" OctoPrint version and/or underlying operating system"
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:289
#: src/octoprint/plugins/backup/static/js/backup.js:288
#, python-format
msgid ""
"There are %(count)d plugins you'll need to install manually since they "
"aren't registered on the repository:"
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:331
#: src/octoprint/plugins/backup/static/js/backup.js:330
msgid "Deleting backups"
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:332
#: src/octoprint/plugins/backup/static/js/backup.js:331
#, python-format
msgid "Deleting %(count)d backups..."
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:340
#: src/octoprint/plugins/backup/static/js/backup.js:339
#: src/octoprint/plugins/logging/static/js/logging.js:349
#: src/octoprint/static/js/app/viewmodels/timelapse.js:479
#: src/octoprint/static/js/app/viewmodels/timelapse.js:511
@@ -726,7 +726,7 @@ msgstr ""
msgid "Deleted %(filename)s..."
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:348
#: src/octoprint/plugins/backup/static/js/backup.js:347
#: src/octoprint/plugins/logging/static/js/logging.js:357
#: src/octoprint/static/js/app/viewmodels/timelapse.js:487
#: src/octoprint/static/js/app/viewmodels/timelapse.js:520
@@ -734,7 +734,7 @@ msgstr ""
msgid "Deletion of %(filename)s failed, continuing..."
msgstr ""
#: src/octoprint/plugins/backup/static/js/backup.js:352
#: src/octoprint/plugins/backup/static/js/backup.js:351
#: src/octoprint/plugins/logging/static/js/logging.js:361
#: src/octoprint/static/js/app/viewmodels/timelapse.js:491
#, python-format
@@ -798,8 +798,8 @@ msgid "This backup exceeds the maximum allowed upload size"
msgstr ""
#: src/octoprint/plugins/backup/templates/backup_settings.jinja2:49
#: src/octoprint/static/js/app/viewmodels/access.js:329
#: src/octoprint/static/js/app/viewmodels/access.js:661
#: src/octoprint/static/js/app/viewmodels/access.js:344
#: src/octoprint/static/js/app/viewmodels/access.js:676
#: src/octoprint/templates/dialogs/settings/appearance.jinja2:104
msgid "Delete"
msgstr ""
@@ -912,7 +912,7 @@ msgstr ""
msgid "Upload & restore"
msgstr ""
#: src/octoprint/plugins/corewizard/__init__.py:131
#: src/octoprint/plugins/corewizard/__init__.py:136
msgid ""
"Without this plugin OctoPrint will no longer be able to perform setup "
"steps that might be required after an update."
@@ -924,13 +924,13 @@ msgid "Server Commands"
msgstr ""
#: src/octoprint/plugins/corewizard/subwizards.py:56
#: src/octoprint/server/views.py:1025
#: src/octoprint/server/views.py:1045
msgid "Webcam & Timelapse"
msgstr ""
#: src/octoprint/plugins/corewizard/subwizards.py:71
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:1
#: src/octoprint/server/views.py:1042
#: src/octoprint/server/views.py:1062
#: src/octoprint/templates/dialogs/settings/accesscontrol.jinja2:1
msgid "Access Control"
msgstr ""
@@ -992,7 +992,7 @@ msgid ""
msgstr ""
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:11
#: src/octoprint/templates/login.jinja2:77
#: src/octoprint/templates/login.jinja2:78
#: src/octoprint/templates/navbar/login.jinja2:7
#: src/octoprint/templates/navbar/login.jinja2:8
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:83
@@ -1001,7 +1001,7 @@ msgstr ""
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:17
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:3
#: src/octoprint/templates/login.jinja2:78
#: src/octoprint/templates/login.jinja2:79
#: src/octoprint/templates/navbar/login.jinja2:10
#: src/octoprint/templates/navbar/login.jinja2:11
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:89
@@ -1013,7 +1013,8 @@ msgid "Confirm Password"
msgstr ""
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:26
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:17
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:11
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:24
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:98
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:150
msgid "Passwords do not match"
@@ -1269,7 +1270,7 @@ msgid ""
"</p>"
msgstr ""
#: src/octoprint/plugins/discovery/__init__.py:801
#: src/octoprint/plugins/discovery/__init__.py:804
msgid ""
"Without this plugin your OctoPrint instance will no longer be "
"discoverable on the network via Bonjour and uPnP."
@@ -1537,7 +1538,7 @@ msgid "on mobile"
msgstr ""
#: src/octoprint/plugins/gcodeviewer/templates/gcodeviewer_settings.jinja2:19
#: src/octoprint/templates/dialogs/settings/folders.jinja2:85
#: src/octoprint/templates/dialogs/settings/folders.jinja2:70
msgid ""
"Provide values including size unit. Allowed units are: b, byte, bytes, "
"kb, mb, gb, tb (case insensitive). Example: <code>5MB</code>, "
@@ -1686,7 +1687,7 @@ msgstr ""
#: src/octoprint/plugins/gcodeviewer/templates/gcodeviewer_tab.jinja2:126
#: src/octoprint/plugins/softwareupdate/templates/snippets/pipEnableCheck.jinja2:4
#: src/octoprint/templates/dialogs/settings/folders.jinja2:73
#: src/octoprint/templates/dialogs/settings/folders.jinja2:58
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:114
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:550
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:566
@@ -1724,7 +1725,7 @@ msgstr ""
msgid "Allows to download and delete log files and list and set log levels."
msgstr ""
#: src/octoprint/plugins/logging/__init__.py:270
#: src/octoprint/plugins/logging/__init__.py:273
msgid ""
"Without this plugin you will no longer be able to retrieve OctoPrint's "
"logs or modify the current logging levels through the web interface."
@@ -2340,7 +2341,7 @@ msgid ""
msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:47
#: src/octoprint/server/views.py:809
#: src/octoprint/server/views.py:829
msgid "Plugins"
msgstr ""
@@ -2764,7 +2765,7 @@ msgid "Python"
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:1185
#: src/octoprint/plugins/softwareupdate/__init__.py:2345
#: src/octoprint/plugins/softwareupdate/__init__.py:2348
msgid "pip"
msgstr ""
@@ -2772,19 +2773,19 @@ msgstr ""
msgid "setuptools"
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:1472
#: src/octoprint/plugins/softwareupdate/__init__.py:1489
#: src/octoprint/plugins/softwareupdate/__init__.py:1475
#: src/octoprint/plugins/softwareupdate/__init__.py:1492
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard_settings.jinja2:1
msgid "Software Update"
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:1479
#: src/octoprint/plugins/softwareupdate/__init__.py:1482
#: src/octoprint/plugins/softwareupdate/templates/softwareupdate_wizard_update.jinja2:1
msgid "Update?"
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:2323
#: src/octoprint/server/views.py:1040
#: src/octoprint/plugins/softwareupdate/__init__.py:2326
#: src/octoprint/server/views.py:1060
#: src/octoprint/static/js/app/viewmodels/appearance.js:106
#: src/octoprint/static/js/app/viewmodels/appearance.js:110
#: src/octoprint/static/js/app/viewmodels/appearance.js:111
@@ -2795,7 +2796,7 @@ msgstr ""
msgid "OctoPrint"
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:2544
#: src/octoprint/plugins/softwareupdate/__init__.py:2547
msgid ""
"Without this plugin OctoPrint will no longer be able to update itself or "
"any of your installed plugins which might put your system at risk."
@@ -3602,103 +3603,103 @@ msgid ""
" for development."
msgstr ""
#: src/octoprint/server/views.py:896
#: src/octoprint/server/views.py:916
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:16
msgid "Connection"
msgstr ""
#: src/octoprint/server/views.py:907
#: src/octoprint/server/views.py:927
#: src/octoprint/templates/sidebar/state.jinja2:1
msgid "State"
msgstr ""
#: src/octoprint/server/views.py:917
#: src/octoprint/server/views.py:937
msgid "Files"
msgstr ""
#: src/octoprint/server/views.py:934
#: src/octoprint/server/views.py:954
msgid "Temperature"
msgstr ""
#: src/octoprint/server/views.py:943
#: src/octoprint/server/views.py:963
msgid "Control"
msgstr ""
#: src/octoprint/server/views.py:952
#: src/octoprint/server/views.py:972
msgid "Terminal"
msgstr ""
#: src/octoprint/server/views.py:961
#: src/octoprint/server/views.py:981
#: src/octoprint/templates/sidebar/state.jinja2:11
msgid "Timelapse"
msgstr ""
#: src/octoprint/server/views.py:974
#: src/octoprint/server/views.py:994
msgid "Printer"
msgstr ""
#: src/octoprint/server/views.py:976
#: src/octoprint/server/views.py:996
msgid "Serial Connection"
msgstr ""
#: src/octoprint/server/views.py:984
#: src/octoprint/server/views.py:1004
#: src/octoprint/templates/dialogs/settings/printerprofiles.jinja2:1
msgid "Printer Profiles"
msgstr ""
#: src/octoprint/server/views.py:992
#: src/octoprint/server/views.py:1012
msgid "Temperatures"
msgstr ""
#: src/octoprint/server/views.py:1000
#: src/octoprint/server/views.py:1020
#: src/octoprint/templates/dialogs/settings/terminalfilters.jinja2:1
msgid "Terminal Filters"
msgstr ""
#: src/octoprint/server/views.py:1008
#: src/octoprint/server/views.py:1028
#: src/octoprint/templates/dialogs/settings/gcodescripts.jinja2:1
msgid "GCODE Scripts"
msgstr ""
#: src/octoprint/server/views.py:1015 src/octoprint/server/views.py:1017
#: src/octoprint/server/views.py:1035 src/octoprint/server/views.py:1037
#: src/octoprint/templates/dialogs/settings/features.jinja2:1
msgid "Features"
msgstr ""
#: src/octoprint/server/views.py:1033
#: src/octoprint/server/views.py:1053
msgid "API"
msgstr ""
#: src/octoprint/server/views.py:1050
#: src/octoprint/server/views.py:1070
#: src/octoprint/templates/dialogs/settings/folders.jinja2:2
#: src/octoprint/templates/sidebar/files_header.jinja2:13
msgid "Folders"
msgstr ""
#: src/octoprint/server/views.py:1058
#: src/octoprint/server/views.py:1078
#: src/octoprint/templates/dialogs/settings/appearance.jinja2:1
msgid "Appearance"
msgstr ""
#: src/octoprint/server/views.py:1066
#: src/octoprint/server/views.py:1086
#: src/octoprint/templates/dialogs/settings/server.jinja2:1
msgid "Server"
msgstr ""
#: src/octoprint/server/views.py:1079
#: src/octoprint/server/views.py:1099
msgid "Access"
msgstr ""
#: src/octoprint/server/views.py:1087
#: src/octoprint/server/views.py:1107
msgid "Interface"
msgstr ""
#: src/octoprint/server/views.py:1117
#: src/octoprint/server/views.py:1137
#: src/octoprint/static/js/app/viewmodels/temperature.js:208
msgid "Start"
msgstr ""
#: src/octoprint/server/views.py:1124
#: src/octoprint/server/views.py:1144
#: src/octoprint/templates/dialogs/wizard.jinja2:57
msgid "Finish"
msgstr ""
@@ -3997,8 +3998,8 @@ msgid "off"
msgstr ""
#: src/octoprint/static/js/app/helpers.js:793
#: src/octoprint/static/js/app/viewmodels/access.js:324
#: src/octoprint/static/js/app/viewmodels/access.js:656
#: src/octoprint/static/js/app/viewmodels/access.js:339
#: src/octoprint/static/js/app/viewmodels/access.js:671
#: src/octoprint/static/js/app/viewmodels/connection.js:188
msgid "Are you sure?"
msgstr ""
@@ -4007,135 +4008,135 @@ msgstr ""
msgid "Progress"
msgstr ""
#: src/octoprint/static/js/app/main.js:245
#: src/octoprint/static/js/app/main.js:261
msgid "Offline"
msgstr ""
#: src/octoprint/static/js/app/main.js:246
#: src/octoprint/static/js/app/main.js:262
msgid "Offline after error"
msgstr ""
#: src/octoprint/static/js/app/main.js:247
#: src/octoprint/static/js/app/main.js:263
#: src/octoprint/static/js/app/viewmodels/system.js:102
msgid "Error"
msgstr ""
#: src/octoprint/static/js/app/main.js:248
#: src/octoprint/static/js/app/main.js:264
msgid "Opening serial connection"
msgstr ""
#: src/octoprint/static/js/app/main.js:249
#: src/octoprint/static/js/app/main.js:265
msgid "Detecting serial connection"
msgstr ""
#: src/octoprint/static/js/app/main.js:250
#: src/octoprint/static/js/app/main.js:266
msgid "Connecting"
msgstr ""
#: src/octoprint/static/js/app/main.js:251
#: src/octoprint/static/js/app/main.js:267
msgid "Operational"
msgstr ""
#: src/octoprint/static/js/app/main.js:252
#: src/octoprint/static/js/app/main.js:268
msgid "Starting"
msgstr ""
#: src/octoprint/static/js/app/main.js:253
#: src/octoprint/static/js/app/main.js:269
msgid "Starting print from SD"
msgstr ""
#: src/octoprint/static/js/app/main.js:254
#: src/octoprint/static/js/app/main.js:270
msgid "Starting to send file to SD"
msgstr ""
#: src/octoprint/static/js/app/main.js:255
#: src/octoprint/static/js/app/main.js:271
msgid "Printing from SD"
msgstr ""
#: src/octoprint/static/js/app/main.js:256
#: src/octoprint/static/js/app/main.js:272
msgid "Sending file to SD"
msgstr ""
#: src/octoprint/static/js/app/main.js:257
#: src/octoprint/static/js/app/main.js:273
msgid "Printing"
msgstr ""
#: src/octoprint/static/js/app/main.js:258
#: src/octoprint/static/js/app/main.js:274
msgid "Paused"
msgstr ""
#: src/octoprint/static/js/app/main.js:259
#: src/octoprint/static/js/app/main.js:275
msgid "Closed"
msgstr ""
#: src/octoprint/static/js/app/main.js:260
#: src/octoprint/static/js/app/main.js:276
msgid "Transferring file to SD"
msgstr ""
#: src/octoprint/static/js/app/main.js:261
#: src/octoprint/static/js/app/main.js:277
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:563
msgid "Pausing"
msgstr ""
#: src/octoprint/static/js/app/main.js:262
#: src/octoprint/static/js/app/main.js:278
msgid "Resuming"
msgstr ""
#: src/octoprint/static/js/app/main.js:263
#: src/octoprint/static/js/app/main.js:279
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:572
msgid "Cancelling"
msgstr ""
#: src/octoprint/static/js/app/main.js:264
#: src/octoprint/static/js/app/main.js:280
msgid "Finishing"
msgstr ""
#: src/octoprint/static/js/app/main.js:1051
#: src/octoprint/static/js/app/main.js:1067
msgid "Loading OctoPrint's UI, please wait..."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/access.js:99
#: src/octoprint/static/js/app/viewmodels/access.js:101
msgid "This user may not have dangerous permissions."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/access.js:114
#: src/octoprint/static/js/app/viewmodels/access.js:116
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:48
msgid "Add user"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/access.js:124
#: src/octoprint/static/js/app/viewmodels/access.js:126
#, python-format
msgid "Edit user \"%(name)s\""
msgstr ""
#: src/octoprint/static/js/app/viewmodels/access.js:314
#: src/octoprint/static/js/app/viewmodels/access.js:329
msgid "Not possible"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/access.js:315
#: src/octoprint/static/js/app/viewmodels/access.js:330
msgid "You may not delete your own account."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/access.js:326
#: src/octoprint/static/js/app/viewmodels/access.js:341
#, python-format
msgid "You are about to delete the user \"%(name)s\"."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/access.js:459
#: src/octoprint/static/js/app/viewmodels/access.js:474
msgid "This group may not have dangerous permissions or subgroups."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/access.js:517
#: src/octoprint/static/js/app/viewmodels/access.js:532
#: src/octoprint/templates/snippets/settings/accesscontrol/groups.jinja2:47
msgid "Add group"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/access.js:529
#: src/octoprint/static/js/app/viewmodels/access.js:544
#, python-format
msgid "Edit group \"%(name)s\""
msgstr ""
#: src/octoprint/static/js/app/viewmodels/access.js:658
#: src/octoprint/static/js/app/viewmodels/access.js:673
#, python-format
msgid "You are about to delete the group \"%(name)s\"."
msgstr ""
@@ -4333,40 +4334,40 @@ msgstr ""
msgid "File already exists: %(name)s"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/files.js:1673
#: src/octoprint/static/js/app/viewmodels/files.js:1679
msgid "Refreshing list ..."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/files.js:1703
#: src/octoprint/static/js/app/viewmodels/files.js:1709
msgid ""
"Could not upload the file to the printer's SD. Make sure the SD is "
"initialized and the printer is not busy with a print already."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/files.js:1707
#: src/octoprint/static/js/app/viewmodels/files.js:1713
msgid ""
"Could not upload the file, overwrite not possible. Make sure it is not "
"already printing and that you have allowed overwriting."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/files.js:1716
#: src/octoprint/static/js/app/viewmodels/files.js:1722
#, python-format
msgid ""
"Could not upload the file. Make sure that it is a readable, valid file "
"with one of these extensions: %(extensions)s"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/files.js:1725
#: src/octoprint/static/js/app/viewmodels/files.js:1731
msgid ""
"Could not upload the file. Please check octoprint.log for possible "
"reasons."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/files.js:1756
#: src/octoprint/static/js/app/viewmodels/files.js:1762
msgid "Saving ..."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/files.js:1756
#: src/octoprint/static/js/app/viewmodels/files.js:1762
msgid "Uploading ..."
msgstr ""
@@ -4681,23 +4682,23 @@ msgstr ""
msgid "Autodetect from browser"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:450
#: src/octoprint/static/js/app/viewmodels/settings.js:456
msgid "If you see your webcam stream below, the entered stream URL is ok."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:492
#: src/octoprint/static/js/app/viewmodels/settings.js:505
msgid "Stream test"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:514
#: src/octoprint/static/js/app/viewmodels/settings.js:527
msgid "Could not retrieve snapshot URL, please double check the URL"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:517
#: src/octoprint/static/js/app/viewmodels/settings.js:530
msgid "Snapshot test failed"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:537
#: src/octoprint/static/js/app/viewmodels/settings.js:550
#, python-format
msgid ""
"Could retrieve the snapshot URL, but it didn't look like an image. Got "
@@ -4706,67 +4707,67 @@ msgid ""
"or videos."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:566
#: src/octoprint/static/js/app/viewmodels/settings.js:579
msgid ""
"If you see your webcam snapshot picture below, the entered snapshot URL "
"is ok."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:570
#: src/octoprint/static/js/app/viewmodels/settings.js:583
msgid "Snapshot test"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:612
#: src/octoprint/static/js/app/viewmodels/settings.js:625
msgid "The path doesn't exist"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:614
#: src/octoprint/static/js/app/viewmodels/settings.js:627
msgid "The path is not a file"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:617
#: src/octoprint/static/js/app/viewmodels/settings.js:630
msgid "The path is not an executable"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:621
#: src/octoprint/static/js/app/viewmodels/settings.js:722
#: src/octoprint/static/js/app/viewmodels/settings.js:634
#: src/octoprint/static/js/app/viewmodels/settings.js:735
msgid "The path is valid"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:646
#: src/octoprint/static/js/app/viewmodels/settings.js:659
msgid "The server is not reachable"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:649
#: src/octoprint/static/js/app/viewmodels/settings.js:662
msgid "The server is reachable"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:670
#: src/octoprint/static/js/app/viewmodels/settings.js:683
msgid "Name cannot be resolved"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:674
#: src/octoprint/static/js/app/viewmodels/settings.js:687
msgid "Name can be resolved"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:706
#: src/octoprint/static/js/app/viewmodels/settings.js:719
msgid "The path is a broken symlink."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:710
#: src/octoprint/static/js/app/viewmodels/settings.js:723
msgid "The path does not exist and cannot be created."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:714
#: src/octoprint/static/js/app/viewmodels/settings.js:727
msgid "The path is not a folder."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:718
#: src/octoprint/static/js/app/viewmodels/settings.js:731
msgid "The path is not writable."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/settings.js:859
#: src/octoprint/static/js/app/viewmodels/usersettings.js:122
#: src/octoprint/static/js/app/viewmodels/settings.js:871
#: src/octoprint/static/js/app/viewmodels/usersettings.js:142
msgid ""
"This will generate a new API Key. The old API Key will cease to function "
"immediately."
@@ -4900,20 +4901,20 @@ msgstr ""
msgid "showing %(displayed)d lines"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/terminal.js:525
#: src/octoprint/static/js/app/viewmodels/terminal.js:529
#, python-format
msgid "The command <code>%(command)s</code> was not sent to the printer:"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/terminal.js:532
#: src/octoprint/static/js/app/viewmodels/terminal.js:536
msgid "Suppressed command"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/terminal.js:541
#: src/octoprint/static/js/app/viewmodels/terminal.js:545
msgid "Invalid tool reported"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/terminal.js:543
#: src/octoprint/static/js/app/viewmodels/terminal.js:547
#, python-format
msgid ""
"Your printer reported tool T%(tool)d as invalid, reverting back to "
@@ -5075,7 +5076,7 @@ msgstr ""
msgid "Site default"
msgstr ""
#: src/octoprint/static/js/app/viewmodels/usersettings.js:137
#: src/octoprint/static/js/app/viewmodels/usersettings.js:157
msgid "This will delete the API Key. It will cease to to function immediately."
msgstr ""
@@ -5133,34 +5134,38 @@ msgid "Incorrect username or password. Hint: Both are case sensitive!"
msgstr ""
#: src/octoprint/templates/login.jinja2:69
msgid "You have made too many failed login attempts. Please try again later."
msgstr ""
#: src/octoprint/templates/login.jinja2:70
#: src/octoprint/templates/recovery.jinja2:70
msgid "Server is currently offline."
msgstr ""
#: src/octoprint/templates/login.jinja2:69
#: src/octoprint/templates/login.jinja2:70
#: src/octoprint/templates/recovery.jinja2:70
msgid "Reconnect..."
msgstr ""
#: src/octoprint/templates/login.jinja2:72
#: src/octoprint/templates/login.jinja2:73
msgid "The following account is required:"
msgstr ""
#: src/octoprint/templates/login.jinja2:74
#: src/octoprint/templates/login.jinja2:75
msgid "An account with the following permissions is required:"
msgstr ""
#: src/octoprint/templates/login.jinja2:79
#: src/octoprint/templates/login.jinja2:80
#: src/octoprint/templates/navbar/login.jinja2:9
msgid "Forgot password?"
msgstr ""
#: src/octoprint/templates/login.jinja2:81
#: src/octoprint/templates/login.jinja2:82
#: src/octoprint/templates/navbar/login.jinja2:13
msgid "Remember me"
msgstr ""
#: src/octoprint/templates/login.jinja2:83
#: src/octoprint/templates/login.jinja2:84
msgid "Log in"
msgstr ""
@@ -5558,7 +5563,7 @@ msgid "Access Application Keys"
msgstr ""
#: src/octoprint/templates/dialogs/settings/api.jinja2:30
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:27
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:37
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:159
msgid "N/A"
msgstr ""
@@ -5780,8 +5785,6 @@ msgstr ""
#: src/octoprint/templates/dialogs/settings/folders.jinja2:8
#: src/octoprint/templates/dialogs/settings/folders.jinja2:18
#: src/octoprint/templates/dialogs/settings/folders.jinja2:28
#: src/octoprint/templates/dialogs/settings/folders.jinja2:38
#: src/octoprint/templates/dialogs/settings/folders.jinja2:48
#: src/octoprint/templates/snippets/settings/server/serverOnlineCheckTestConnectivity.jinja2:1
#: src/octoprint/templates/snippets/settings/server/serverOnlineCheckTestResolution.jinja2:1
#: src/octoprint/templates/snippets/settings/webcam/ffmpegPath.jinja2:6
@@ -5795,24 +5798,16 @@ msgid "Timelapse Folder"
msgstr ""
#: src/octoprint/templates/dialogs/settings/folders.jinja2:24
msgid "Timelapse Temp Folder"
msgstr ""
#: src/octoprint/templates/dialogs/settings/folders.jinja2:34
msgid "Logs Folder"
msgstr ""
#: src/octoprint/templates/dialogs/settings/folders.jinja2:44
msgid "Watched Folder"
msgstr ""
#: src/octoprint/templates/dialogs/settings/folders.jinja2:56
#: src/octoprint/templates/dialogs/settings/folders.jinja2:36
msgid ""
"Actively poll the watched folder. Check this if files in your watched "
"folder aren't automatically added otherwise."
msgstr ""
#: src/octoprint/templates/dialogs/settings/folders.jinja2:61
#: src/octoprint/templates/dialogs/settings/folders.jinja2:41
msgid ""
"\n"
" Two or more of the folders configured share a location. This "
@@ -5823,17 +5818,28 @@ msgid ""
" "
msgstr ""
#: src/octoprint/templates/dialogs/settings/folders.jinja2:68
#: src/octoprint/templates/dialogs/settings/folders.jinja2:48
msgid ""
"\n"
" Please note: Not all of the folders used by OctoPrint can be "
"configured through the UI, only those most commonly moved to other "
"places. If you need to configure other folders,\n"
" please do so by manually editing the configuration. See the docs "
"for details.\n"
" "
msgstr ""
#: src/octoprint/templates/dialogs/settings/folders.jinja2:53
msgid "Disk space thresholds"
msgstr ""
#: src/octoprint/templates/dialogs/settings/folders.jinja2:70
#: src/octoprint/templates/dialogs/settings/folders.jinja2:55
msgid ""
"If the free disk space falls below these thresholds, OctoPrint will warn "
"the user."
msgstr ""
#: src/octoprint/templates/dialogs/settings/folders.jinja2:79
#: src/octoprint/templates/dialogs/settings/folders.jinja2:64
msgid "Critical"
msgstr ""
@@ -6785,22 +6791,35 @@ msgid ""
msgstr ""
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:8
msgid "Current Password"
msgstr ""
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:15
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:141
msgid "New Password"
msgstr ""
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:14
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:21
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:95
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:147
msgid "Repeat Password"
msgstr ""
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:24
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:27
msgid ""
"\n"
" Please note that you will be <strong>logged out "
"immediately</strong> after changing your password and asked to login "
"again.\n"
" "
msgstr ""
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:34
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:156
msgid "Current API Key"
msgstr ""
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:32
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:42
msgid ""
"Please note that changes to the API key are applied immediately, without "
"having to \"Confirm\" first."