Issue Type: Bug Created: 2009-01-15T05:23:00.000+0000 Last Updated: 2009-06-16T12:26:09.000+0000 Status: Resolved Fix version(s): - 1.7.3 (19/Jan/09)
Reporter: Loke Dupont (colde) Assignee: Thomas Weidner (thomas) Tags: - Zend_File_Transfer
Related issues: Attachments:
Notice: Undefined index: validated in /var/www/project/library/Zend/File/Transfer/Adapter/Abstract.php on line 578
The code thats seems to generate the error is: if ($content['validated'] === true) {
Posted by Thomas Weidner (thomas) on 2009-01-15T05:41:14.000+0000
Not able to reproduce this behaviour:
The validated key is set at initiation of the HTTP adapter. It is never unset only changed to true and false and always available.
When the validated key is not available then probably something was overwritten or you are using an outdated release.
Please give a reproducable example of your problem.
Posted by Jérôme Melis (stopi) on 2009-06-15T11:03:45.000+0000
Hello,
I've reproduce this issue doing this :
make a controller in which you set a Zend_Form $form
$form should contain an input file ($file)
create the view, omitting the input file element ** go to webbrowser an post this form
when executed
$form->isValid($post)
the following method produce the message {quote}Notice: Undefined index: validated in /var/www/project/library/Zend/File/Transfer/Adapter/Abstract.php on line 578{quote}
This seems to append when Zend_Form try to validate a non posted input file element. Hope this help.
Posted by Dolf Schimmel (Freeaqingme) (freak) on 2009-06-15T11:09:23.000+0000
Updated issue to its original description.
@ Loke; please dont "ruin" an issue next time ;)
Posted by Thomas Weidner (thomas) on 2009-06-15T12:06:46.000+0000
@Jérôme: Please note that this issue is marked as "fixed with ZF 1.7.3".
Additionally in the actual release ZF1.8 there is no codeline which reads "if ($content['validated'] === true) {"
Therefor this issue remains as "incomplete"
Posted by Jérôme Melis (stopi) on 2009-06-16T12:26:08.000+0000
OK Thomas, thanks.
FYI, my test was made using ZF 1.7.7
Regards.