Bug 1193 - Bogus coverart can be cached by the browser across database wipes
: Bogus coverart can be cached by the browser across database wipes
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Database
: 6.0.2
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-25 10:42 UTC by David Shimell
Modified: 2008-08-18 10:54 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Shimell 2005-03-25 10:42:27 UTC
I'm running 6.0b3 (SlimServer_v2005-03-25.exe)

I have an ELO Album (Face the Music) and this displays an incorrect thumbnail 
artwork showing "Elv1s 30 #1 Hits", when clicking on the thumbnail, it 
displays the correct artwork for Face the Music with the correct track 
listing. Wierd. I tried rescanning but this did not help.
Comment 1 Dan Sully 2005-03-30 13:31:11 UTC
Am I correct in saying that you have "Album Placeholders" turned on?
Comment 2 David Shimell 2005-03-31 03:54:15 UTC
Yes, album placeholders are enabled. I've reverted to 6.0b1 and the problem 
does not exist in this version.
Comment 3 Dan Sully 2005-04-04 12:23:12 UTC
David - have you tried with either the 6.0 release, or the latest nightly build?
Comment 4 David Shimell 2005-04-04 13:25:52 UTC
As mentioned, the SlimServer_v2005-03-25.exe latest nightly release (at that 
time) exihibits the problem, and several other problems (e.g. did not display 
tracks). 6.0b1 however is OK.

I've just downloaded Version 6.0 - 2005-03-27 and did a rescan of the music 
folder. This also seems not to have the problem, although I'm not sure if it 
re-checked for new album art or used what was in the existing database???

So, I guess the problem can be closed as the non-Beta seems to work.
Comment 5 Dan Sully 2005-04-04 14:04:12 UTC
Please reopen if you see it again.

Thanks.
Comment 6 David Shimell 2005-04-04 14:32:38 UTC
Dan - sorry re-openning. I've been having wireless network problems and just 
removed 6.0.0 (using control panel) and reinstalled 5.4.0 just to verify that 
the network problems were not due to the slim verver but the netgear router I 
have.  They appear not to be slimserver related. Anyway, back to album art...

I then removed 5.4.0 (using control panel) and re-loaded 6.0.0. This did a re-
build of the database and the good news is that I now seem to have more album 
art that had not been found earlier but on the second page of album art:

1. Bob Marley shows a different thum to the album art when the thumb is 
selected.

2. Texas - The Greatest Hits is Thumb and 300x300 album art is different.

3. JoJo show the wrong Thumb completely.

and there are several more.
Comment 7 KDF 2005-04-04 15:41:40 UTC
Are you using itunes/moodlogic/musicmagic at this time?
is it the browse artwork thumbnail, or the now playing thumnail as well?
Comment 8 David Shimell 2005-04-05 03:45:21 UTC
>Are you using itunes/moodlogic/musicmagic at this time?

No.

>is it the browse artwork thumbnail, or the now playing thumnail as well?

browse artwork thumbnail
Comment 9 KDF 2005-04-06 13:25:05 UTC
I am beginning to suspect that this may be browser caching.  If the database is
being wiped and recreated, the album id's might be changed.  Thus an image url
for : http://localhost:9000/music/15/thumb.jpg might be a different album than
it was before.  The browser would see the matching url and return the cached
image.  

The reason I am thinking this is because I saw a wrong image, right clicked on
it to view image,still getting the wrong image.  Clicking reload on Firefox then
got me the right image.  Then going back and reloading the slimserver index.html
and selecting browse artwork got the right image.
Comment 10 David Shimell 2005-04-07 01:01:24 UTC
Dean - can't add much more but from what I can see it only the occasional 
Thumb that is displayed incorrectly. Clicking on the Thumb gives the correct 
300x300 image.
Comment 11 Dan Sully 2005-04-07 17:57:32 UTC
That definitely sounds like a browser cache issue.. The WipeDB stuff needs some
cleaning, and some of that should include wiping / removing the template cache,
so we send a fresh Expires header to clear the browser cache.
Comment 12 David Shimell 2005-04-15 03:27:24 UTC
FWIW, I've downloaded 6.0.1 and this has the same (even more occurances of) 
problem. When the problem occurs, it does seem to relate to albums that I have 
accessed - pointing to a cache problem as suggested. I can't recall whether 
the albums were accessed with slimserver or windows media player - not sure if 
this has any impact.
Comment 13 Blackketter Dean 2005-04-20 14:32:59 UTC
David:  We believe that this is fixed in the 6.0.2 nightly releases.  Can you install that and confirm: 
http://www.slimdevices.com/downloads/nightly/latest/6.0.2/
And reopen the bug if it's still an issue.  Thanks.
Comment 14 David Shimell 2005-04-21 01:50:49 UTC
Dean 6.0.2 as of v2005-04-21.exe still has the problem. I did the following:

