Gina Häußge
73f7c4d8a1
🔖 Preparing release of 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
7b2762c590
🐛 Remove accidentally commited debug statement
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
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
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
464d9c0757
🔖 Preparing release of 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
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
Gina Häußge
0faa6879b4
☂ Resilience against issue in Printoid
...
Closes #3381
2019-12-10 12:55:47 +01:00
Gina Häußge
71b5de91bf
🐛 Fix 403 response
...
Dumping string representations of the permission objects doesn't make
sense, and neither does rewriting the error description in the first
place.
2019-12-09 19:06:53 +01:00
Gina Häußge
928d62a517
♻ Vendoring flask_principal
...
It no longer seems to be maintained and there's an issue in the code
we need fixed.
2019-12-09 19:06:52 +01:00
Gina Häußge
78bd3b1a52
🐛 "remember" does not need to be set on session
...
Be able to deal with that.
Follow up to #3370
2019-12-09 19:06:51 +01:00
Gina Häußge
b9bab0577b
♻ Remove monkey patch that's no longer needed
2019-12-09 17:32:31 +01:00
Gina Häußge
c41551a643
🐛 Fix wrong handling of session protection signal
...
We should only clear out the identity when the session has actually
been deemed deleted, not just on staleness due to e.g. a client IP
change.
Closes #3370
2019-12-09 17:31:53 +01:00
Gina Häußge
6c92dd1303
🐛 PNotify needs position:fixed
...
Closes #3377
2019-12-09 14:19:16 +01:00
Gina Häußge
124f01ca2d
🐛 py3: ensure an int as rolling window size
...
Closes #3371
2019-12-06 13:40:03 +01:00
Gina Häußge
0dece85fa7
🐛 Fix notifications being visible w/ needed login
2019-12-04 15:24:08 +01:00
Gina Häußge
caebf90ee9
🐛 Fix short UI flicker before loading animation
2019-12-04 14:37:16 +01:00