Bug 981640 - assert should check the filters actually in use over AMQP 1.0
Summary: assert should check the filters actually in use over AMQP 1.0
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: Development
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: 3.0
: ---
Assignee: Gordon Sim
QA Contact: Zdenek Kraus
URL:
Whiteboard:
Depends On:
Blocks: 1010399
TreeView+ depends on / blocked
 
Reported: 2013-07-05 11:12 UTC by Gordon Sim
Modified: 2015-01-21 12:57 UTC (History)
5 users (show)

Fixed In Version: qpid-qmf-0.22-7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Apache JIRA QPID-4965 0 None None None Never
Red Hat Bugzilla 1133948 0 unspecified CLOSED [amqp1.0] asserting legacy-amqp-topic-binding on xml exchange node does not fail 2021-02-22 00:41:40 UTC

Internal Links: 1133948

Description Gordon Sim 2013-07-05 11:12:48 UTC
Description of problem:

If a filter is specified (see bug 975446) and the exchange type doesn't support it, the client should check this if assert is specified in the address and this should result in an error. This allows an application to take action if a requested filtering is not supported.

Version-Release number of selected component (if applicable):

qpid-cpp-0.22-5.el6, qpid-cpp-0.22-5.el5

How reproducible:

100%

Steps to Reproduce:
1. qpid-receive --connection-options {protocol:amqp1.0} "amq.fanout; {assert: always, link:{filter: {value:\"declare variable $colour external; $colour = 'red'\",name:x,descriptor:\"apache.org:xquery-filter:string\"}}}"

Actual results:

No error will be raised even though there is no filtering in place. Any message sent to amq.fanout will be delivered to the receiver.

Expected results:

Get an exception due to lack of support for the requested filter.
Additional info:

Comment 1 Gordon Sim 2013-07-05 11:14:01 UTC
Fixed upstream by https://svn.apache.org/r1497748

Comment 2 Zdenek Kraus 2014-08-26 15:36:39 UTC
tested on RHEL 6.5 i686 && x86_64 with following packages:

qpid-cpp-debuginfo-0.22-47.el6
qpid-cpp-server-0.22-47.el6
qpid-cpp-server-devel-0.22-47.el6
qpid-cpp-client-0.22-47.el6
qpid-cpp-server-xml-0.22-47.el6
qpid-cpp-client-devel-docs-0.22-47.el6
qpid-cpp-client-devel-0.22-47.el6
qpid-cpp-server-linearstore-0.22-47.el6
qpid-qmf-0.22-38.el6
qpid-qmf-devel-0.22-38.el6


this works as expected. Outstanding issue reported separately: Bug 1133948


Note You need to log in before you can comment on or make changes to this bug.