Page 1 of 1

Error when downloading the backup file

Posted: 12 Jun 2023, 21:49
by Safia Mohamed
Hello,

Hope all is well, I made a backup file but when it comes to downloading it , I get the following error:
Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.
Error 404
localhost
Apache/2.4.29 (Win32) OpenSSL/1.1.0g PHP/7.2.0

Re: Error when downloading the backup file

Posted: 13 Jun 2023, 15:30
by RussH
Hi Safia,

okay this was a recent security change to tighten the filename extensions allowed to be uploaded/download. the backup extension ('*.bak) isn't on the whitelist so it gets appended with a .txt extension. Thank you for reporting this, we really appreciate problem reports, so we can fix the issues!!!

The interim fix if you need it is to add .bak to the whitelist on line 192 of the file /lib/FileUtility.php .. I've amended the whitelist to include .bak on the GitHub repository (https://github.com/opencats/OpenCATS/pull/620) and the fix will be in the next release.

The 'quick and dirty' workaround is to remove the trailing .bak when you're presented with the URL to download, so for example in my local test system the URL to download the backup is this;
Code: Select all
http://127.0.0.1/OpenCATS-0.9.7.2/attachments/site_180/0xxx/39a4250474cefac3bbd99f7a232059dd//catsbackup.bak.txt
..just remove the end .txt and it'll be fine.. so make it look like this;
Code: Select all
http://127.0.0.1/OpenCATS-0.9.7.2/attachments/site_180/0xxx/39a4250474cefac3bbd99f7a232059dd//catsbackup.bak

Re: Error when downloading the backup file

Posted: 29 Jan 2024, 12:15
by pegidolized
Thanks RussH for your quick response. foodle

Best regards
:)

Re: Error when downloading the backup file

Posted: 04 Oct 2024, 05:14
by henrich45
Safia Mohamed wrote: 12 Jun 2023, 21:49 Hello,

Hope all is well, I made a backup file but when it comes to downloading it , I get the following error:
Object not found! zona cacing mod menu

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.
Error 404
localhost
Apache/2.4.29 (Win32) OpenSSL/1.1.0g PHP/7.2.0
Subject: Re: Backup File Download Error

Hello,

Thanks for reaching out! It seems like the backup file's download link may be broken or outdated. Here are a few steps you can try:

Check the URL: Ensure that the link you're using is correct and hasn't changed.
Refresh the Page: Sometimes a simple refresh can resolve temporary issues.
Contact the Author: If the link is from a specific page, please inform the author of that page about the error.
Check Server Status: If you believe this is a server issue, please reach out to the webmaster for further assistance.
If you need any more help, feel free to let me know!