Bug 1377192 - Can't create rule-engine rule by xmlrpc
Summary: Can't create rule-engine rule by xmlrpc
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Bugzilla
Classification: Community
Component: WebService
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: ---
Assignee: PnT DevOps Devs
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-19 07:08 UTC by Rony Gong 🔥
Modified: 2016-09-21 23:19 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-21 23:19:16 UTC


Attachments (Terms of Use)

Description Rony Gong 🔥 2016-09-19 07:08:06 UTC
Description of problem:
Can't create rule-engine rule by xmlrpc

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

How reproducible:
100%

Steps to Reproduce:
1.Try to create a rule by:
context = ssl._create_unverified_context()
proxy = xmlrpclib.ServerProxy('https://bzweb.host.qe.eng.pek2.redhat.com/xmlrpc.cgi',  context=context, verbose=False)

result = proxy.RuleEngine.create({'login':'qgong', 'password': '****', 'definition': '{"match_json":{"keywords":{"word":"is any of","values":["CommonBugs"]},"component":{"word":"is any of","values":["component1"]},"product":{"values":["Auto Test"]},"classification":{"values":["Red Hat"]}},"action_json":{"keywords":{"action":"remove","values":["CommonBugs"]},"comment":{"text":"this comment is added by rule engine","private":0}}}', 'owners': [], 'description': 'The Description of Auto Test', 'rule_group_id': 4, 'is_active': False, 'is_periodic': False, 'name': 'gqEydUYvpX'})
2.
3.

Actual results:
xmlrpclib.Fault: <Fault 50: 'The function requires a rules argument, and that argument was not set.'>

Expected results:


Additional info:

Comment 1 Matt Tyson 🤬 2016-09-21 23:19:16 UTC
This is not a new bug. Use bug 1365495 for this.


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