New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backup Download Fails #4659
Comments
Were those backups created through the web interface, CLI, some third party plugin? |
based on the name, looks like it might be my backup scheduler plugin and is also creating hidden files similar to #4500 |
not sure how, but am I using the backup helpers incorrectly? |
I suspect that's an issue with the new backup name validation (1.8.3 I think?), because it has a custom name?
|
Actually, good point Gina, I believe the backup creation is triggered using the third party "Backup Scheduler Version: 0.1.0" on the startup event |
I think @cp2004 found the culprit. In my tightening down of API endpoints to prevent abuse, I didn't think of arbitrary backup names given on CLI or by third party plugins. So I guess that change needs rolling back or at least some nerfing. @Bachomp just to make sure, downloading a backup created through the regular Backup plugin works? If so it's indeed just the filename sanity check. |
I don't think you are, but something is still going on given stuff is single quoted. Or is that just what ls does here in case of spaces in the filename? 🤔 |
|
Indeed it is:
So, nerfing the name check it is, since third party plugins and the CLI can choose arbitrary names. |
Fix ready for 1.8.5 |
After updating to 1.8.5 on a few Pis here, clicking download on existing backups through the OctoPrint web gui now fail with a 404 error (previously worked in 1.8.4). I can see/still download the zips through SFTP from ------------------------------------------------------------------------------
OctoPrint version : 1.8.5
OctoPi version : 0.18.0
------------------------------------------------------------------------------
pi@testpi:~ $ ls /home/pi/.octoprint/data/backup
Test-Pi-backup-20221017-105634.zip I created new backups under 1.8.5 and those also fail to download with a 404 error, so this seems like it affects all backups. |
I have confirmed the same issue on one of my instances. |
Confirmed, hopefully now really fixed. If anyone could test |
I can confirm that staging/bugfix does allow me to download backups again. |
Also confirmed downloads are now working again |
The problem
Downloading of backups via the web interface results in a 404 error.
Files located on the file system have single quotes around them.
Did the issue persist even in safe mode?
Yes, it did persist
If you could not test in safe mode, please state why
No response
Version of OctoPrint
1.8.4
Operating system running OctoPrint
OctoPi 0.18.0
Printer model & used firmware incl. version
Prusa Mk3s
Browser and version of browser, operating system running browser
MacOS 12.6. Vivaldi 5.4.2753.51 (Stable channel) (x86_64)
Checklist of files to include below
Additional information & file uploads
octoprint-systeminfo-20221003113304.zip
The text was updated successfully, but these errors were encountered: