ZF-5555: Zend_File_Transfer generates notice, when validating a non-required empty file element
Description
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) {
Comments
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 :
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.