In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
807 [In-Portal CMS] Data Management bug report always 2010-07-23 16:05 2010-11-30 12:48
alex  
alex  
normal  
closed 5.1.0  
fixed  
 
none 5.1.1-B1  
http://groups.google.com/group/in-portal-bugs/browse_thread/thread/ab014c0fe56e798c
0
0000807: Curl POST doesn't support multidimensional arrays
I'm trying to post multidimensional array using curl, but I get array instead.
patch curl_multi_dimensional_array_support.patch (471) 2010-07-23 16:05
http://tracker.in-portal.org/file_download.php?file_id=682&type=bug
Issue History
2010-11-30 12:48 Dmitry Note Added: 0003045
2010-11-30 12:48 Dmitry Status resolved => closed
2010-08-31 14:09 alex version => 5.1.0
2010-08-29 05:34 alex Changeset attached 5.1.x r13904
2010-08-29 05:34 alex Note Added: 0002734
2010-08-29 05:34 alex Status reviewed and tested => resolved
2010-08-29 05:34 alex Fixed in Version => 5.1.1-B1
2010-08-29 05:34 alex Resolution open => fixed
2010-08-29 05:34 alex Assigned To !COMMUNITY => alex
2010-08-02 10:25 Dmitry Note Added: 0002638
2010-08-02 10:25 Dmitry Status needs testing => reviewed and tested
2010-07-31 13:19 Dmitry Target Version Icebox => 5.1.1
2010-07-31 13:12 alex Target Version => Icebox
2010-07-31 07:23 alex Note Added: 0002632
2010-07-31 07:23 alex Assigned To alex => !COMMUNITY
2010-07-31 07:23 alex Status needs work => needs testing
2010-07-30 17:46 Dmitry Note Added: 0002622
2010-07-30 17:46 Dmitry Assigned To !COMMUNITY => alex
2010-07-30 17:46 Dmitry Status needs testing => needs work
2010-07-23 16:05 alex Note Added: 0002609
2010-07-23 16:05 alex Assigned To => !COMMUNITY
2010-07-23 16:05 alex Developer => alex
2010-07-23 16:05 alex Status active => needs testing
2010-07-23 16:05 alex New Issue
2010-07-23 16:05 alex File Added: curl_multi_dimensional_array_support.patch
2010-07-23 16:05 alex Reference => http://groups.google.com/group/in-portal-bugs/browse_thread/thread/ab014c0fe56e798c

Notes
(0002609)
alex   
2010-07-23 16:05   
o test you must pass multidimensional array to kCurlHelper::setPostData method, e.g.

$curl_helper->setPostData( Array( Array ('test', test'), Array ('test', test') ));

And then verify, that $_POST is exactly as array given to setPostData method.
(0002622)
Dmitry   
2010-07-30 17:46   
I am getting "No values" for elements in your test case.
(0002632)
alex   
2010-07-31 07:23   
Ups, forgot to add POST variable names. Here is fixed test case:

$curl_helper->setPostData(
    Array (
        'variable1' => Array ('test1', test2'),
        'variable2' => Array ('test2', test3')
    )
);
(0002638)
Dmitry   
2010-08-02 10:25   
Tested good, please commit to 5.1.1
(0002734)
alex   
2010-08-29 05:34   
Fix committed to 5.1.x branch. Commit Message:

Fixes 0000807: Curl POST doesn't support multidimensional arrays
(0003045)
Dmitry   
2010-11-30 12:48   
Closing released 5.1.1 task.