Skip Menu |

This queue is for tickets about the File-Find-Rule-Filesys-Virtual CPAN distribution.

Report information
The Basics
Id: 19664
Status: resolved
Priority: 0/
Queue: File-Find-Rule-Filesys-Virtual

People
Owner: Nobody in particular
Requestors: lozier [...] geospiza.com
Cc:
AdminCc:

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



Subject: module prints to STDOUT in error condition
On line 99, the function prints a message to standard out in an error condition. This line should be changed to a warn() instead of a print( ). $vfs->chdir( $path ) or do { print "chdir $path failed\n"; return }; to $vfs->chdir( $path ) or do { warn "chdir $path failed\n"; return }; This is critical because when using this module in a mod_perl environment, the print is being passed to apache, which is then passing it to the client, and it thus the client doesn't get a valid HTTP response.
1.22 now attempts to deal with the unexpected condition (the unadorned print was because this was in a "should not happen" branch, and probably should really have been a die) -- Richard Clamp <richardc@unixbeard.net>