mediagoblin-devel
[Top][All Lists]
Advanced

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

Re: [GMG-Devel] URL issues for non-local storage


From: Dylan Jeffers
Subject: Re: [GMG-Devel] URL issues for non-local storage
Date: Sun, 01 Nov 2015 22:19:19 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0

Ayleph,

Thanks for being on top of this issue. Agreed that this solution is not
particularly flexible, but I am good with this for the time being.

Dylan

On 11/01/2015 10:13 PM, ayleph wrote:
> On 10/31/2015 02:01 AM, ayleph wrote:
>> On 10/27/2015 01:00 AM, Dylan Jeffers wrote:
>>> Hi all,
>>>
>>> Wanted to start a dialogue about a particular issue (see link below)
>>> where the URL to a media gets mangled if it's stored non-locally. When
>>> using PyPump, or Goblinoid, it is impossible to view the media. As this
>>> issue occurs with one of our best instances, pump.goblinrefuge.com, it
>>> would be great if we could figure it out. I am willing to take it on
>>> with a bit of assistance, if this bug is indeed something you all feel
>>> we should address.
>>
>> I've figured out what the problem is, but I'm not sure how to solve it.
>> The API assumes all thumbs and full images live on the pump host, so the
>> API prepends the pump host URL to all locations returned by the storage
>> object. We may need a switch in there that simply returns the image URL
>> if files are hosted externally and prepends the pump host if files are
>> hosted locally.
>>
>> More details here: https://issues.mediagoblin.org/ticket/5342#comment:1
> 
> I've provided one possible solution to this issue. It's tested working
> on one of my development instances. Details at the link below.
> 
> https://issues.mediagoblin.org/ticket/5342#comment:2
> 


reply via email to

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