Zend Framework

sending typed objects with references

Details

Description

Sending an array with typed objects, which contain typed objects themselves causes an "Unknows Definition reference" in Zend_Amf_Parse_Amf3_Deserializer (line 304).

Tracing that error back to Zend_Amf_Parse_Amf0_Deserializer i found that the deserializer is created newly everytime readAmf3TypeMarker is called (line 297).

Changing this behaviour back (caching the amf3-parser and using a getter for it) this issue is resolved.

The working Zend_Amf_Parse_Amf0_Deserializer i took was from june 2009 - zendfw 1.8

Activity

Hide
Stefan Klug added a comment -

Hi,

The solution provided above is no valid fix, as the caching of the Amf3 Parser was removed on purpose. See the fix for ZF-6393.
If someone (Matthias?) could provide a failing testcase, I can work on a solution.

Regards Stefan

Show
Stefan Klug added a comment - Hi, The solution provided above is no valid fix, as the caching of the Amf3 Parser was removed on purpose. See the fix for ZF-6393. If someone (Matthias?) could provide a failing testcase, I can work on a solution. Regards Stefan
Hide
Stefan Klug added a comment -

It might be, that this issue boils down to the problem (and fix) mentioned in ZF-8015.

Show
Stefan Klug added a comment - It might be, that this issue boils down to the problem (and fix) mentioned in ZF-8015.
Hide
Matthias Steinböck added a comment -

hi!

thanks for your response! i didn't want to post a invalid fix sorry... i didn't find a fix in ZF-8015 though it seems that its the same problem, but i can't say it for sure.

in fact i'm no expert on the amf-protocol. i can post my logs in the next days. i'd really appreciate if you'd find time to check this...

thanks again!

Show
Matthias Steinböck added a comment - hi! thanks for your response! i didn't want to post a invalid fix sorry... i didn't find a fix in ZF-8015 though it seems that its the same problem, but i can't say it for sure. in fact i'm no expert on the amf-protocol. i can post my logs in the next days. i'd really appreciate if you'd find time to check this... thanks again!
Hide
Adam Lundrigan added a comment -

Is this still an issue?

Show
Adam Lundrigan added a comment - Is this still an issue?

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: