mediagoblin-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GMG-Devel] PyPump receiving static pngs


From: ayleph
Subject: Re: [GMG-Devel] PyPump receiving static pngs
Date: Sat, 31 Oct 2015 02:21:22 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 10/28/2015 10:11 PM, Dylan Jeffers wrote:
> Hi all,
> 
> Came across what looks like a weird bug. Was uploading images today via
> PyPump, then downloading them and displaying them. However, recently all
> my uploads started returning a static MediaGoblin png when trying to
> download them. An example is in the link below. Also note that these
> uploads do not appear on the MediaGoblin web client.
> 
> http://pamrel.lu/26a06/

There's code in /path/to/mediagoblin/mediagoblin/db/mixins.py that will
return a default thumbnail for 'thumb_url' and 'original_url' if no
thumbnail or original image are available for the requested image. This
gets passed into /path/to/mediagoblin/mediagoblin/db/models.py as the
serialized 'image' and 'fullImage' URLs for media requested by the API.
Perhaps if your client had stale data from the host, it was trying to
access media which no longer existed, and thereby downloaded the default
image thumbnail? It's my best guess.

-- 
ayleph


reply via email to

[Prev in Thread] Current Thread [Next in Thread]