Gina Häußge
ddd2711f95
Fix a broken unit test
...
We now initialize the folders when initializing the settings, so the
test that the folder didn't yet exist before retrieving its path
naturally failed.
2018-05-03 12:18:10 +02:00
Gina Häußge
9addbbb9a1
Fix refactoring bug
...
Closes #2617
2018-05-03 11:45:46 +02:00
malnvenshorn
735e2c6c94
Convert page size to integer when reading from local storage
2018-05-01 15:50:27 +02:00
malnvenshorn
9d2ee2b55b
Save page size to local storage
2018-05-01 12:32:55 +02:00
malnvenshorn
7988e7487f
DRY principle for storage IDs
2018-05-01 12:21:01 +02:00
Gina Häußge
4bbe49ac6d
Sanity check for configured folders
...
* On startup: Check they are writable, if not revert to defaults
* On settings save: Check they are writable, if not return an HTTP 400
* In the settings dialog: Allow quick check of writability via Test
buttons
Should hopefully prevent users from nuking their instance by configuring
some custom folder that isn't writable.
TODO:
Currently simply doesn't close the settings dialog, needs some message
or something (or client side folder validation on clicking the button).
2018-04-27 17:44:07 +02:00
Gina Häußge
9e32439f44
Watchdog: Ignore hidden & removed files
...
Closes #2558
2018-04-27 16:17:04 +02:00
Gina Häußge
3ebb36f877
Disable user display if access control is disabled
...
Also show something more human friendly if the active user for a print
job is the "_api" user of the global api key.
2018-04-27 11:53:49 +02:00
Gina Häußge
b2996f10ff
Get rid of a bit of Python2 only code
2018-04-26 12:56:07 +02:00
Gina Häußge
42fb4f4700
Fix remember me and IPv4/IPv6 sessions
...
Session protection mode "strong" is apparently incompatible to the
remember me function in general and on top of that I observed issues
with at least Windows happily switching between connecting to an
instance via IPv4 and IPv6, causing changes in the reported client IP
and hence the session protection killing the session as a result.
2018-04-26 12:40:07 +02:00
Gina Häußge
52934602cd
Fix forgotten self
2018-04-26 12:03:34 +02:00
Gina Häußge
2a0eda5c34
Make sure we have the current user data in editor
...
Fixes #2534
2018-04-26 11:30:48 +02:00
Gina Häußge
a3b3fbe269
Add some more strings to the known error classes
...
"Missing linenumber" is apparently also an option we want to recognize
as non critical error, and while we are at it let's make sure we also
capture "linenumber" without a space for resend request communication
errors, just in case firmware devs add some variance here.
2018-04-26 11:00:29 +02:00
Gina Häußge
2fe177ffb8
Virtual: Fix default M114 format string
2018-04-25 17:01:24 +02:00
Gina Häußge
d8bc75222f
Remove some left overs from a small refactor
...
Closes #2610
2018-04-25 17:01:24 +02:00
Gina Häußge
c3bb651d9e
Properly decouple individual metadata locks
...
Thanks to @CapnBry for the heads-up here.
2018-04-25 17:01:24 +02:00
Gina Häußge
135cf6a9cc
Migrate file storage metadata to json
...
As suggested by @CapnBry, that should give us a significant speed
boost considering that yaml serialization and deserialization is some
orders of magnitude slower than json.
We only do that for the file metadata for now - it has the biggest gain
to expect from a speed boost, and having the configuration as yaml
actually has its readability advantages.
2018-04-25 17:01:24 +02:00
Gina Häußge
be4b98b9da
Merge pull request #2604 from dforsi/fix/issue/2534
...
Reload older values after cancelling the Settings dialog
2018-04-25 10:51:41 +02:00
Gina Häußge
673b367902
Merge pull request #2591 from dforsi/fix/valid-html
...
Fix markup for some HTML labels
2018-04-25 10:41:57 +02:00
Gina Häußge
81626ceec5
Small change in user display in state panel
2018-04-24 16:52:17 +02:00
Gina Häußge
b653ee59c8
Merge branch 'pr/2576' into maintenance
...
# Conflicts:
# src/octoprint/printer/standard.py
2018-04-24 16:45:08 +02:00
Gina Häußge
79abe31a06
Move printing user into job data & add UI representation
2018-04-24 16:44:41 +02:00
Gina Häußge
30a523b8c1
Fix printer.select_file
...
* properly handle relative paths for selection
* properly handle absolute paths for recovery data comparison
Fixes #2601
2018-04-24 16:00:09 +02:00
Gina Häußge
c104f45b16
SWU: Default to force_base = False
2018-04-24 13:49:21 +02:00
Gina Häußge
a9bc814016
Merge branch 'master' into maintenance
2018-04-24 13:18:47 +02:00
Gina Häußge
edd00cfa80
Some adjustments for PyPI stuff
2018-04-24 12:41:45 +02:00
Daniele Forsi
60baf54d7b
Refresh the details in the Connection pane when settings are updated
2018-04-23 23:54:02 +02:00
Daniele Forsi
536f5458bb
Show details in the Connection pane ordered as in the Settings dialog
...
Return the Serial Port and the Baudrate lists without sorting them.
2018-04-23 16:05:47 +02:00
Daniele Forsi
a4cc3a9309
Reload older values after cancelling the Settings dialog
...
Fixes #2534
2018-04-22 23:09:37 +02:00
Gina Häußge
f72b92caff
Revert Tornado 5 fixes for sockjs
2018-04-20 22:39:26 +02:00
Gina Häußge
d3e7842c3a
Revert "Minor adjustments for Tornado 5"
...
This reverts commit 258f3725bf .
2018-04-20 22:39:25 +02:00
Gina Häußge
555bdefd46
Pin tornado to >=4.5.3,<5 for now
...
There appears to be a memory leak issue with tornado 5.x as reported in #2585
2018-04-20 22:39:20 +02:00
Daniele Forsi
206c22f6aa
Add some icons to the About page
...
Also moves Documentation so that the first 4 items are the same as in the footer.
2018-04-19 18:34:40 +02:00
Daniele Forsi
14959c2d66
Hide the buttons when the file list is hidden
2018-04-19 17:51:00 +02:00
Daniele Forsi
eb3760715f
Replace "Cancel" label with "Abort" on buttons for consistency
...
Now only the main settings dialog has a "Cancel" button and the other
dialogs have "Abort" on the buttons that do not save the changes.
2018-04-19 15:55:35 +02:00
Daniele Forsi
e02679a587
Fix trivial copy and paste errors
2018-04-19 15:36:09 +02:00
Daniele Forsi
4064b3fc72
Make the API buttons and title in the Settings similar to those in other dialogs
2018-04-19 15:36:09 +02:00
Daniele Forsi
e3f2a16e92
Fix caret icon always shown in position "closed" even whe details are visible
2018-04-19 15:36:09 +02:00
Gina Häußge
a9441400b3
Merge branch 'fix/positionLogTimeout' into maintenance
...
# Conflicts:
# src/octoprint/util/comm.py
2018-04-19 14:10:16 +02:00
Gina Häußge
09781613ce
Add timeout for position log on pause/cancel
...
Workaround for firmware which doesn't provide a proper M114 report that might
be unparseable. We don't want to get stuck in such cases (which appear to be more
common than should be the case - this whole comm situation is just FUBAR).
2018-04-19 14:09:18 +02:00
Gina Häußge
63b63f6aad
Test for image/* in snapshot test
2018-04-19 13:10:58 +02:00
Gina Häußge
1637187c76
Extend URL test to also allow whitelist/blacklist check for the returned content type
2018-04-19 13:10:41 +02:00
Gina Häußge
303ef405bb
Fix snapshot test button not resetting on error
2018-04-19 13:01:37 +02:00
Gina Häußge
bf3da2a662
Fixes a race condition causing stalls when pausing/cancelling
...
Closes #2581 & closes #2587
2018-04-18 13:02:36 +02:00
Gina Häußge
b8194ecc84
Fixes a race condition causing stalls when pausing/cancelling
...
Closes #2581
2018-04-18 12:59:38 +02:00
Gina Häußge
472ab367b0
Disable logging the position on cancel by default
...
Apparently that is causing too many issues in the field. If someone
actually DOES need the position data, they can always enable this.
2018-04-18 12:59:38 +02:00
Gina Häußge
8f50180543
Virtual: allow defining custom M114 responses
2018-04-17 09:10:33 +02:00
Daniele Forsi
11eae082fc
Remove invalid xmlns attributes so that the default value is used
...
Fixes 2 validation errors:
Error: Bad value http://www.w3.org/1999/html for the attribute xmlns (only http://www.w3.org/1999/xhtml permitted here).
<div id="offline_overlay" xmlns="http://www.w3.org/1999/html ">↩ <
Error: Bad value http://www.w3.org/1999/html for the attribute xmlns (only http://www.w3.org/1999/xhtml permitted here).
<div id="reloadui_overlay" xmlns="http://www.w3.org/1999/html ">↩ <
2018-04-16 20:07:28 +02:00
Daniele Forsi
885446328d
Add missing "for" and "id" attributes to some HTML labels
2018-04-16 20:07:28 +02:00
Daniele Forsi
8cb4d84905
Fix HTML labels with wrong "for" attribute
...
Fixes some validation errors detected by https://validator.w3.org and other errors.
2018-04-16 20:07:28 +02:00