General discussion of OpenCATS

Moderators: RussH, cptr13

Forum rules: Just remember to play nicely once you walk through the door. You can disagree with us, or any other commenters in this forum, but keep comments directed to the topic at hand.
#5338
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
#5339
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
#5748
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!

Sure Thanks for your Quick Reply.

Installation Wizard

Awesome thanks RussH, I'll keep an eye on developm[…]

Hi, the release version of Opencats currently do[…]

For info, PHP 8.2 support is *almost* complete, I […]