Skip Menu |

This queue is for tickets about the Data-FormValidator CPAN distribution.

Maintainer(s)' notes

This is the bug queue for Data::FormValidator.

Report information
The Basics
Id: 20392
Status: resolved
Priority: 0/
Queue: Data-FormValidator

People
Owner: Nobody in particular
Requestors: pdm [...] pobox.com
Cc:
AdminCc:

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



Subject: Data::FormValidator::Constraints::Upload::file_format corrupts files
Hello, First, thank you for creating the Upload constraints module. This is really handy and will save me a lot of coding. I've found what I think is a problem with the module or maybe its interaction with File::MMagic. When I use the file_format constraint, my files are corrupted. They are missing 2 bytes. It seems maybe this is the data that is being read to validate the file type, but the file handle is being modified. I'm using the latest version of Data::FormValidator::Constraints::Upload from CPAN and perl 5.8.4. Thanks, Phillip Moore
I'm pretty sure you've hit this bug in File::MMagic: http://rt.cpan.org/Ticket/Display.html?id=12074 Since I reported it over a year ago, I don't suppose we should a fix to appear there soon. I'll look at installing a work-around in DFV. Mark
A fix for this was included in 4.30. Mark