On 03/04/2010 11:46 AM, Sam Joyce wrote:
Hi Siamak,
I've had a look in the Headers Exchange code and traced through the
match() code. I've drilled down to the FieldValue impl, which is
ultimately where it decides on a match (the operator==() method),
someone else please jump in here but what I'm seeing is no support for
wild-carding on header values.
There is, but I think it is broken. HeadersExchange.cpp:255 defines
match_values and if the binding specified a key with an empty value,
that will match any value. I believe empty() is the wrong test and will
never be true for a map decoded off the wire.
Setting the value to None in python when binding is the correct approach.
I've raised a Jira for this
(https://issues.apache.org/jira/browse/QPID-2429) and we'll get it fixed
shortly. Thanks for pointing that out!
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]