Bug 781484

Summary: [RFE]: Pass a default to the filter argument in purge/reroute/queueMoveMessages QMF methods
Product: Red Hat Enterprise MRG Reporter: Petr Matousek <pematous>
Component: qpid-qmfAssignee: Ken Giusti <kgiusti>
Status: NEW --- QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: low Docs Contact:
Priority: low    
Version: DevelopmentCC: iboverma, jross
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 734115    
Bug Blocks:    

Description Petr Matousek 2012-01-13 15:27:58 UTC
Description of problem:

Filter argument is mandatory in the QMF purge/reroute/queueMoveMessages methods, which is in conflict with the schema description:

  # qpid: call 127 purge 1
  Exception in do_call: %r Incorrect number of arguments: expected 2,
  got 1

  # qpid: schema queue
  <snip>
  filter    field-table  I                if specified, purge only those messages matching this filter
  </snip>

Version-Release number of selected component (if applicable):
python-qpid-0.14-1.el5
python-qpid-qmf-0.14-2.el5
qpid-cpp-client-0.14-3.el5
qpid-cpp-client-devel-0.14-3.el5
qpid-cpp-client-devel-docs-0.14-3.el5
qpid-cpp-client-ssl-0.14-3.el5
qpid-cpp-server-0.14-3.el5
qpid-cpp-server-cluster-0.14-3.el5
qpid-cpp-server-devel-0.14-3.el5
qpid-cpp-server-ssl-0.14-3.el5
qpid-cpp-server-store-0.14-3.el5
qpid-cpp-server-xml-0.14-3.el5
qpid-java-client-0.14-1.el5
qpid-java-common-0.14-1.el5
qpid-java-example-0.14-1.el5
qpid-qmf-0.14-2.el5
qpid-qmf-devel-0.14-2.el5
qpid-tests-0.14-1.el5
qpid-tools-0.14-1.el5

How reproducible:
100%

Steps to Reproduce:
1. # qpid-tool
2. # qpid: call <queue-id> purge 1
  
Actual results:
empty filter "{}" must be explicitly specified for the filter parameter (for not using the filter)

Expected results:
The filter argument is either optional or pass a default in purge/reroute/queueMoveMessages QMF methods