| Summary: | Port custom milestones RPC interface into Bugzilla 5 | ||
|---|---|---|---|
| Product: | [Community] Bugzilla | Reporter: | Matt Tyson 🤬 <mtyson> |
| Component: | WebService | Assignee: | Matt Tyson 🤬 <mtyson> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.4 | CC: | huiwang, mtahir, qgong |
| Target Milestone: | 5.0 | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 5.0.3.rh11 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-10-24 01:20:09 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Matt Tyson 🤬
2016-09-23 00:23:20 UTC
Tested on QA environments(5.0.3-rh8)
Result: Pass
1.Try to update product object:
xmlrpc.RedHat.product_update_objects({'versions': [{'is_active': False, 'id': 3938, 'name': 'bne_test_update_1Kgb'}], 'Bugzilla_login': 'admin1', 'Bugzilla_password': '*****'})
==> <Fault -32000: 'Can\'t locate object method "set_name" via package "Bugzilla::Version" at /loader/0x7f721adcc2a0/Bugzilla/Extension/RedHat/WebService/Bugzilla.pm line 848.\n'> <type 'exceptions.Exception'>
Tested on QA environments(5.0.3-rh9)
Result: Failed
Steps:
1.Try to update object disable.
xmlrpc.RedHat.product_update_objects({'versions': [{'is_active': False, 'id': 3960, 'name': 'bne_test_update_kmTT'}], 'Bugzilla_login': 'admin1', 'Bugzilla_password': '*****'})
<Fault -32000: 'Can\'t locate object method "set_is_active" via package "Bugzilla::Version" at /loader/0x7fd03c709c08/Bugzilla/Extension/RedHat/WebService/Bugzilla.pm line 857.\n'> <type 'exceptions.Exception'>
Looks like version has a different subname for this ...
Bugzilla/Version.pm:sub set_isactive { $_[0]->set('isactive', $_[1]); }
Vs
Bugzilla/Product.pm:sub set_is_active { $_[0]->set('isactive', $_[1]); }
Tested on QA environment(5.0.3-rh11) Result: Pass |