Bug 528199
Summary: | Calling Bug.get is being stuck in an endless loop and never returns dues to ExternalBugs | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] Bugzilla | Reporter: | David Lawrence <dkl> | ||||
Component: | WebService | Assignee: | Noura El hawary <nelhawar> | ||||
Status: | CLOSED NEXTRELEASE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 3.4 | ||||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2009-10-28 20:37:41 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 514793 | ||||||
Attachments: |
|
Description
David Lawrence
2009-10-09 18:13:11 UTC
Created attachment 366097 [details]
v1 for fixing problem with endless loop in Bug.get
Hi Dave,
I was able to fix the problem with the endless loop of Bug.get by adding the line
$bug->{external_bugs} = $bug->external_bugs->{bugs};
to Bugzilla/WebService/Bug.pm
similar to what we have in bugzilla.getBugs and also in our 3.2 code we had it for Bug.get.
Thanks,
Noura
Thanks Noura. I am going to hold off on this review as I got the idea to rewrite the External Bugs code completely today as I was never really happy with my old implementation. The new one is more clean and more compliant with normal Bugzilla objects. I am almost done and will show what I have tomorrow. So the patch you made will probably need changing as well. Also as a side note. I am making quite a bit of changes to the hook naming that we currently use which will touch quite a few files. I am also removing hooks that we created ourselves that are not longer needed as upstream has added more. Thanks Dave Hey Dave, This seems to be working with your new external_bugs code. and the testcase t/400_webservice_bug_get_bugs.t passes successfully. Thanks, Noura Closing as this should be better now. |