Bug 376 - Music folder path should be fixed per platform
: Music folder path should be fixed per platform
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Web Interface
: unspecified
: PC Windows (legacy)
: P2 normal (vote)
: ---
Assigned To: Blackketter Dean
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-06-16 16:11 UTC by KDF
Modified: 2008-09-15 14:37 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description KDF 2004-06-16 16:11:02 UTC
Pages.pm v 1.76 switched to using itempath instead of songurl as a paramter, so
now the \'s aren't fixed and the comparison for the audiodir fails:

sample data from Pages.pm after line 1076:
curdir: d:/mp3
loc: D:\mp3\Professionals\Cherry Poppin' Daddies - Zoot Suit Riot.mp3

thus the downloadurl comes up as $loc and the web interface reports "d is not a
recognised protocol"
Comment 1 Blackketter Dean 2004-06-16 20:36:20 UTC
What happens when your audiodir is set to:

d:\mp3

instead of:

d:/mp3

(On windows, d:\mp3 is more correct...)  If this resolves the problem then we need to make sure that 
the audiodir has the right kind of slashes in it for the appropriate platform.
Comment 2 KDF 2004-06-16 21:34:05 UTC
that does allow it to work.  I've been away from that setup for a while, so I
can't say for sure if I changed it or not.  It used to work before.  Perhaps
d:/mp3 should fail if entered, or we normalise the whole / mess :)
Comment 3 Blackketter Dean 2004-06-17 07:22:50 UTC
So, the real bug is that if you enter:

D:/mp3

as your path, it should get fixed to:

D:\mp3
Comment 4 KDF 2004-06-17 09:25:39 UTC
the bug is that it validates as ok, when in other tests it would fail. One
solution would be to convert when it is entered, or ensure that all tests are
slashflip independant.
Comment 5 Robert Moser II 2005-02-24 15:36:26 UTC
Fixed in 6.0 tree using canonpath.
Comment 6 Chris Owens 2006-06-16 14:40:22 UTC
There are 536 bugs in the database with targets of '---' that were fixed prior to new year 2006.  I am setting them to targets of 6.2.1 to keep them from showing up in my queries.