Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the HTML-FormHandler CPAN distribution.

Report information
The Basics
Id: 57987
Status: resolved
Priority: 0/
Queue: HTML-FormHandler

People
Owner: Nobody in particular
Requestors: ovid [...] cpan.org
Cc:
AdminCc:

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



Subject: Upload types can't be in dependencies
Download (untitled) / with headers
text/plain 706b
I have this in my form code: has '+dependency' => ( default => sub { [ [qw/image title credit credit_url/] ]; } ); However, the 'image' was of type 'Upload'. In HTML::FormHandler::_set_dependency where the values are checked, we have the following: if ( ref $value ) { # at least one value is non-blank next unless grep { /\S/ } @$value; } else { next unless $value =~ /\S/; } If the $value is a reference, it's assumed to be an array ref. However, for an upload, it's a Catalyst::Request::Upload, a blessed hash, and my code falls down and goes boom :) Cheers, Ovid
Download (untitled) / with headers
text/plain 104b
Problem has been fixed in repo; will be in next version. Used 'has_some_value' method in _set_dependency


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.