Bug 1029446 - Invalid message filter on purge is ignored
Summary: Invalid message filter on purge is ignored
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp
Version: 3.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: 3.0
: ---
Assignee: Gordon Sim
QA Contact: Petr Matousek
URL:
Whiteboard:
Depends On:
Blocks: 1109190
TreeView+ depends on / blocked
 
Reported: 2013-11-12 12:05 UTC by Gordon Sim
Modified: 2014-09-24 15:09 UTC (History)
4 users (show)

Fixed In Version: qpid-cpp-0.22-26
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1109190 (view as bug list)
Environment:
Last Closed: 2014-09-24 15:09:10 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Apache JIRA QPID-5324 0 None None None Never
Red Hat Product Errata RHEA-2014:1296 0 normal SHIPPED_LIVE Red Hat Enterprise MRG Messaging 3.0 Release 2014-09-24 19:00:06 UTC

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

If an invalid 'filter' map is specified to the purge operation on a queue, it is ignored and all messages are deleted (up to the count specified). This is error prone as an accidental mistake by an operator can lead to the wrong messages being purged.

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

MRG 2.3

How reproducible:

100%

Steps to Reproduce:
1. create queue
2. using qpidtool, purge the queue with an invalid filter, e.g. call 131 purge 0 {'subject':abc'}

Actual results:

All messages are purged

Expected results:

Get an exception informing operator that the filter is not valid
Additional info:

Comment 1 Gordon Sim 2013-11-12 12:06:10 UTC
Fixed upstream: https://svn.apache.org/r1540794 and https://svn.apache.org/r1541002

Comment 3 Petr Matousek 2014-01-03 15:14:22 UTC
This issue has been fixed. Verified on rhel6.5 (x86_64, i386).

QE note:

Following error is now displayed when using incorrect filter:
qpid: Unrecognized message filter: '{subject:abc}' (/builddir/build/BUILD/qpid-0.22/cpp/src/qpid/broker/Queue.cpp:697) (7)

valid filter format:
{"filter_type":"header_match_str","filter_params":"header_key":"qpid.subject","header_value":"abc"}}


packages under test:
qpid-cpp-*-0.22-29

-> VERIFIED

Comment 4 errata-xmlrpc 2014-09-24 15:09:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-1296.html


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