Hannappel
84f95b1099
Fixes creating of groups
2019-02-06 16:08:15 +01:00
Gina Häußge
becd16b892
🐛 Fix a test
2019-02-05 16:08:40 +01:00
Gina Häußge
f59c1ce804
⬆ Upgrade Flask-Login dependency
...
It used to be 0.3.0+, some merge in the past must have broken that.
2019-02-05 15:58:15 +01:00
Gina Häußge
c71972c0f8
♻ Explicitly add admin group to plugin permissions
...
Admin only access by default for these was implied by not having them
added to one of the three major default groups, making it explicit is
more clear though.
2019-02-05 15:58:15 +01:00
Gina Häußge
47a9a40ec9
✨ permissions: Groups can now have subgroups
...
That way we can easily provide a Read Only group that allows read-only
access and which can then be added to the Guest group by users who
desire anonymous read-only access, similar to disabling the forcelogin
plugin in 1.3.10+
2019-02-05 15:58:15 +01:00
Gina Häußge
7a3b370469
🐛 Fix earlier merge error
...
New permission system does handle disabled ACL slightly differently.
2019-02-04 14:30:02 +01:00
Gina Häußge
dbfe487f13
Merge branch 'maintenance' into devel
2019-02-01 15:12:42 +01:00
Gina Häußge
21a82bbdb6
🐛 Fix enableWebcam render kwarg
...
Was using the wrong setting name.
2019-02-01 15:10:28 +01:00
Gina Häußge
47e9afa811
♻ Use new named registration params for UiStateVM
2019-02-01 14:58:02 +01:00
Gina Häußge
f9edea0c2c
🐛 Fix duplicate auth request on socket
...
Merge error.
2019-02-01 14:57:11 +01:00
Gina Häußge
8ef3d1dcad
🐛 Fix reload loop on first setup
...
Removed the forcelogin plugin since it's obsolete in 1.4.0 thanks to
the granular permission system anyhow.
2019-02-01 14:56:48 +01:00
Gina Häußge
fcfef25c93
🐛 Fix first run wizard again
...
Necessary requests were wrongfully denied after initial setup of a user
account due to hasBeenCustomized still being used and its deprecated
wrapper wrapping the always False implementation in the UserManager base
class instead of the adjusted one in the FileBasedUserManager. Evil bug.
2019-02-01 14:45:38 +01:00
Gina Häußge
604d2f7811
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/server/views.py
# src/octoprint/templates/dialogs/settings/api.jinja2
2019-02-01 11:12:29 +01:00
Gina Häußge
727fd12939
🚸 CORS change needs restart to take effect
2019-02-01 10:55:24 +01:00
Gina Häußge
100fe5f290
🐛 Allow disabling CORS headers on SockJS endpoints
...
Fixes 2) of #3024
2019-02-01 10:40:37 +01:00
Gina Häußge
1acf69cb6d
🐛 Add CORS headers to tornado endpoints (if enabled)
...
Fixes 1) of #3024
2019-01-31 17:38:10 +01:00
Gina Häußge
3815c340a8
☔ Protect against corrupt language packs
2019-01-31 17:07:10 +01:00
Gina Häußge
5e8220055f
🐛 Fix merge error
2019-01-31 14:44:46 +01:00
Gina Häußge
38eff3fe6f
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/server/api/system.py
2019-01-31 14:07:14 +01:00
Gina Häußge
4e47ecabf8
🐛 Fix duped log entries
2019-01-31 13:57:05 +01:00
Gina Häußge
c36a378b60
Merge branch 'hotfix/documentation_error' into maintenance
2019-01-30 15:08:41 +01:00
Gina Häußge
9a7ebde76b
📝 Fix documentation for firmware info & capability plugin hooks
2019-01-30 15:02:32 +01:00
Gina Häußge
c23bafd788
☔ Protect against callback errors in decorators on default view
2019-01-30 14:36:53 +01:00
Gina Häußge
1aea92a5f1
☔ Protect against invalid preemptive cache config data
...
Fixes #3023
2019-01-30 14:36:52 +01:00
Gina Häußge
df9617ac1e
🔀 Merge branch 'maintenance' into devel
2019-01-30 11:27:30 +01:00
Gina Häußge
0b23417f45
🐛 Add missing asset that got lost during a merge
...
Fixes #3021
2019-01-29 16:48:07 +01:00
Gina Häußge
fb38c396e8
Merge pull request #3010 from HarlemSquirrel/maintenance-disk-usage
...
Add system usage API endpoint
2019-01-28 18:33:38 +01:00
Gina Häußge
904b3c6cf5
🔧 Adjust default regex of temperature terminal filter (2nd try)
...
Should no longer match lines like
FIRMWARE_NAME:Marlin 1.1.7-C2 (Github) SOURCE_CODE_URL:https://github.com/Robo3D/Marlin-C2 PROTOCOL_VERSION:C2 MACHINE_TYPE:RoboC2 EXTRUDER_COUNT:1 UUID:cede2a2f-41a2-4748-9b12-c55c62f367ff EMERGENCY_CODES:M108,M112,M410
but should pass unit tests.
Fixes #2945
2019-01-28 18:20:03 +01:00
Gina Häußge
7f2b79bcd5
⏪ Revert "🔧 Adjust default regex of temperature terminal filter"
...
This reverts commit dd692d6
2019-01-28 18:02:46 +01:00
Gina Häußge
dd692d6f30
🔧 Adjust default regex of temperature terminal filter
...
Should no longer match lines like
FIRMWARE_NAME:Marlin 1.1.7-C2 (Github) SOURCE_CODE_URL:https://github.com/Robo3D/Marlin-C2 PROTOCOL_VERSION:C2 MACHINE_TYPE:RoboC2 EXTRUDER_COUNT:1 UUID:cede2a2f-41a2-4748-9b12-c55c62f367ff EMERGENCY_CODES:M108,M112,M410
Fixes #2945
2019-01-28 17:56:10 +01:00
Gina Häußge
5d021d76a0
✨ action_command_prompt: PROMPT_SUPPORT capability support
...
Allow configuration of whether to enable the plugin if firmware support
is detected, always or never. Handle PROMPT_SUPPORT capability report
accordingly.
See MarlinFirmware/Marlin#12982
2019-01-28 17:41:01 +01:00
Gina Häußge
2db230549e
✨ action_command_prompt: signal prompt support on connect (default off)
...
Note: Has to be enabled manually for now as long as we cannot detect
that the firmware indeed has support for M876.
See MarlinFirmware/Marlin#12982
2019-01-28 14:50:40 +01:00
Gina Häußge
01484b630a
✨ action_command_prompt: EMERGENCY_PARSER support (default off)
...
Note: Has to be enabled manually for now as long as we cannot detect
that the firmware indeed has support for M876 and hence has it as part
of the EMERGENCY_PARSER.
See MarlinFirmware/Marlin#12982
2019-01-28 14:32:10 +01:00
Gina Häußge
d8088887e1
🐛 Fix bug introduced in bd58138acf
2019-01-28 13:45:09 +01:00
Gina Häußge
379411cea7
🔧 action_command_prompt: M876 as default command
...
See MarlinFirmware/Marlin#12982
2019-01-28 13:10:00 +01:00
Gina Häußge
5e953c12a1
💬 Rewording
2019-01-28 13:07:34 +01:00
Gina Häußge
bd58138acf
🎨 Refactored for better code reuse
2019-01-28 13:05:27 +01:00
Gina Häußge
44b4c6cc40
🐛 sleep => time.sleep
2019-01-28 13:00:26 +01:00
Gina Häußge
f3f1061f9d
❇️ Configurable terminal log size in comm layer
...
See https://discourse.octoprint.org/t/logging-terminal-information-on-failed-print/7047/3?u=foosel
2019-01-28 12:03:16 +01:00
Gina Häußge
68410cb3d7
🐛 Fix an issue with plugin sorting
...
If we just uninstalled a plugin there might not be a PluginInfo object.
In that case assume the plugin is not bundled (not False = True)
2019-01-25 16:14:45 +01:00
Gina Häußge
db009e3ba2
🐛 backup: do not translate plugin name
...
Only translate it at template level, not before.
Fixes #3012
2019-01-25 15:48:35 +01:00
Gina Häußge
09d3c44161
🐛 unicode-ify octoprint.plugin.core
...
Fixes #3012
2019-01-25 15:39:31 +01:00
Gina Häußge
eb46815789
Slight refactoring for improved testability & fix tests
2019-01-22 15:40:08 +01:00
Kevin McCormack
449fa0c7ec
WIP Update test_system
2019-01-21 12:49:57 -05:00
Kevin McCormack
0489dfeaee
[WIP] Add disk usage API endpoint
2019-01-20 10:02:13 -05:00
Gina Häußge
a9b395dac8
✨ Dedicated settings for webcam/timelapse support
...
Implements #2974
2019-01-18 16:58:34 +01:00
Gina Häußge
6a069de240
Put generic templates after javascript assets
...
That way it's possible for plugins to reference already loaded libraries
or constants in any injected generic templates.
2019-01-18 14:10:47 +01:00
Gina Häußge
2287c65784
forcelogin: ui_render sorting key of 0
...
If third party UIPlugin want to override the forcelogin plugin, they'll
need to return a negative sorting key.
2019-01-17 17:55:24 +01:00
Gina Häußge
3b26a2f7d2
Take bundle status into account for plugin sorting
2019-01-17 17:54:24 +01:00
Gina Häußge
18ffdcff6b
forcelogin: Accept auth via apikey & auth headers
...
So far we only checked for keys or auth headers on the API, the plugin
so far only checked if there was an existing cookie via a passive login.
Now it will try to login the user from any provided api keys or
authorization headers as well and only fall back to the passive login if
that doesn't succeed. A call to the frontend with either will thus not
trigger the login dialog.
See #2997
2019-01-17 17:33:00 +01:00