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.
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
This works around a bug when installing PyYaml
>=5.4.1,<6.0.1 ever since Cython 3.0 has been released.
PyYaml 6.0.1 pins Cython to a version less than 3.0 which
resolves this issue (for now).
See also yaml/pyyaml#724
* 🐛 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.
`None` values were converted to an empty string by sv, leading to
comparison issues with (correct) integers. Using the default order
value for sv fixes that.
Closes#4818
In that case the nav container isn't available, and thus
the attempt to select the first link from that to activate
simply failed silently.
Instead we now check whether the nav container is
even there, and if not just activate the first tab pane.
Closes#4791