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

Great news about v0.9.7.4 being released on GitHub[…]

I encountered the same error. In my case, it was d[…]

Thank you for sharing the installation resources f[…]

Today, I'd like to introduce you to a game that I'[…]