Mantis - Quercus
Viewing Issue Advanced Details
2741 minor always 06-18-08 06:40 08-11-08 12:00
ferg  
ferg  
urgent  
closed 3.1.6  
fixed  
none    
none 3.2.0  
0002741: request->getParameter sometimes missing
(rep by Paul Fisher)

wordpress/wp-content/plugins/getCategoryList.php:18: Fatal Error:
'com.caucho.server.hmux.HmuxRequest::getParameter' is an unknown method

We have deployed this fix and it seems to be working fairly well. However, we noticed that some content is now no longer displaying. On out site, the category listing widget is now showing no results. Any thoughts on how _GET might work differently from request.getParameter()?
 

Notes
(0003208)
nam   
06-18-08 07:36   
simple test case:

<?php

  $req = quercus_get_request(); // HttpRequest Java object
  $req->getClass(); // Object::getClass()

?>
(0003318)
ferg   
08-11-08 12:00   
For the difference question, _GET does some extra processing, like converting ?a[]=test into a PHP array.

request.getParameter() adds a key for "a[]" not "a".

Also, request.getParameter() reads the POST. _GET only applies to the GET parameters.