#1122: AgaviArraylengthValidator doesn't work with files
------------------------+---------------------------------------------------
 Reporter:  david       |       Owner:  dominik
     Type:  defect      |      Status:  new    
 Priority:  normal      |   Milestone:  1.0.2  
Component:  validation  |     Version:  1.0.1  
 Severity:  normal      |    Keywords:         
Has_patch:  0           |  
------------------------+---------------------------------------------------
 Problem: {{{AgaviValidator::checkAllArgumentsSet()}}} calls
 {{{AgaviRequestDataHolder::isValueEmpty()}}}, which for source "files"
 will call {{{AgaviWebRequestDataHolder::isFileValueEmpty()}}}. This
 function checks if the value is an instance of {{{AgaviUploadedFile}}},
 which for an array of course is not the case.

 Modifying {{{AgaviWebRequestDataHolder::isFileValueEmpty()}}} accordingly
 is not an option, as other areas would be affected.

 Solution: override {{{AgaviArraylengthValidator::checkAllArgumentsSet()}}}
 so that it checks if the value is an array.

-- 
Ticket URL: <http://trac.agavi.org/ticket/1122>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5



_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to