Missing attachments

Use this board to discuss technical issues with the forum. If you have a new issue, open up a new thread. This can serve as a primitive issue tracker.
Post Reply
Site Admin
Posts: 395
Joined: Tue Sep 09, 2008 5:24 am

Missing attachments

Post by dave » Tue Jul 04, 2017 4:45 pm

When I moved the forum to an Amazon EC2 instance, some of the images/file attachments seem to have broken. I will do my best to fix them. Please use this thread to list any instances of broken links or missing image/file attachments, so I can deal with them.



Posts: 20
Joined: Sat May 13, 2017 8:15 pm
Location: Rocky Mountains, USA

Re: Missing attachments

Post by Andis » Thu Jul 06, 2017 4:06 pm

Hi Dave,

I have been using a few different threads to check out issues regarding viewing attachments. You generally end up with 5 different possible results (that i have found).

I still don't have an attachment tab, when logged in. Maybe has to with the '<b>Information</b>: This board is currently disabled' warning that shows up at the top of a thread when you log in...

I appears that you can
Not logged in, you can see the image if if it is not hosted locally (i.e http://www.crisis.au/images/C4P.jpg)
Or, still not logged in, get an image that says "You do not have the required permissions to view the files attached to this post". This is the case if the image is hosted on the OSIweb server. When you "Inspect the element using a browser you can see the div has a ' class="rules" ', so if you have "Rules Permissions" on the admin panel, i would look there.
3) or a variation on 1) above, if the image is stored on www.photobucket.com you get an image that says "please upgrade your account to enable 3rd party hosting". This is not unique to the OSI forum, I also saw the same exact image/behavior on another forum. So this type of attachment is technically not broken.

4) If you log in, you can then view the OSI stored images. The div has a ' class="inline-attachment"
5) If you log in, you get an image that is simply the text of the filename. If you right click on this image, you can "View file info" and see that it does indeed point to the OSI server, but the picture is not there. The class of the div has correctly changed to class="inline-attachment" but is an actual broken link (e.g. missing file?).

You can check out items 1), 2) and, 4) at: http://www.osiweb.org/osiforum/viewtopic.php?f=3&t=343

For items 1), 3), and 5) see: http://www.osiweb.org/osiforum/viewtopi ... v+10a#p622

Hope this helps, Andis

Site Admin
Posts: 395
Joined: Tue Sep 09, 2008 5:24 am

Re: Missing attachments

Post by dave » Fri Jul 07, 2017 12:25 am

It seems a lot of the missing attachments are from older posts. I found an old snapshot of the website, including the forum, from 2012, and it had 64 files, all of which are still present in the current files directory, but none of which appear to be visible. I suspect there was some kind of database corruption during one of the forced upgrades I had to do a couple of years back, again due to some midphase software updates.

This is fixable, but tedious. I will have to go through all the posts by date, look at the attachment files with similar date stamps, review them to see if they match, and re-upload them to register them properly with the database, while deleting the old attachment links. There are 334 attachments, and I am hopeful that they represent the complete set.

I hope to do this in small chunks over the next few weeks/months, as I have time.

If anyone wants to volunteer to help with this, I can grant privileges to edit posts.

Also, if anyone wants to go through their old posts to try to re-upload attachments, that would be a big help as well.

You can see the raw files (with database hash names) at http://www.osiweb.org/osiforum/files/

According to the unix 'file' utility, most are JPEG, and a good number are ZIP files. I will see if I can generate some descriptions for Apache's autoindex mod.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest