[GeoNode-users] Firefox thumbnail url access error in a windows geonode site

Miguel-Angel Manso-Callejo (UPM) m.manso at upm.es
Tue Jun 23 02:15:20 PDT 2015


Hi Simone

It works fine with this change. Firefox show correctly thumbnails

Only a little detail in replace method call replace('\\','/')

Regards
Miguel A.

El 23/06/2015 a las 8:52, Simone Dalmasso escribió:
> Hi Miguel, thanks for reporting these issues, the first one should now 
> be solved in master.
>
> For the link problem could you try to add .replace('\','/') to this 
> line 
> https://github.com/GeoNode/geonode/blob/master/geonode/base/models.py#L568 so 
> it will become:
> url_path =os.path.join(settings.MEDIA_URL, thumb_folder, 
> filename).replace('\','/')
>
> if that works we can the apply it to master.
>
> Let us know, ciao
>
> 2015-06-23 1:11 GMT+02:00 Miguel-Angel Manso-Callejo (UPM) 
> <m.manso at upm.es <mailto:m.manso at upm.es>>:
>
>     Dear,
>
>     After some time and effords to understand geonode code i have
>     solve some issues related to binary write file of thumbnail images
>     of the layers. It is possible that to ubuntu (w) attribute is
>     enought to store image as binary but in windows it do not work.
>     You must indicate that use binary option (wb) in oppenig file
>     operation.
>
>     At this time i have another issue. In this case it only appear
>     with Firefox browser and layer list previews. The thumbnails urls
>     do not work fine.
>
>     The problem appear with url associated to <img src=.. >  in the
>     thumbnail.
>
>     One Slash joining public url path to thumbnails with the file name
>     is changed from /  to \ and Firefox do not recognize
>
>     For example:
>     http://138.100.62.99/uploaded/thumbs%5Clayer-f08b7f8f-1798-11e5-9851-e0699572c022-thumb.png
>     where  %5C (\) make that forefox do not show imagen.
>
>     My question is: where can i change the join url or slash?
>
>     Best regards,
>
>     Miguel A. Manso
>     _______________________________________________
>     geonode-users mailing list
>     geonode-users at lists.osgeo.org <mailto:geonode-users at lists.osgeo.org>
>     http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
>
>
>
>
> -- 
> Simone

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20150623/d24e8e94/attachment.html>


More information about the geonode-users mailing list