Gina Häußge
e2a7e07a0a
Fix some imports
2018-04-20 14:04:38 +02:00
Gina Häußge
b3acd36092
Don't try to login/out anonymous users
2018-04-20 14:02:39 +02:00
Gina Häußge
7a037b9c66
Make sure to update data if current permissions change
2018-04-19 22:01:52 +02:00
Gina Häußge
c1cf359b43
Fix a group duplication bug
2018-04-19 18:49:05 +02:00
Gina Häußge
2d883d6d20
Make "users" group mandatory for logged in users
...
That makes the migration scenario way easier and also makes sense
in general.
2018-04-19 14:55:47 +02:00
Gina Häußge
d59eaa2a91
Admins are also users
2018-04-12 19:49:04 +02:00
Gina Häußge
f7ad87449a
Identify groups by a key & add group role
2018-04-12 19:07:59 +02:00
Gina Häußge
08bfae216c
Merge branch 'devel' into dev/permission
...
# Conflicts:
# src/octoprint/plugins/printer_safety_check/__init__.py
# src/octoprint/server/__init__.py
# src/octoprint/server/util/sockjs.py
2018-04-12 16:37:27 +02:00
Gina Häußge
64db784d8d
Merge branch 'maintenance' into devel
...
# Conflicts:
# setup.py
# src/octoprint/server/__init__.py
2018-04-12 16:35:53 +02:00
Gina Häußge
5a91b8db48
Some permission changes & fixes
2018-04-12 16:34:17 +02:00
Gina Häußge
9c923be5f0
Better solution for the Tornado 5 + SockJS + haproxy issue
...
Looks like Nagle's algorithm was the cause. Adding
option http-no-delay
to haproxy.cfg solves the problem without modification of the timeout,
however that is not an option for the thousands of instances already
deployed in the field.
So instead we add 300ms to the roundtrip based connection timeout, that
should hopefully get around any Nagle-induced delays (usually between
40 and 200ms according to various sites on the net).
2018-04-12 13:19:02 +02:00
Gina Häußge
132614045c
Early detection & logging of broken files response
...
Fixes #2572
2018-04-12 12:08:19 +02:00
Gina Häußge
a33b037364
Fix ItemListHelper throwing an error on undefined items
...
Just fall back to an empty list.
Fixed #2572 (at least the bit that isn't a broken nginx config)
2018-04-12 11:55:14 +02:00
Gina Häußge
33b27e450f
Merge branch 'fix/sockjs' into maintenance
2018-04-11 18:47:18 +02:00
Gina Häußge
a5d541dafc
Fix sockjs not working behind haproxy
...
For some reason the websocket connection runs into a timeout, the xhr
transport doesn't properly take over, and then stuff takes ages to
realign again.
Only happens under Tornado 5, doesn't happen under Tornado 4.5
Increasing the timeout for now instead of pinning to Tornado 4.5 in the
hopes that might still be figured out.
Incredibly weird though.
2018-04-11 18:47:08 +02:00
Gina Häußge
258f3725bf
Minor adjustments for Tornado 5
2018-04-11 18:43:23 +02:00
Gina Häußge
c4d8e344d1
Remove wrongly placed whitespace
2018-04-11 11:15:46 +02:00
Gina Häußge
f3128a15d9
Safety Plugin: Add Malyan M200 & CR-10S
...
Malyan M200 identified by firmware name "Malyan" and model "M200".
Printer also known as Monoprice Select Mini, see also ID strings in
#2271 .
CR-10S identified by "Author: (CR-10Slanguage)".
2018-04-11 11:15:18 +02:00
Gina Häußge
6f224bd825
Workaround for typo & whitespace in Malyan M115 responses
...
NAME. instead of NAME:, whitespace between key and value component.
2018-04-11 11:12:56 +02:00
Gina Häußge
75de062b55
Safety Plugin: Add detection of Anycubic Mega
...
Identified by "Author: (Jolly, xxxxxxxx.CO.)" in startup messages.
2018-04-10 18:09:55 +02:00
Gina Häußge
58f73f3ed9
Merge branch 'maintenance' into devel
2018-04-09 17:03:30 +02:00
Gina Häußge
85dfcbd156
Merge branch 'staging/maintenance' into maintenance
2018-04-09 17:03:15 +02:00
Gina Häußge
a6cec7d2ef
Merge branch 'rc/maintenance' into staging/maintenance
2018-04-09 17:02:51 +02:00
Gina Häußge
6d7f8a2a64
Don't raise error when trying to read from finished print
...
Could be caused by timing issues and one `continue_sending` too many, so
just ignore this but log a warning.
1.3.7
2018-04-09 15:56:35 +02:00
Gina Häußge
8869748ecc
Don't trigger ok timeout while heating or in long running command
...
Workaround for printers that don't send busy:processing during heatups
like they should.
2018-04-09 15:53:25 +02:00
Gina Häußge
e0b0f2ae18
Preparing release of 1.3.7
2018-04-09 12:38:56 +02:00
Gina Häußge
440ccf165e
[Docs] Add missing image
...
Fixes #2557
2018-04-09 11:50:16 +02:00
Gina Häußge
7e0b187cb8
Bundle sockjs-tornado dependency
...
It appears to be unmaintained at the moment, and the current version
is incompatible to Tornado 5.
Instead of monkey patching ad infinitum we instead bundle the dependency
in the new vendor sub package.
2018-04-06 18:38:06 +02:00
Gina Häußge
025f545ef7
Better requirement detection in octoprint_setuptools
...
Plus unit tests.
2018-04-06 14:59:11 +02:00
Gina Häußge
6af1afb546
Don't tab to "forget password" link
2018-04-06 14:59:11 +02:00
Gina Häußge
1dd1eb3768
Merge pull request #2554 from tedder/upstream_maintenance
...
docfix: make 'settings' proper yaml
2018-04-06 09:33:32 +02:00
tedder
77d126fc09
make 'settings' proper yaml
...
See PR #2530 ; I assumed it should go into 'devel' so it is right in new releases, but Gina asked for it to be done here.
2018-04-05 13:38:25 -07:00
Gina Häußge
4a3902c060
Merge pull request #2533 from dforsi/fix/fix-api-buttons
...
Fix buttons not disabled when there isn't an API key available
2018-04-05 12:59:08 +02:00
Gina Häußge
83cdd4d79d
Merge pull request #2552 from dforsi/fix/fix-typos
...
Fix typos in the docs
2018-04-05 12:58:00 +02:00
Daniele Forsi
1d1191eae0
Fix typos in the docs
2018-04-04 23:13:32 +02:00
Daniele Forsi
1efa0fa1e6
Fix buttons not disabled when there isn't an API key available
...
Also keeps always enabled the button to refresh the global API key.
Bootstrap buttons made from HTML <a> tags can only be disabled with CSS.
2018-04-04 20:09:06 +02:00
Gina Häußge
1852578136
Merge branch 'devel' into dev/permission
...
# Conflicts:
# src/octoprint/plugins/logging/__init__.py
# src/octoprint/server/__init__.py
# src/octoprint/server/util/sockjs.py
# src/octoprint/static/css/octoprint.css
2018-04-04 16:47:51 +02:00
Gina Häußge
085424f192
Support for binding to IPv6 addresses
...
Defaults to :: if IPv6 is supported, 0.0.0.0 otherwise. Both
intermediary server and Tornado are instructed to bind their sockets to
both IP versions.
Positive IPv6 support detection relies on
* socket.has_ipv6 being True
* socket.IPPROTO_IPV6 and socket.IPV6_V6ONLY being available (or
redefined in case of Windows) in order to ensure dual stack binding
for the intermediary server
Implements #2351
2018-04-04 15:04:33 +02:00
Gina Häußge
db23bed00b
Remove intermediary dialog for "forgot password"
...
Might annoy people after all having to click twice just to get the
information they are looking for.
Can be changed if the process gets changed.
2018-04-04 13:12:53 +02:00
Gina Häußge
fdb2ba8146
Merge branch 'maintenance' into devel
2018-04-04 12:41:37 +02:00
Gina Häußge
9c31fa88a5
Merge branch 'staging/maintenance' into maintenance
2018-04-04 12:36:24 +02:00
Gina Häußge
c5439da9d2
staging/maintenance is now 1.3.7rc5.dev
2018-04-04 12:34:57 +02:00
Gina Häußge
e5caa3d0bf
Preparing release of 1.3.7rc4
1.3.7rc4
2018-04-04 11:10:45 +02:00
Gina Häußge
a821346b07
Don't trigger PRINT_FAILED twice on disconnect
...
Fixes #2546
2018-04-04 11:10:43 +02:00
Gina Häußge
561bf83d88
Merge pull request #2540 from dforsi/fix/fix-rst
...
Add missing documentation for GCODE analysis and other small fixes
2018-04-04 09:51:06 +02:00
Gina Häußge
baf8941f31
Merge pull request #2532 from dforsi/fix/fix-typos
...
Fix typo
2018-04-04 09:49:42 +02:00
Daniele Forsi
f7dec5542b
Fix typos
2018-04-03 23:41:34 +02:00
Daniele Forsi
6ec8b97ddb
Add missing documentation for GCODE analysis and other small fixes
...
Adds documentation for `dimensions` and `printingArea`; fixes `length`
and `volume`; adds two internal references.
Fixes #2463 .
2018-04-03 20:35:58 +02:00
Gina Häußge
0ac9ea518c
SWU: Update "How to use release channels" link
2018-04-03 17:47:23 +02:00
Gina Häußge
9f80aefcc9
thaw_frozendict should be fully recursive
...
So far it was only deep-diving into frozendicts, not dicts (which might
contain frozendicts).
In principle we probably should also dive into tuples and lists and
other containers, but in our current application we don't put
frozendicts into those so let's not overdo it.
2018-04-03 16:56:59 +02:00