ZF-12452: Zend_Json_Server parameter default value NULL'd
Description
{{Zend_Json_Server}}, line of code 550, default parameter is NULL'd even if it exists with value other than NULL, which can cause major issues.
$orderedParams[$refParam->getName()] = null;
Should be:
$orderedParams[$refParam->getName()] = $refParam->getDefaultValue();
Dejan, Site5
Comments
Posted by Rob Allen (rob) on 2012-11-06T21:05:47.000+0000
Are you able to provide example code that shows this problem?
Posted by Rob Allen (rob) on 2012-11-06T21:11:58.000+0000
Actually, I can see that this needs fixing by inspection!
Posted by Rob Allen (rob) on 2012-11-06T21:12:15.000+0000
Fixed on trunk (25084) and release-1.12 (25085)
Posted by Dejan Marjanovic (dejan) on 2012-11-06T21:21:07.000+0000
Yes Sir, I would be happy to provide code but as you can see, it is pretty obvious that it gets null'd regardless of default value. I've tested it numerous times and then rewritten entire _handle method because of some other implementation issues. Thanks!