Skip Menu |

This queue is for tickets about the File-Find-Object CPAN distribution.

Report information
The Basics
Id: 33453
Status: resolved
Worked: 2.2 hours (135 min)
Priority: 0/
Queue: File-Find-Object

People
Owner: SHLOMIF [...] cpan.org
Requestors: tut [...] bambra.net
Cc:
AdminCc:

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



Subject: Problem with File::Find::Object
Date: Wed, 20 Feb 2008 11:54:49 +0300
To: bug-File-Find-Object [...] rt.cpan.org
From: Sergey V Panteleev <tut [...] bambra.net>
Hi! Thanks for the module, it has very nice interface and seems very usable. But there is a little problem with it. I tried to use it instead of File::Find and found that it dies when receives filename in the directories list in constructor. Can you fix this so ->next call will return source filename in this case? This will improve compatibility between File::Find and File::Find::Object. Thanks a lot for your reply!
From: SHLOMIF [...] cpan.org
Hi! I'm sorry for the late response. On Wed Feb 20 03:57:08 2008, tut@bambra.net wrote: Show quoted text
> Hi! > > Thanks for the module, it has very nice interface and seems very
usable. Thanks for the compliment! Show quoted text
> But there is a little problem with it. I tried to use it instead
of Show quoted text
> File::Find and found that it dies when receives filename in the > directories list in constructor. Can you fix this so ->next call
will Show quoted text
> return source filename in this case? This will improve compatibility > between File::Find and File::Find::Object.
You're right about that - thanks for reporting it. This is now fixed in the Subversion trunk. While QAing this, I discovered that File::Find::Object still returns the path argument in ->next() even if it does not exist, which seems like a bug I'll have to investigate. So - double thanks! I'll close this bug after I upload the next version of F-F-O with all the bugs fixed. Regards, Shlomi Fish
Subject: Re: [rt.cpan.org #33453] Problem with File::Find::Object
Date: Fri, 22 Feb 2008 19:21:03 +0300
To: bug-File-Find-Object [...] rt.cpan.org
From: Sergey V Panteleev <tut [...] bambra.net>
Hi! Thank you very much! Good luck!
Fixed in 0.0.9 which has just been uploaded to the CPAN. So closing as resolved.
Subject: Re: [rt.cpan.org #33453] Resolved: Problem with File::Find::Object
Date: Tue, 04 Mar 2008 16:38:36 +0300
To: bug-File-Find-Object [...] rt.cpan.org
From: Sergey V Panteleev <tut [...] bambra.net>
Hi, I tested the module and have a problem again :( It works with files correctly but it is broken with my /tmp folder: ======================================================= use File::Find::Object; my $tree = File::Find::Object->new({}, '/tmp'); while (my $r = $tree->next()) { print $r ."\n"; } ======================================================= Script prints such error: ======================================================= Current is undef at /usr/lib/perl5/site_perl/5.8.5/File/Find/Object.pm line 131 File::Find::Object::_father('File::Find::Object=HASH(0x804cb44)', 'undef') called at /usr/lib/perl5/site_perl/5.8.5/File/Find/Object.pm line 151 File::Find::Object::_movenext_with_current('File::Find::Object=HASH(0x804cb44)') called at /usr/lib/perl5/site_perl/5.8.5/File/Find/Object.pm line 205 File::Find::Object::_movenext('File::Find::Object=HASH(0x804cb44)') called at /usr/lib/perl5/site_perl/5.8.5/File/Find/Object.pm line 114 File::Find::Object::next('File::Find::Object=HASH(0x804cb44)') called at 3.pl line 5 ======================================================= and it's output with object dump is attached. Can you check this? Shlomi Fish via RT пишет: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=33453 > > > According to our records, your request has been resolved. If you have any > further questions or concerns, please respond to this message.

Message body is not shown because it is too large.

From: SHLOMIF [...] cpan.org
On Tue Mar 04 08:42:27 2008, tut@bambra.net wrote: Show quoted text
> Hi, > > I tested the module and have a problem again :( It works with files > correctly but it is broken with my /tmp folder:
This is a completely different bug. I can reproduce it here on my machine with my /tmp. Two comments: 1. Please don't comment on resolved bugs - this just opens them. Instead, file a new bug. 2. You shouldn't have pasted the object dump. It contains a listing of many of the files in your /tmp directory, which may have privacy and security issues. Next time, please email them to me in private. Regards, Shlomi Fish Show quoted text
> ======================================================= > use File::Find::Object; > my $tree = File::Find::Object->new({}, '/tmp'); > > while (my $r = $tree->next()) { > print $r ."\n"; > } > ======================================================= > > Script prints such error: > ======================================================= > Current is undef
at /usr/lib/perl5/site_perl/5.8.5/File/Find/Object.pm Show quoted text
> line 131 >
File::Find::Object::_father('File::Find::Object=HASH(0x804cb44)', Show quoted text
> 'undef') called
at /usr/lib/perl5/site_perl/5.8.5/File/Find/Object.pm Show quoted text
> line 151 >
File::Find::Object::_movenext_with_current('File::Find::Object=HASH(0x804cb44)') Show quoted text
> called at /usr/lib/perl5/site_perl/5.8.5/File/Find/Object.pm line
205 Show quoted text
>
File::Find::Object::_movenext('File::Find::Object=HASH(0x804cb44)') Show quoted text
> called at /usr/lib/perl5/site_perl/5.8.5/File/Find/Object.pm line
114 Show quoted text
> File::Find::Object::next('File::Find::Object=HASH(0x804cb44)')
called Show quoted text
> at 3.pl line 5 > ======================================================= > > and it's output with object dump is attached. Can you check this? > > Shlomi Fish via RT пишет:
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=33453 > > > > > According to our records, your request has been resolved. If you
> have any
> > further questions or concerns, please respond to this message.
>
The new reported issue is now tracked in: http://rt.cpan.org/Ticket/Display.html?id=33808 Regards, Shlomi Fish