Bug 527 - irmap preference should not use absolute path
: irmap preference should not use absolute path
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: IR
: 5.x or older
: All All
: P3 enhancement (vote)
: ---
Assigned To: KDF
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-09-01 11:35 UTC by Jason Holtzapple
Modified: 2008-12-18 11:55 UTC (History)
3 users (show)

See Also:
Category: ---


Attachments
seems to work (2.45 KB, patch)
2004-09-01 12:38 UTC, KDF
Details | Diff
fix lookup function (3.00 KB, patch)
2004-09-01 13:20 UTC, KDF
Details | Diff
keeps it backward compatible (3.16 KB, patch)
2004-09-01 23:26 UTC, KDF
Details | Diff
handle both map and ir files (10.40 KB, patch)
2005-01-20 22:02 UTC, KDF
Details | Diff
updated to fit with 6.0, but holding off until after release (10.17 KB, patch)
2005-03-17 16:43 UTC, KDF
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Holtzapple 2004-09-01 11:35:22 UTC
The irmap preference is stored as an absolute path:

00:00:00:00:00:00-irmap = /export/SlimServer_v2004-09-01/IR/custom.map

This means any custom mappings for your players break on a software
upgrade. The annoyance factor of this increases if you have a lot of
players and even more if you are a developer! You can work around this
with symbolic links but it would be kinder to just store the map name
and have the server search all the IR directories for it.

00:00:00:00:00:00-irmap = custom.map
Comment 1 KDF 2004-09-01 12:38:53 UTC
Created attachment 116 [details]
seems to work

This seems to clean up the prefs to jsut the file name.  On loading, it will
try the full list of dirs, reading in the first valid file it finds.
Comment 2 KDF 2004-09-01 13:20:52 UTC
Created attachment 117 [details]
fix lookup function

that last one needed a bit of a tweak to get the lookupFunction to work.
Comment 3 KDF 2004-09-01 23:26:35 UTC
Created attachment 119 [details]
keeps it backward compatible

this will allow existing settings to work without a change.  going into
settings will take the new filename only value.
Comment 4 KDF 2005-01-20 14:42:06 UTC
*** Bug 315 has been marked as a duplicate of this bug. ***
Comment 5 KDF 2005-01-20 14:52:01 UTC
How about we make this a change for 6.0?  I dont see any reason for the pref to
written as absolute.  the patch works, and we can use the 'update scripts' to
convert it if we want to ensure its changed while starting up.  
Comment 6 KDF 2005-01-20 21:41:47 UTC
oh, and the dupe bug that joined this, means that ir AND map files will be made
a file pref, instead of absolute path/file.
Comment 7 KDF 2005-01-20 22:02:26 UTC
Created attachment 259 [details]
handle both map and ir files

This reads both absolute and file prefs.  if the user goes into settings to
changes anything, we'll now write only the file name to the pref
Comment 8 KDF 2005-03-09 00:28:06 UTC
dan, what do you think of this?  

I've been playign around tonight, and since I have two players in the same room,
this bug is driving me bonkers with 5 copies of svn.  I have to reset the remote
settings every time.  it seems silly to me that so many other prefs are without
the absolute path.  I will likely have to rework this yet again for current rev,
but I can't be bothered unless there is a chance it will actually get committed
this time :)
Comment 9 KDF 2005-03-17 16:43:20 UTC
Created attachment 346 [details]
updated to fit with 6.0, but holding off until after release

This just removes one hunk of the previous patch that would fail.  The old CVS
id  is irrelelvant now anyway.
Comment 10 Blackketter Dean 2005-06-07 13:04:41 UTC
Dan, can we give KDF the go ahead on this patch?
Comment 11 Dan Sully 2005-06-07 13:17:07 UTC
Yes, go for it.
Comment 12 KDF 2005-06-07 17:24:04 UTC
committed fix to trunk at change 3352
Comment 13 Chris Owens 2008-03-11 11:27:53 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!
Comment 14 Chris Owens 2008-12-18 11:55:42 UTC
Routine bug db maintenance; removing old versions which cause confusion.  I apologize for the inconvenience.