* Added regex filtering feature
Added new regex setting, new Filtering regex setting UI and filter on the incoming messages.
* Fixed a wrong variable name in the template.
* Changed settings name from 'regex' to 'filter'
In case of invalid/unusable folder configurations, OctoPrint
will roll back to its default so as to not prevent server
startup altogether (which would be a big issue for less
technical people).
However, this creates the problem that unless a user
fiddling around with base folder paths actually checks
the log and base folder config whether things are still
as originally configured, they won't see issues immediately,
e.g. caused by network shares not yet being available
during OctoPrint's startup.
Thus, we now will log such issues not only in the log but
will also show a popup to connecting admins, that will
inform them about which folders failed their validation and
were rolled back.
This will only work on the same startup, not following
startups, but it should give a bit more heads-ups to people
fiddling around with network shares specificially - hopefully.
Implements #4881
Without this patch, an attacker with admin rights could configure
a specially crafted GCODE Script to allow for code execution during
rendering of that script. An attacker might use this to extract data
managed by OctoPrint, or manipulate data managed by OctoPrint,
as well as execute arbitrary commands with the rights of the
OctoPrint process on the server system.
Fixes a reported security issue, CVE pending.
Will call `onWebcamRefresh` on the bound viewmodel of the currently
active webcam. It is up to the implementing webcam view model
to execute the actual refresh.
Only the mjpg stream type of the classicwebcam currently supports
this, for the other stream types it is a no-op.
Note that the button will be displayed on mouseover regardless of
whether it will actually be capable of triggering a refresh or not.
Also adjusted the fade-in animation of the keycontrol overlay to
match the refresh button and webcam selector.
Implements #4617
- `octoprint systeminfo` will now generate a bundle in the
current directory even without an explicitly added .
- `octoprint systeminfo --short` has been added to generate
the abridged version
This should clear up issues we saw in the past where users forgot
the . and then just pasted the abridged text only version when
we wanted a bundle.
Also make sure we don't go beyond a 1:1 aspect ration on rotation.
Finally get rid of some CSS issues caused by a loss of flexbox mode
in deeper divs.
Implements #4837
It was not storing its current value properly, thanks to an incomplete
refactoring ages ago during which etag and lastmodified types were
joined into httpheader.
Closes#4806
Safety hints in the first run end dialog have been
reworked to be more visually alerting and a
checkbox has been added for each that has
to be checked in order to proceed with the
wizard.
See discussion in #4739
`loggerDict[logger]` might be a placeholder. `getLogger` takes care of
replacing said placeholder with a full logger upon first access, before
returning it.
Closes#4753
* 🐛 Reduce intersection observer threshold
When this value is 1, scrolling down the page (sometimes?) triggers the value to change - probably something changes invisibly. Setting it to anything less than 1 seems to cure the issue, and there are no longer unwanted triggers of changes. 1% also seems to make more sense here than 100% - we want the webcam to load whenever even a tiny amount of it is visible.
* ♻️ Change visibility observer threshold to 1%
* ♻️ Use log.debug instead of console.debug
---------
Co-authored-by: Gina Häußge <gina@octoprint.org>
We need to reset emptyLayers (and should - for the sake of consistency -
also reset percentageByLayer) after running an analysis because
otherwise old values will stay in there until page reload, causing layers
to not render that actually are not empty but were in any previously
loaded model.