Zend Framework

Returning nested arrays in Zend_AMF produces Client.Data.UnderFlow errors

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7 Preview Release
  • Fix Version/s: None
  • Component/s: Zend_Amf
  • Labels:
    None

Description

Returning nested arrays in Zend_AMF
produces Client.Data.UnderFlow NetStatus message in AS3

i.e.:

public function testNested(){
return array("items"=>array("a","b"));
}

when debugging in a tool like charles I get:
"AMF data is incomplete (50 bytes of 50 bytes). "
on the function above

Reported on
MacOSX10.5.5.
php 5.2.5
ZF 1.7 trunk

Activity

Hide
Wade Arnold added a comment -

I was able to confirm the bug and am currently working on the resolution.

Show
Wade Arnold added a comment - I was able to confirm the bug and am currently working on the resolution.
Hide
Wade Arnold added a comment -

Looks to be a bug in both Amf3 and Amf0

Show
Wade Arnold added a comment - Looks to be a bug in both Amf3 and Amf0
Hide
Wade Arnold added a comment -

Issue was created by checking if the array length was <= than on a 0 keyed array. Just needed to make it < than so that it would not iterate any more and cause the buffer under run.

Show
Wade Arnold added a comment - Issue was created by checking if the array length was <= than on a 0 keyed array. Just needed to make it < than so that it would not iterate any more and cause the buffer under run.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
Not Specified
Original Estimate - Not Specified
Remaining:
0m
Remaining Estimate - 0 minutes
Logged:
3h
Time Spent - 3 hours