Issue with BzAPI while requesting the a Bug details using the BzAPI

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Issue with BzAPI while requesting the a Bug details using the BzAPI

buddhdev.umang
Hi Community,

For BzAPI, we need some as below :

While making a request to to BugZilla server [4.4.2] to get a bug details using below url :

http://192.168.112.158:3000/bug/835434?username=user&password=XXXX 


BzAPI converts this request URL as below and returns the list of Bugs

https://192.168.112.157/buglist.cgi?columnlist=all&ctype=csv&Bugzilla_login=user&Bugzilla_password=XXXX

BZAPI version : 82e75bdd00be

On one server with BugZilla 3.6 this is working fine while the same API folder with BugZilla version 4.4.2 is not working

Any help on this issue would be appreciated.






Thanks
Umang
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue with BzAPI while requesting the a Bug details using the BzAPI

Gervase Markham
On 03/04/17 10:48, [hidden email] wrote:
> On one server with BugZilla 3.6 this is working fine while the same API folder with BugZilla version 4.4.2 is not working

"Is not working" is not enough information to help you.

https://www.gerv.net/hacking/how-to-ask-good-questions/

Gerv
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue with BzAPI while requesting the a Bug details using the BzAPI

buddhdev.umang
In reply to this post by buddhdev.umang
Hi Grev,



Thanks for quick update.

Here the behavior/response of this API call get changed, this API call return the list of Bug.

I checked the BzAPI logs which is as below

http://192.168.112.158:3000/bug/835434?username=username&password=XXXX GET => https://192.168.112.158/buglist.cgi?columnlist=all&ctype=csv&Bugzilla_login=username&Bugzilla_password=XXXX 


here in BzAPI logs i found that the API call

"http://192.168.112.158:3000/bug/835434?username=username&password=XXXX"

gets converted in

"http://192.168.112.158:3000/bug/835434?username=username&password=XXXX GET => https://192.168.112.158/buglist.cgi?columnlist=all&ctype=csv&Bugzilla_login=username&Bugzilla_password=XXXX "

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"

thanks
Umang


On Monday, April 3, 2017 at 3:18:32 PM UTC+5:30, [hidden email] wrote:

> Hi Community,
>
> For BzAPI, we need some as below :
>
> While making a request to to BugZilla server [4.4.2] to get a bug details using below url :
>
> http://192.168.112.158:3000/bug/835434?username=user&password=XXXX 
>
>
> BzAPI converts this request URL as below and returns the list of Bugs
>
> https://192.168.112.157/buglist.cgi?columnlist=all&ctype=csv&Bugzilla_login=user&Bugzilla_password=XXXX
>
> BZAPI version : 82e75bdd00be
>
> On one server with BugZilla 3.6 this is working fine while the same API folder with BugZilla version 4.4.2 is not working
>
> Any help on this issue would be appreciated.
>
>
>
>
>
>
> Thanks
> Umang

_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue with BzAPI while requesting the a Bug details using the BzAPI

buddhdev.umang
In reply to this post by buddhdev.umang
On Monday, April 3, 2017 at 3:18:32 PM UTC+5:30, [hidden email] wrote:

> Hi Community,
>
> For BzAPI, we need some as below :
>
> While making a request to to BugZilla server [4.4.2] to get a bug details using below url :
>
> http://192.168.112.158:3000/bug/835434?username=user&password=XXXX 
>
>
> BzAPI converts this request URL as below and returns the list of Bugs
>
> https://192.168.112.157/buglist.cgi?columnlist=all&ctype=csv&Bugzilla_login=user&Bugzilla_password=XXXX
>
> BZAPI version : 82e75bdd00be
>
> On one server with BugZilla 3.6 this is working fine while the same API folder with BugZilla version 4.4.2 is not working
>
> Any help on this issue would be appreciated.
>
>
>
>
>
>
> Thanks
> Umang

Correcting the nice person name -
Gerv -

thanks
Umang
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue with BzAPI while requesting the a Bug details using the BzAPI

buddhdev.umang
In reply to this post by buddhdev.umang
Hi Community,

If anyone can help me for this issue related to BzAPI with BugZilla version 4.4.2.

Issue brief :

While getting details of single bug using BzAPI, BzAPI converts that call to bring the list of Bugs.

Is this BzAPI issue or some configuration tweak required ?

Any help would be appreciated .

Thanks
Umang



On Monday, April 3, 2017 at 3:18:32 PM UTC+5:30, [hidden email] wrote:

> Hi Community,
>
> For BzAPI, we need some as below :
>
> While making a request to to BugZilla server [4.4.2] to get a bug details using below url :
>
> http://192.168.112.158:3000/bug/835434?username=user&password=XXXX 
>
>
> BzAPI converts this request URL as below and returns the list of Bugs
>
> https://192.168.112.157/buglist.cgi?columnlist=all&ctype=csv&Bugzilla_login=user&Bugzilla_password=XXXX
>
> BZAPI version : 82e75bdd00be
>
> On one server with BugZilla 3.6 this is working fine while the same API folder with BugZilla version 4.4.2 is not working
>
> Any help on this issue would be appreciated.
>
>
>
>
>
>
> Thanks
> Umang

_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue with BzAPI while requesting the a Bug details using the BzAPI

opshubdata
In reply to this post by buddhdev.umang
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.


Thanks
Umang Buddhdev
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue with BzAPI while requesting the a Bug details using the BzAPI

Gervase Markham
In reply to this post by buddhdev.umang
On 03/04/17 11:11, [hidden email] wrote:
> here in BzAPI logs i found that the API call
>
> "http://192.168.112.158:3000/bug/835434?username=username&password=XXXX"
>
> gets converted in
>
> "http://192.168.112.158:3000/bug/835434?username=username&password=XXXX GET => https://192.168.112.158/buglist.cgi?columnlist=all&ctype=csv&Bugzilla_login=username&Bugzilla_password=XXXX "
>
> Which brings the list of Bug which is not correct.

I really have no clue why that is happening, and I wrote BzAPI. But
then, it's unmaintained software, and you really should be using a
modern Bugzilla and the proper REST API...

Gerv
_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Issue with BzAPI while requesting the a Bug details using the BzAPI

buddhdev.umang
Hi Gerv,

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.



Thanks,
Umang Buddhdev

On Tuesday, April 4, 2017 at 9:31:16 PM UTC+5:30, Gervase Markham wrote:

> On 03/04/17 11:11, [hidden email] wrote:
> > here in BzAPI logs i found that the API call
> >
> > "http://192.168.112.158:3000/bug/835434?username=username&password=XXXX"
> >
> > gets converted in
> >
> > "http://192.168.112.158:3000/bug/835434?username=username&password=XXXX GET => https://192.168.112.158/buglist.cgi?columnlist=all&ctype=csv&Bugzilla_login=username&Bugzilla_password=XXXX "
> >
> > Which brings the list of Bug which is not correct.
>
> I really have no clue why that is happening, and I wrote BzAPI. But
> then, it's unmaintained software, and you really should be using a
> modern Bugzilla and the proper REST API...
>
> Gerv

_______________________________________________
support-bugzilla mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-bugzilla
PLEASE put [hidden email] in the To: field when you reply.
Loading...