#5888: Cake unable to serve images from plugins vendors
---------------------------+------------------------------------------------
    Reporter:  AbhimanyuG  |          Type:  Bug    
      Status:  new         |      Priority:  Medium 
   Milestone:  1.2.x.x     |     Component:  General
     Version:  RC2         |      Severity:  Normal 
    Keywords:              |   Php_version:  n/a    
Cake_version:              |  
---------------------------+------------------------------------------------
 Dispatcher's test: testStaticAssets() fails on testing plugin's vendor
 images at my linux environment, but works fine on Windows. I'm referring
 to this part of test:

 Dispatcher::testStaticAssets()
 {{{
 Configure::write('debug', 0);
 $Dispatcher->params =
 $Dispatcher->parseParams('test_plugin/img/cake.icon.gif');
 ob_start();
 $Dispatcher->cached('test_plugin/img/cake.icon.gif');
 $result = ob_get_clean();
 $file = file_get_contents(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS .
 'test_app' . DS . 'plugins' . DS . 'test_plugin' .DS . 'vendors' . DS .
 'img' . DS . 'cake.icon.gif');
 $this->assertEqual($file, $result);
 }}}

 Here's the failure message as I get it running test on linux:

 # Failed
 Equal expectation fails at character 0 with [GIF89a � �ó �o�vÿÿÿ
 ?L¡°µÑϲàæèÃÃ�
 @MÂÌÏ���¢§{+MWLw�Sc^ 8E�4A!ù  �� �,���� � �� �ðÉI«­ç°Íò� 3 E`  20Bµ�g|�­t
 r�à2rH �LA � µ[ ¥  ��ÆïqH,  (���  »\  0l ���4h ¸Ð �¢(-³[B��Ø.Ëx
  V(*n e[ �   W f[...@�9 ��s  ...] and [??????] at
 [/home/pathhere/cake/tests/cases/dispatcher.test.php line 1307]
 /home/pathhere/cake/tests/cases/dispatcher.test.php -> DispatcherTest ->
 testStaticAssets

 Let me know if you need more info on same.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5888>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to