Which brings the list of Bug which is not correct.
I tested this behavior with BugZilla server 3.6 and API call has proper response while same BzAPI is pointed to BugZilla server 4.4.2 and in this case it brings the list of Bug by making a different API call "buglist.cgi"
On Monday, April 3, 2017 at 3:18:32 PM UTC+5:30, [hidden email] wrote:
On Monday, April 3, 2017 at 8:04:26 PM UTC+5:30, Thorsten Schöning wrote:
> Guten Tag [hidden email],
> am Montag, 3. April 2017 um 12:11 schrieben Sie:
> > I tested this behavior with BugZilla server 3.6 and API call has
> > proper response while same BzAPI is pointed to BugZilla server 4.4.2
> > and in this case it brings the list of Bug by making a different API call "buglist.cgi"
> I don't use BzApi and am not sure how the used framework works etc.,
> but if I was you I would start debugging in the following file. It
> seems like the reg exp doesn't match in your case for some reason an
> your request is mapped to "bug" instead of "one_bug".
> https://hg.mozilla.org/webtools/bzapi/file/tip/lib/Bugzilla/API/Controller/Bug.pm#l22 >
> Mit freundlichen Grüßen,
> Thorsten Schöning
> Thorsten Schöning E-Mail: [hidden email] > AM-SoFT IT-Systeme http://www.AM-SoFT.de/ >
> Telefon...........05151- 9468- 55
> Fax...............05151- 9468- 88
> Mobil..............0178-8 9468- 04
> AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
> AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
`Hi Thorsten Schöning ,
Thanks for sharing details where the function for single bug and list of bug is mentioned , i am checking the area in this file but API call coming before to this function as per my notion it gets converted by BzAPI some where before this.
I think ,API call to bring data for single bug gets converted to bring the list of Bug and this comes here in either of function based on regex.
Also i will test there by adding some logger for this both functions.
Re: Issue with BzAPI while requesting the a Bug details using the BzAPI
Thanks for update.
We have option to upgrade the BugZilla and use native REST but there is some limitation we can not do so.
Currently we are checking the BzAPI instance where this behavior is there (Instance A) and where it works fine (Instance B).
We have edited the Bug.pm and forcefully raised exception using confess() at both the function Bug_GET and one_bug_GET so we can have trace - list of functions being call and who decides which function needs to be called.
We have trace for positive scenario where get Bug call one_bug_get and complete trace and ideally decision to call "one_bug_get" is taken based on some regex from perl catalyst area.
Similar to this we will have trace for bug_list on instance A where we have called single bug but brings list of bugs.
Will compare both and analyze.
On Tuesday, April 4, 2017 at 9:31:16 PM UTC+5:30, Gervase Markham wrote: