Bug 6049 - Information Browser has duplicate entries
: Information Browser has duplicate entries
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Web Interface
: 7.0
: PC Windows XP
: P2 trivial (vote)
: Future
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-11-05 16:27 UTC by Philip Meyer
Modified: 2009-09-08 09:30 UTC (History)
3 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Meyer 2007-11-05 16:27:01 UTC
The first time I used information browser, I configured it to have a subset of the default items:

BBC News
BBC Sport
Slim Forums Latest
RollingStone.com Music News
CNET News
Slashdot

However, having just opened the information browser today, I now see:

BBC News World
CNET News.com
New York Times
RollingStone.com Music News
Slashdot
Yahoo! Business
BBC News
BBC Sport
Slim Forums Latest
Slashdot
CNET News.com
RollingStone.com Music News
BBC News
BBC Sport
Slim Forums Latest

Something somewhere along the lines has re-entered the default items at the top of the list.

I don't know when, where or how this has happened.  I'm trying to repeat...
Comment 1 KDF 2007-11-05 18:18:06 UTC
I had this too, but it was a setup issue.  First time I used infobrowser, it was a demo plugin.  one integrated into core build, the prefs were duplicated when the default file location was changed.  If your first time using was also during demo, I suggest you wipe prefs/plugin/infobrowser.prefs.  that will clear any record of imported files.  go into edit mode and see if that causes any problems.  I have not been able to reproduce the duplications since the plugin went stable.
Comment 2 Chris Owens 2007-11-07 10:54:33 UTC
QA to repro
Comment 3 Adrian Smith 2007-11-10 08:53:07 UTC
Infobrowser stores which menus it has added to the top level menu as preferences, so you could see this if you erased your preferences as well.  If you go to Settings - Plugins - Infobrowser you should be able to reset this with the reset link.

The idea is that you can drop in new addons for infobrowser and they show up in the menu the next time you restart the server.  This relies on the preferences storing which addons have been added to the menu already, so you get this effect if you loose the preferences.

You will also get similar problem if you have the original stand alone infobrowser plugin installed as it is now part of the server - I'm assuming this is not the case.
Comment 4 KDF 2007-11-10 10:57:43 UTC
if this is when the prefs were moved in windows, this would be a case of the prefs rebuild.  I do suspect this is simply a 7-to-7 nightly upgrade glitch.
Comment 5 KDF 2008-01-25 10:56:14 UTC
This also happens if the path changes for any reason (such as running different versions of the server).
Maybe store the filename without path in prefs, so that same filenames don't load twice?  If you want to avoid namespace overlap, maybe store paths relative to the slimserver base folder (but, a problem on distros where we've split the folders all over the place).



Comment 6 Blackketter Dean 2008-01-25 17:15:23 UTC
Is this something that needs to be fixed before 7.0?
Comment 7 KDF 2008-01-25 18:45:35 UTC
no.  it really shoudln't mess up anyone users with a simple install.
It is more of a problem for those who go back and forth on versions, or during the prefs relocations.
Comment 8 Blackketter Dean 2008-01-25 21:01:16 UTC
Great.  Let's put it off for now...


Comment 9 Michael Herger 2008-06-12 02:01:40 UTC
change 20668 - the duplicate entries were due to a crasher on the very first initialisation:

[08-06-12 10:31:58.8882] Slim::Utils::PluginManager::enablePlugins (486) Warning: Couldn't call Slim::Plugin::InfoBrowser::Plugin->initPlugin: Can't call method "searchDirs" on an undefined value at /Users/mh/Documents/workspace/unstable/server/Slim/Plugin/InfoBrowser/Settings.pm line 68.

Need to initialise the settings before calling the plugin's inherited init.
Comment 10 James Richardson 2008-12-15 13:08:03 UTC
This bug appears to have been fixed in the latest release!

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.

Make sure to include the version number of the software you are seeing the error with.