mherger;531492 Wrote:
> > However, my second point on the initial bug list still appears. In
> the
> > Default skin I get cryptical text in a new window/tab every second
> time
> > I click on an image, in the Classic skin it seems to happen every
> time I
> > click on an image.
>
> Can't reproduce this here. What platform are you running SBS on? Can
> you narrow it down on whether you click the image or the link or
> something?
>
I get the same problem if I click on the image or on the link.
I'm using Ubunbtu 8.04.3 on the server with a svn installation of
Squeezebox Server 7.5.
I'm using Ubuntu 8.10 on the client and Firefox 3.0.18 as web browser.
I tried getting the files with wget and it looks like this:
Code:
--------------------
erl...@vaiolin:~$ wget
http://squeezefab4:9000/plugins/Gallery/imageproxy?image=%2Fmnt%2Fphotos%2F021012%2FHamnviken6%2FP9150001_100x100_o.JPG
--2010-04-08 07:27:59--
http://squeezefab4:9000/plugins/Gallery/imageproxy?image=%2Fmnt%2Fphotos%2F021012%2FHamnviken6%2FP9150001_100x100_o.JPG
Resolving squeezefab4... 172.16.0.212
Connecting to squeezefab4|172.16.0.212|:9000... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5025 (4.9K) [text/html]
Saving to:
`imageproxy?image=%2Fmnt%2Fphotos%2F021012%2FHamnviken6%2FP9150001_100x100_o.JPG'
100%[=============================================================================================================================>]
5,025 --.-K/s in 0s
2010-04-08 07:27:59 (81.5 MB/s) -
`imageproxy?image=%2Fmnt%2Fphotos%2F021012%2FHamnviken6%2FP9150001_100x100_o.JPG'
saved [5025/5025]
--------------------
If I do the same thing on a album cover it looks like this:
Code:
--------------------
erl...@vaiolin:~$ wget http://squeezefab4:9000/music/8069/cover_100x100_p
--2010-04-08 07:28:55-- http://squeezefab4:9000/music/8069/cover_100x100_p
Resolving squeezefab4... 172.16.0.212
Connecting to squeezefab4|172.16.0.212|:9000... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4360 (4.3K) [image/jpeg]
Saving to: `cover_100x100_p'
100%[=============================================================================================================================>]
4,360 --.-K/s in 0s
2010-04-08 07:28:55 (15.1 MB/s) - `cover_100x100_p' saved [4360/4360]
--------------------
The part that's interesting is the content type "[text/html]" on your
image while the album cover is returned as content type
"[image/jpeg]".
I suspect the problem is that the server sets the content type to
"text/html" but your web browswer is able to detect that it's an image
and views it as an image even if the server thinks is "text/html".
It works in the previews because there the image url is specified in a
<img> HTML element but when it's opened in a new window when you click
on it, it's up to the browser to either trust the server or auto
detect.
I've only seen the problem in Firefox, I tried it in IE8 on a Windows
client towards the same server and there it seems to work perfectly. On
the same Windows client I tried it in Firefox 3.0.16 and there I see the
same problem as on the Ubuntu client. Finally, I tried to install the
latest 3.6 version of Firefox just to make sure it wasn't the old
version causing the problems, the result is that I see exactly the same
error in Firefox 3.6.
It feels like I've seen this problem myself in some of my own plugins,
I'm not completely sure I remember correctly though. If I remember
correctly, I think it was in the Custom Browse functionality to show
image files in the album directory. I think the solution I found was to
make sure the url before the "?" ended with .jpg, for example:
Code:
--------------------
http://squeezefab4:9000/plugins/CustomBrowse/custombrowse_imagecachefile.jpg?type=artist§ion=artists&artist=839
--------------------
Instead of:
Code:
--------------------
http://squeezefab4:9000/plugins/CustomBrowse/custombrowse_imagecachefile?type=artist§ion=artists&artist=839
--------------------
If I remember correctly I think this made the server set the content
type in the HTTP header correctly to "image/jpeg".
--
erland
Erland Isaksson
'My homepage' (http://erland.isaksson.info) (Install my plugins through
Extension Downloader)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan, Custom Skip, Multi Library, Title Switcher and Database
Query plugins'
(http://wiki.erland.isaksson.info/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=76879
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins