Bug 3767 - symlinks to dirs kills scanner after "encountered a second time" error.
: symlinks to dirs kills scanner after "encountered a second time" error.
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Scanner
: 6.5b1
: Macintosh Linux (other)
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-07-15 13:20 UTC by Gregory P. Smith
Modified: 2008-09-15 14:39 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 Gregory P. Smith 2006-07-15 13:20:16 UTC
Using trunk from today (this is the first time i've updated since
split scanner and mysql were merged):


2006-07-15 13:03:54.2876 About to look for files in /home/greg/music
2006-07-15 13:03:54.2964 For files with extensions in: [(?i-xsm:\.(?:ape|wma|shn|wav|wave|mp3|mp2|flc|flac|m4a|mov|m4b|mp4|mp+|mpc|ogg|aif|aiff|cue)$)]
2006-07-15 13:05:24.0274 ERROR: /home/greg/music/Tortoise/TNT encountered a second time at /usr/share/perl/5.8/File/Find.pm line 559.

2006-07-15 13:05:24.0278 ERROR: Backtrace follows:

2006-07-15 13:05:24.0283 Backtrace:

   frame 0: Slim::Schema::throw_exception (/home/greg/sandbox/slim/trunk/server/CPAN/DBIx/Class/Schema.pm line 610)
   frame 1: DBIx::Class::Schema::txn_do (/home/greg/sandbox/slim/trunk/server/scanner.pl line 161)
   frame 2: main::main (/home/greg/sandbox/slim/trunk/server/scanner.pl line 278)



It appears to have been caused by a symlink I had laying around in
another directory:  cd/Tortoise-TNT -> ../Tortoise/TNT

sure.. i know.. "when i do this it hurts.  don't do that."  but 
killing the scan due to this seems wrong.  just skip the duplicate.

I haven't looked closer to see if the exception is due to the File::Find error above or something else given that the traceback shows it in DBIx::Class::Schema...
Comment 1 Dan Sully 2006-07-18 16:20:59 UTC
Fixed in change 8494