In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1392 [In-Portal CMS] Front End bug report always 2012-09-13 06:00 2012-09-13 06:03
alex  
alex  
normal  
resolved 5.0.0  
fixed  
 
none 5.2.1-B1  
https://groups.google.com/d/topic/in-portal-bugs/DVhNjWfkTkM/discussion
Fixes fatal error on missing image display attempt
1
0001392: Resizing non-uploaded image caused fatal error
When image upload isn't required then this means that there are no 100% guarantee that image will be there.

For such cases in template, where image will be displayed we:

* either display default image, e.g. <inp2:unit-prefix_Field name="ImageField" format="resize:100x100;default:img/no_image.gif"/>
* or place <inp2:m_if check="unit-prefix_Field" name="ImageField" db="db"> ... </inp2:m_if> around image display code

If none of mentioned above happens then horrible fatal error happens, that results in "The connection was reset" message being returned from a web server with no idea about what caused it.
patch missing_image_results_in_fatal_error.patch (469) 2012-09-13 06:00
http://tracker.in-portal.org/file_download.php?file_id=1796&type=bug
Issue History
2012-09-13 06:03 alex Note Added: 0005173
2012-09-13 06:03 alex Status reviewed and tested => resolved
2012-09-13 06:03 alex Fixed in Version => 5.2.1-B1
2012-09-13 06:03 alex Resolution open => fixed
2012-09-13 06:03 alex Assigned To !COMMUNITY => alex
2012-09-13 06:03 alex Changeset attached 5.2.x r15534
2012-09-13 06:03 alex Note Added: 0005172
2012-09-13 06:03 alex Status needs testing => reviewed and tested
2012-09-13 06:02 alex Assigned To => !COMMUNITY
2012-09-13 06:02 alex Developer => alex
2012-09-13 06:02 alex Status active => needs testing
2012-09-13 06:02 alex Reference => https://groups.google.com/d/topic/in-portal-bugs/DVhNjWfkTkM/discussion
2012-09-13 06:00 alex New Issue
2012-09-13 06:00 alex File Added: missing_image_results_in_fatal_error.patch
2012-09-13 06:00 alex Change Log Message => Fixes fatal error on missing image display attempt
2012-09-13 06:00 alex Estimate Points => 1

Notes
(0005172)
alex   
2012-09-13 06:03   
Will test all together later.
(0005173)
alex   
2012-09-13 06:03   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001392: Resizing non-uploaded image caused fatal error