python client cannot create a receiver to the xml exchange
----------------------------------------------------------

                 Key: QPID-2551
                 URL: https://issues.apache.org/jira/browse/QPID-2551
             Project: Qpid
          Issue Type: Bug
          Components: Python Client
    Affects Versions: 0.7
            Reporter: Gordon Sim
            Assignee: Rafael H. Schloming
             Fix For: 0.7


E.g. drain -f "xml; {link:{x-bindings: [{exchange: 
xml,key:"content_feed",arguments:{xquery:\"declare variable \$control external; 
./message/id mod 2 = 1 or \$control = 'end'\"}}]}}"

this fails as there is an extra bind request created with no arguments, which 
the XML exchange rejects as invalid.

broker log:

2010-04-27 09:59:54 trace RECV [127.0.0.1:48880]: Frame[BEbe; channel=0; 
{QueueDeclareBody: queue=6a6be132-7e41-4506-a651-d7dd27055a28:0.0; exclusive=1; 
auto-delete=1; }]
2010-04-27 09:59:54 info Queue "6a6be132-7e41-4506-a651-d7dd27055a28:0.0": 
Policy created: type=reject; maxCount=0; maxSize=104857600
2010-04-27 09:59:54 trace RECV [127.0.0.1:48880]: Frame[BEbe; channel=0; 
{ExchangeBindBody: queue=6a6be132-7e41-4506-a651-d7dd27055a28:0.0; 
exchange=xml; }]  <====== this is the problem
2010-04-27 09:59:54 error Execution exception: internal-error: Could not parse 
xquery: (../../src/qpid/xml/XmlExchange.cpp:118)
2010-04-27 09:59:54 trace RECV [127.0.0.1:48880]: Frame[BEbe; channel=0; 
{ExchangeBindBody: queue=message_queue; exchange=xml; binding-key=content_feed; 
arguments={xquery:V2:78:str16(declare variable $control external; ./message/id 
mod 2 = 1 or $control = 'end')}; }]
2010-04-27 09:59:54 trace RECV [127.0.0.1:48880]: Frame[BEbe; channel=0; 
{MessageSubscribeBody: queue=6a6be132-7e41-4506-a651-d7dd27055a28:0.0; 
destination=0; acquire-mode=0; }]


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org

Reply via email to