Ticket #192 (closed defect: fixed)

Opened 10 months ago

Last modified 10 months ago

Decoder Bug when using String References and AMF Headers

Reported by: gerard Owned by: nick
Priority: major Milestone: 0.1.1
Component: Decoder Version: 0.1
Keywords: Cc:

Description

There is a bug in the decoder, when dealing with string references.

Currently, it seems as though string-data inside of AMF Headers are being added to the "reference tables" which are used to resolve string references. This is resulting in string references being resolved to incorrect parameters.

While the AMF specs aren't really clear on this particular topic, the data used is real data originating from a Flash Player 9 client.

Attached is a patch to pyamf/tests/test_remoting.py which adds a test case for this particular problem.

Attachments

test_case.patch (1.5 KB) - added by gerard 10 months ago.
Patch for test_remoting.py

Change History

Changed 10 months ago by gerard

Patch for test_remoting.py

Changed 10 months ago by nick

  • status changed from new to closed
  • resolution set to fixed

The {{Credentials}}} header data is being parsed as an AMF3 object, not AMF0 which was not expected. The decoder context needed to be cleared between reading the header and reading the body of the remoting message.

Fixed in r1012.

Thanks for the test case!

Changed 10 months ago by thijs

  • milestone changed from 0.2 to 0.1.1
Note: See TracTickets for help on using tickets.