[Imc-aotearoa-tech] database bug

Miles Thompson miles at mail.com
Tue, 18 Jun 2002 11:39:19 -0400


Finn wrote:

>Noticed a bug, might be easy to fix for someone who knows database stuff. An image is missing. It was previously there, so it aint an uploading prob. 
>
>If it happens once, it'll happen again. Any ideas?
>
>finn
>

Uh.. Its a feature not a bug,

 No wait ! its a bug ..

 OK OK, yeah this is sooo a bug..

Ive done something to fix it for now.. but its not a good
long term solution. It may have fixed the images but
i doubt that audio or video are working for now.

Heres my understanding of the problem:

1/ Theres a script that moves all the images, audio, video etc out of
     local/webcast/uploads/metafiles/
    and puts it onto loudeye (aka images.indymedia.org).
     This script used to be called 'pushtoeye.pl' but a new
    version called 'multiplacer' is also in the works. I dont
    know which version, if any, is running on cat.

2/ The software is setup so that links to images and
     other stuff are changed, after an unknown (to me) but
     short (eg 12 minutes) period of time  to get the stuff from
     http://images.indymedia.org/imc/aotearoa instead of locally from
     local/webcast/uploads/metafiles

    The software can be configured to control which types of
     media, images, aduio etc have their links changed.

----

My understanding is that there is clearly a problem
in that 2/ was happening, but 1/ was not.

That is, the links got changed, so as to get stuff off
of images.indymedia... but the files did not get transferrred.

As a temporary measure, i edited
local/webcast/webcast-setup.php3

and changed it so that it doesnt think that images/jpeg
and images/gif have been mirrored... ie changed


$mirror_mime_types = "audio/mpeg audio/x-pn-real-audio video/x-pn-realvideo
                      image/gif image/jpeg";
to read
$mirror_mime_types = "audio/mpeg audio/x-pn-real-audio 
video/x-pn-realvideo";

This is a temporary measure. The correct thing to do is to
work out why 1/ was not working, and then re-enable the
mirror_mime_types entry for gif and jpeg.

Andy any help on this?

This may have an effect on uploads of multimeida.

--

Miles