Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.8.2
-
Fix Version/s: 1.9.0
-
Component/s: Zend_File_Transfer
-
Labels:None
Description
Bug introduced in r14161
Code to reproduce:
$adapter = new Zend_File_Transfer_Adapter_Http();
$adapter->setDestination('/tmp', 'some_file');
$adapter->getDestination('some_file');
Warning: Exception caught by form: "some_file" not found by file transfer adapter Stack Trace: #0 /ZF/library/Zend/File/Transfer/Adapter/Abstract.php(1033): Zend_File_Transfer_Adapter_Abstract->_getFiles('some_file', false)
The 'name' attribute is not created by setDestination() however by promoting its verification before the attempt to match the array key first, the file is skipped and never found.
Proposed patch