Skip Menu |

This queue is for tickets about the Dancer-Plugin-DirectoryView CPAN distribution.

Report information
The Basics
Id: 76805
Status: new
Priority: 0/
Queue: Dancer-Plugin-DirectoryView

People
Owner: Nobody in particular
Requestors: westerman [...] purdue.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: More on: Handling recursive files
Date: Wed, 25 Apr 2012 13:58:30 -0400 (EDT)
To: bug-Dancer-Plugin-DirectoryView [...] rt.cpan.org
From: Rick Westerman <westerman [...] purdue.edu>
Now that I explore this more, the plugin dies whenever it encounters a soft-link to an non-existant file: E.g., lrwxrwxrwx 1 core ltlweb 79 Jan 11 2010 MetaCere -> /phillip/gs_flx/data/R_2009_12_23_10_MetaCeretopteris/D_fullProcessing/MetaCere In other words the file 'MetaCere' is linking a file system that does not exist. The plugin dies at this point. ------------- Crashes at line 199 @stats = stat(_) When encountering a self-referential file. E.g. lrwxrwxrwx 1 core ltlweb 2 Feb 1 14:34 /home/core/web/projects/in -> in Yes, I know that such recursive links should not exist! But in case they do then DirectoryView should handle them without crashing. Thanks for writing the plugin. I am just now exploring it but it looks useful. -- Rick Westerman westerman@purdue.edu Bioinformatics specialist at the Genomics Facility. Phone: (765) 494-0505 FAX: (765) 496-7255 Department of Horticulture and Landscape Architecture 625 Agriculture Mall Drive West Lafayette, IN 47907-2010 Physically located in room S049, WSLR building
Subject: Re: [rt.cpan.org #76805] AutoReply: More on: Handling recursive files
Date: Wed, 25 Apr 2012 14:39:19 -0400 (EDT)
To: bug-Dancer-Plugin-DirectoryView [...] rt.cpan.org
From: Rick Westerman <westerman [...] purdue.edu>
My fix to the problem is the simple (but slightly slower): my @stat = stat($file); I tried a couple of ways of doing the full stat($file) when a symbolic (soft) link is present and the quicker stat(_) otherwise but nothing seemed to work. I doubt if the time difference is that great in any case. Show quoted text
----- Original Message -----
> Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "More on: Handling recursive files", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has > been > assigned an ID of [rt.cpan.org #76805]. Your ticket is accessible > on the web at: > > https://rt.cpan.org/Ticket/Display.html?id=76805 > > Please include the string: > > [rt.cpan.org #76805] > > in the subject line of all future correspondence about this issue. To > do so, > you may reply to this message. > > Thank you, > bug-Dancer-Plugin-DirectoryView@rt.cpan.org > > ------------------------------------------------------------------------- > Now that I explore this more, the plugin dies whenever it encounters a > soft-link to an non-existant file: > > E.g., > lrwxrwxrwx 1 core ltlweb 79 Jan 11 2010 MetaCere -> > /phillip/gs_flx/data/R_2009_12_23_10_MetaCeretopteris/D_fullProcessing/MetaCere > > > In other words the file 'MetaCere' is linking a file system that does > not exist. The plugin dies at this point. > > ------------- > Crashes at line 199 > > @stats = stat(_) > > When encountering a self-referential file. E.g. > > lrwxrwxrwx 1 core ltlweb 2 Feb 1 14:34 /home/core/web/projects/in -> > in > > Yes, I know that such recursive links should not exist! But in case > they do then DirectoryView should handle them without crashing. > > Thanks for writing the plugin. I am just now exploring it but it looks > useful. > > > -- > Rick Westerman > westerman@purdue.edu > > Bioinformatics specialist at the Genomics Facility. > Phone: (765) 494-0505 FAX: (765) 496-7255 > Department of Horticulture and Landscape Architecture > 625 Agriculture Mall Drive > West Lafayette, IN 47907-2010 > Physically located in room S049, WSLR building
-- Rick Westerman westerman@purdue.edu Bioinformatics specialist at the Genomics Facility. Phone: (765) 494-0505 FAX: (765) 496-7255 Department of Horticulture and Landscape Architecture 625 Agriculture Mall Drive West Lafayette, IN 47907-2010 Physically located in room S049, WSLR building