Gina Häußge
2e043ecf5b
📝 Explicitly document LineProcessorStream behaviour under py3
...
Make absolutely clear that processLine will be called with a byte & not
a unicode string.
See #3454
2020-02-18 15:57:01 +01:00
Gina Häußge
831edf234d
🐛 Fix a firmware info reporting bug
...
It was not reported if firmware detection was disabled, even though one
should not have anything to do with the other.
Not a regression, but considering that it negatively impacts the printer
safety plugin that relies on firmware info it'll go into 1.4.0
regardless.
2020-02-17 17:34:19 +01:00
Gina Häußge
b42c753d3f
🐛 Fix a Py3 bug with the self._printer wrapper in plugins
2020-02-17 17:32:20 +01:00
Gina Häußge
924cd5cb4c
🔖 rc/maintenance is now 1.4.0rc6.dev
2020-02-11 14:37:43 +01:00
Gina Häußge
73f7c4d8a1
🔖 Preparing release of 1.4.0rc5
1.4.0rc5
2020-02-10 17:02:07 +01:00
Gina Häußge
10079b8d9d
🐛 PGMR: Fix UI representation of incompatible plugins
...
Second part of fixing #3442
2020-02-04 15:53:56 +01:00
Gina Häußge
c31566a626
🐛 Fix incompatible plugins to be marked as compatible
...
First part of fixing #3442
2020-02-04 15:52:53 +01:00
Gina Häußge
0cfc7a2976
Merge remote-tracking branch 'origin/staging/maintenance' into staging/maintenance
2020-02-04 13:17:11 +01:00
Gina Häußge
de5a10163e
🐛 Reintroduce message backlog on socket
...
Was present in forcelogin and made sure that plugins triggering a
message on the socket immediately after connect would get through right
after auth.
Without this a lot of plugins out there run into issues, so this is a
backwards compatibility fix for a regression in 1.4.x.
See also #3400
2020-02-04 13:15:44 +01:00
Gina Häußge
0a22c4e66c
♻ Fix a duplicated line of code
2020-01-31 14:28:27 +01:00
Gina Häußge
a88d95af77
🐛 Fix autologin
...
We need to actually try to identify the user just like we used to do
with the forcelogin plugin. Just checking permissions will only work
if we already have a session.
Closes #3434
2020-01-29 11:37:07 +01:00
Gina Häußge
010221ab5b
🐛 Fix handling of unset remote addresses
2020-01-29 11:35:56 +01:00
Gina Häußge
6471a04a86
staging/maintenance is now 1.4.0rc5.dev
...
And maintenance is now 1.4.1.dev
2020-01-28 15:16:19 +01:00
Gina Häußge
7b2762c590
🐛 Remove accidentally commited debug statement
1.4.0rc4
2020-01-27 18:06:02 +01:00
Gina Häußge
de0b97b99c
🐛 Fix first run setup
2020-01-27 17:32:52 +01:00
Gina Häußge
60d2bd1ac1
🔖 Preparing release of 1.4.0rc4
2020-01-27 15:51:27 +01:00
Gina Häußge
4d716647e5
🐛 Fix socket connect timeout handling
...
Was triggering even though it should have been cleared due to a
self vs this issue.
Also protect against undefined connection deferred.
2020-01-27 15:03:18 +01:00
Gina Häußge
43ab47a260
✨ pi support: Permission check for API endpoint
2020-01-27 13:46:09 +01:00
Gina Häußge
88ecfbdb65
🐛 Fix another py2 vs 3 issue
...
Closes #3431
2020-01-27 11:58:17 +01:00
Gina Häußge
8087967683
🐛 Fix behaviour when page cached & server down
...
E.g. in Firefox reopen tab while server is down - FF will use a cached
copy and for some reason sockjs won't notice that stuff is down. So now
we have a timeout of 5s for initial connection that takes care of that.
2020-01-24 16:54:52 +01:00
Gina Häußge
cb43197105
🐛 Fix endpoint in docs
2020-01-24 13:08:10 +01:00
Gina Häußge
b1b9329614
♻ Move /api/access/user to /api/currentuser
...
Update documentation accordingly.
See also #3418
2020-01-24 13:05:06 +01:00
Gina Häußge
7317814ce0
📝 Document needed permissions & fix some stuff
2020-01-23 13:21:52 +01:00
Gina Häußge
66ef7b66bb
📝 Documentation for the access API
2020-01-22 18:39:32 +01:00
Gina Häußge
be3ff5f043
✨ API endpoint to retrieve info about current user
...
As suggested by @fieldOfView.
Implements #3418
2020-01-22 14:58:29 +01:00
Gina Häußge
c36fa6da90
🐛 Fix readonly group permissions
...
Those were accidentally stripped.
2020-01-22 14:55:35 +01:00
Gina Häußge
aadcf650c7
🐛 Fix UI caching again
...
Was broken by 3f3cb556a7 in between server
restarts due to the wrong stuff being fetched by the preemptive cache.
2020-01-21 17:26:45 +01:00
Gina Häußge
95c3fa0b04
🐛 Readd requires line that somehow got missing
...
Addendum to 3f3cb556a7
Closes #3425
2020-01-21 16:03:48 +01:00
Gina Häußge
1d0829a1db
🐛 Introduce ClientAuthed event
...
May act as entry point for any kind of push messages a plugin might
wish to send to the client after a connect happened. Since depending
on the current permission configuration this might only be possible
once the client has authenticated on the socket, this is required.
Should close #3400
2020-01-21 15:53:52 +01:00
Gina Häußge
8d31d6687e
🐛 Also trigger login dialog eval on permission change
...
Not just on logout.
Follow-up to #3425
2020-01-21 15:00:20 +01:00
Gina Häußge
3f3cb556a7
🐛 Fix guest access to settings
...
Needed its own permission, which in turn needed some changes in how the
whole "guest without read permission" situation is handled. I've
reintroduced a custom login view since the main UI would not be able
to fully load up without settings access. Said login view will override
the default UI view if the account in question does not have
Permissions.STATUS and also Permissions.SETTINGS_READ. It pretty much is
the forcelogin plugin from 1.3.x.
Closes #3425
2020-01-21 14:49:46 +01:00
Gina Häußge
4460c8bee0
🐛 env needs to be native strings
...
So, bytes under py2 and unicode under py3.
Closes #3428
2020-01-20 13:36:02 +01:00
Gina Häußge
89b597a656
🐛 Fix remember me checkbox
...
Closes #3426
2020-01-17 16:34:13 +01:00
Gina Häußge
e1a25a8913
🐛 Fix caching issue for freshly rendered timelapses
...
Closes #3396
2020-01-16 12:13:38 +01:00
Gina Häußge
482c2f7115
🐛 Fix timelapse progress under Py3
...
Closes #3409
2020-01-15 16:53:54 +01:00
Gina Häußge
7fa4ebd1ec
Merge pull request #3414 from fieldOfView/fix_allows_multiple_needs
...
Fix checking against multiple Needs on OctoPrintPermission
2020-01-14 12:44:18 +01:00
Gina Häußge
9c3b552aa8
🔥 Remove unused leftover code
2020-01-14 11:24:22 +01:00
Gina Häußge
3229e65a8d
♻ Remove assumptions about UI from permission model
...
Implements #3419
2020-01-14 11:22:54 +01:00
fieldOfView
7191d39b51
Fix multiple Needs on OctoPrintPermission
...
fixes #3398
2020-01-03 08:41:59 -08:00
Gina Häußge
58bc5171ee
✏ Adjusted plugin tutorial for py3
2019-12-13 13:43:29 +01:00
Gina Häußge
74f3bc9ae6
🔖 staging/devel is now 1.4.0rc4.dev
2019-12-12 15:01:53 +01:00
Gina Häußge
464d9c0757
🔖 Preparing release of 1.4.0rc3
1.4.0rc3
2019-12-12 13:00:35 +01:00
Gina Häußge
94ae90ab80
♻ Cleaned up a pre-py3 leftover comment
2019-12-12 12:43:45 +01:00
Gina Häußge
33b89550a4
🐛 Fix a unicode issue under win32
...
subprocess env must not contain unicode strings but could now after some
py3 related refactorings.
2019-12-12 12:43:13 +01:00
Gina Häußge
9661469532
🐛 Fix some permission bindings
...
Closes #3388
2019-12-11 15:01:57 +01:00
Gina Häußge
b06c222a7d
🐛 Fix checksum calculation in stk500v2 under py3
...
See #3382
2019-12-11 10:50:40 +01:00
Gina Häußge
9f85b54681
🐛 Convert decoded header to unicode
...
See #3382
2019-12-11 10:28:32 +01:00
Gina Häußge
5d1ad5d75d
🐛 Add blinker dependency for flask_principal
...
Was forgotten in 928d62a517
2019-12-10 16:35:07 +01:00
Gina Häußge
dc32f955b7
🐛 Fix forwarding of HTTPExceptions on SimpleApiPlugins
...
Part of #3375
2019-12-10 16:16:40 +01:00
Gina Häußge
220592c267
🐛 IspError should be a proper Exception
...
Otherwise our try-catch-blocks won't catch it anymore.
2019-12-10 12:56:23 +01:00