Loaded the new version.
DB was not rescanned from what I could see.
Killed slim.exe
deleted slimserversql.db
ran slimserver (which rescanned and recreated the DB)
Problem still there - I saw 2 albums in error, int he first 20 ish.
Comment 15 Vidur Apparao 2005-04-21 11:32:29 UTC
David, would it be possible for you to punch a hole in your firewall and make
the SlimServer web interface (port 9000 by default) visible from outside? 
Comment 16 David Shimell 2005-04-22 05:28:51 UTC
If that was you trying to access SlimServer yesterday, then I had a UDP 
request come through my gateway's firewall and stopped by my personal firewall.

I don't know much about configuring access but have disabled my personal 
firewall and created a rule in the gateway's firewall to allow TCP/UDP access. 
Let me know if it works.  I'm trying to test it but must be doing something 
wrong. I make my gateway's IP as 217.35.201.73, so presumably I should be able 
to use http://217.35.201.73:9000 to get to the web interface?
Comment 17 David Shimell 2005-04-22 09:52:55 UTC
OK - I've found out what I was doing wrong when testing the openned port in my 
firewall- I was using the wrong external IP address for my Gateway! The web 
interface is now accessible. Interestingly, looking at the information from 
the external browser interface (Mozilla), all album art is correct. Looking at 
it from the slimserver browser interface on the slimserver PC it shows 
incorrect artwork.
Comment 18 Vidur Apparao 2005-04-22 11:55:20 UTC
Aha! It seems that IE (the browser used by the SlimServer application) is
caching the cover art images...which is actually correct, since we're sending an
expires header in the HTTP response for these images. But a Wipe Cache can cause
the image URLs to change, which means that IE has defunct images in its cache.

The workaround is to go into an IE (launch as an exernal browser), choose Tools
> Internet Options, and choose "Delete Files..." in the "Temporary Internet
files" section.

I'm rewording the summary of this bug and moving it to 6.1, since we will be
reworking our HTTP response headers then.
Comment 19 KDF 2005-04-22 12:10:25 UTC
good to know I guessed right (see comment 9) ;)
Comment 20 Blackketter Dean 2005-06-07 14:16:41 UTC
Dan: is this fixed with the HTTP header improvements?
Comment 21 Blackketter Dean 2005-06-10 16:14:28 UTC
dan to confirm that this is fixed.
Comment 22 Dan Sully 2005-06-13 22:09:19 UTC
David - can you try this with the latest 6.1 nightly?

Thanks.
Comment 23 David Shimell 2005-06-14 04:37:53 UTC
Dan

During the last investigation, I cleared my browser cache and this resolved 
the problems with album art not being displayed correctly. I've just browsed 
all of the album art using 6.0.2 and they are still correct. This means that I 
cannot verify if 6.1 nightly fixes the original problem as I no longer have 
any test data to use!

One thing I have noticed, however, is that I scanned in a cover and saved it 
as folder.jpg and this is not being picked up even after a refresh or reboot. 
(The image does show full size when the album placeholder is selected.)
Comment 24 Vidur Apparao 2005-06-30 14:38:30 UTC
We believe this has been fixed with Dan's Etag fixes.
Comment 25 Chris Owens 2008-03-11 11:28:02 UTC
This bug was marked resolved in Slimserver 6.1, which is several versions ago.  If you're still seeing this bug, please re-open it.  Thanks!