In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1358 [In-Portal CMS] Front End bug report always 2012-07-19 04:17 2012-07-25 05:29
alex  
alex  
normal  
closed 5.2.0-RC1  
fixed  
 
none 5.2.0  
https://groups.google.com/d/topic/in-portal-bugs/rt0DlN4Zf_k/discussion
Fixes inability to upload files on Front-End
1
0001358: Unable to upload anything on Front-End
I was testing out 5.2.0-RC1 release recently and found, that no upload can be made on Front-End.
For example on a link submission page select an image and try to upload it. Error "Can't save file" will be displayed, but "/system/images/" folder is writable and I've checked it twice.

After some investigation I've found that this happened because of a fix in 0001291 task, where variable $value['error'] containing regular upload status code was converted to string, but later on was compares using "===" operator with integer constant resulting in "no match" at all times.
child of 0001291closed  (5.2.0)alex Uploaded files with "&" in name are showing 
patch front_upload_broken_fix.patch (598) 2012-07-19 04:19
http://tracker.in-portal.org/file_download.php?file_id=1763&type=bug
Issue History
2012-07-25 05:29 alex Note Added: 0004826
2012-07-25 05:29 alex Status resolved => closed
2012-07-19 04:20 alex Note Added: 0004807
2012-07-19 04:20 alex Status reviewed and tested => resolved
2012-07-19 04:20 alex Fixed in Version => 5.2.0
2012-07-19 04:20 alex Resolution open => fixed
2012-07-19 04:20 alex Assigned To !COMMUNITY => alex
2012-07-19 04:20 alex Changeset attached 5.2.x r15462
2012-07-19 04:20 alex Status needs testing => reviewed and tested
2012-07-19 04:20 alex Note Added: 0004806
2012-07-19 04:20 alex Assigned To => !COMMUNITY
2012-07-19 04:20 alex Developer => alex
2012-07-19 04:20 alex Status active => needs testing
2012-07-19 04:20 alex Reference => https://groups.google.com/d/topic/in-portal-bugs/rt0DlN4Zf_k/discussion
2012-07-19 04:19 alex File Added: front_upload_broken_fix.patch
2012-07-19 04:17 alex Relationship added child of 0001291
2012-07-19 04:17 alex New Issue
2012-07-19 04:17 alex Change Log Message => Fixes inability to upload files on Front-End
2012-07-19 04:17 alex Estimate Points => 1

Notes
(0004806)
alex   
2012-07-19 04:20   
Will test all together later.
(0004807)
alex   
2012-07-19 04:20   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001358: Unable to upload anything on Front-End
(0004826)
alex   
2012-07-25 05:29   
Since 5.2.0 version was released.