Bug 1379263 - Error when executing DependentProducts.get against products with no contacts
Summary: Error when executing DependentProducts.get against products with no contacts
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Bugzilla
Classification: Community
Component: WebService
Version: 5.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: 5.0
Assignee: Matt Tyson 🤬
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-26 08:55 UTC by Rony Gong 🔥
Modified: 2018-12-09 06:29 UTC (History)
4 users (show)

Fixed In Version: 5.0.3-rh8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-11 01:04:28 UTC


Attachments (Terms of Use)

Description Rony Gong 🔥 2016-09-26 08:55:51 UTC
Description of problem:
It throw error of 'Can\'t call method "dm_contacts_as_email" on an undefined value when executing DependentProducts.get against products which contact user not set yet.

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

How reproducible:
100%

Steps to Reproduce:
1.The product 'Bugzilla' doesn't set any contact for depend product in amdin
2.Execute xmlrpc method like:
proxy.DependentProducts.get({'names': ['Bugzilla'], 'Bugzilla_login': 'qgong', 'Bugzilla_password': '*******'})
3.

Actual results:
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1240, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1599, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1280, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1313, in single_request
    return self.parse_response(response)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1490, in parse_response
    return u.close()
  File "/usr/lib64/python2.7/xmlrpclib.py", line 799, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault -32000: 'Can\'t call method "dm_contacts_as_email" on an undefined value at /loader/0x7f4732074e78/Bugzilla/Extension/DependentProducts/WebService/DependentProducts.pm line 223.\n'>


Expected results:
Just list out the data.

Additional info:

Comment 1 Rony Gong 🔥 2016-10-09 09:53:02 UTC
Tested on QA environment(5.0.3-rh8)
Result: Pass


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