Discussion:
Unable to access the rest apis of bugzilla
Sujeeth Kamath
2018-06-23 03:53:23 UTC
Permalink
Hello experts

I am trying to install and configure bugzilla on windows. the version is
5.0.4

i followed all the steps given here.

https://bugzilla.readthedocs.io/en/5.0/installing/iis.html. I followed all
the steps which are given

everything is working fine and i am able to access the bugzilla. I am able
to create the bugs.

However where I am facing issue is when i try access the rest webserrvices
i am getting the error " The document is not found or moved". I am not sure
what could be wrong or how i can debug this

Regards,

sujeeth
Thorsten Schöning
2018-06-23 11:15:03 UTC
Permalink
Guten Tag Sujeeth Kamath,
Post by Sujeeth Kamath
However where I am facing issue is when i try access the rest webserrvices
i am getting the error " The document is not found or moved". I am not sure
what could be wrong or how i can debug this
Make sure that you have all necessary "optional" modules installed so
that the REST-API can work at all, which is JSON-RPC and Test-Taint.
Have a look at the output of checksetup.pl.

Additionally, have a look at the access and/or error log of your web
server and provide some example requests you are doing. Those might
simply be wrong.

Mit freundlichen Grüßen,

Thorsten Schöning
--
Thorsten Schöning E-Mail: ***@AM-SoFT.de
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
Thorsten Schöning
2018-06-26 07:04:09 UTC
Permalink
Guten Tag Sujeeth Kamath,
The optional modules are also installed but the
checksetup.plfials to recognize few of them.
Some of those optional modules are known to not be available for
Windows, so I doubt you have installed all of them. The ones you need
for REST seem to be available, though.
I am attaching the
screenshot of the checksetup.plresponse.
Please don't attach screenshots for such things next time, you could
have easily copied the text itself. That is far better for search
engines and stuff, more readable and this list normally removes most
attachments anyway.
I am successfully able to
access , login bugzilla , however unable to access any rest.cgi resources
Did you have a look at your error and access log? You have been asked
to provide example requests to the API as well.

Mit freundlichen Grüßen,

Thorsten Schöning
--
Thorsten Schöning E-Mail: ***@AM-SoFT.de
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
Sujeeth Kamath
2018-06-26 23:47:06 UTC
Permalink
Hello

Thanks for the response. I moved away from the 5.0.4 version and installed
5.1.1 version. It clearly showed me that the rest webservices are enabled
when I run the checksetup.pl. Now I am able to access the rest webservices

Regards

sujeeth
Post by Thorsten Schöning
Guten Tag Sujeeth Kamath,
The optional modules are also installed but the
checksetup.plfials to recognize few of them.
Some of those optional modules are known to not be available for
Windows, so I doubt you have installed all of them. The ones you need
for REST seem to be available, though.
I am attaching the
screenshot of the checksetup.plresponse.
Please don't attach screenshots for such things next time, you could
have easily copied the text itself. That is far better for search
engines and stuff, more readable and this list normally removes most
attachments anyway.
I am successfully able to
access , login bugzilla , however unable to access any rest.cgi resources
Did you have a look at your error and access log? You have been asked
to provide example requests to the API as well.
Mit freundlichen Grüßen,
Thorsten Schöning
--
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
_______________________________________________
support-bugzilla mailing list
https://lists.mozilla.org/listinfo/support-bugzilla
reply.
Thorsten Schöning
2018-06-27 06:59:49 UTC
Permalink
Guten Tag Sujeeth Kamath,
Post by Sujeeth Kamath
Thanks for the response. I moved away from the 5.0.4 version and installed
5.1.1 version.
That is an unstable development version not intended for production
use, anything can change and gow rong any time.
Post by Sujeeth Kamath
It clearly showed me that the rest webservices are enabled
when I run the checksetup.pl. Now I am able to access the rest webservices
To which lines of checksetup.pl are you referring exactly? Because in
general the API should work on 5.0 as well, so there might be some
difference between the new and old installation not related to
Bugzilla itself.

Mit freundlichen Grüßen,

Thorsten Schöning
--
Thorsten Schöning E-Mail: ***@AM-SoFT.de
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
Thorsten Schöning
2018-06-28 06:56:12 UTC
Permalink
Guten Tag Sujeeth Kamath,
i was mentioning to the following entries which checksetup.pl 
shows for 5.1.1 , which I did not see for 5.0.4 kindly see the
attached picture (checksetup.jpg) 
Besides Test::Taint all of those modules for REST are new requirements
and Test::Taint was available before, so I don't see any obvios reason
why REST shouldn't work in 5.0 as well.
I am facing a peculiar issue now.
Remember that 5.1 is unstable and in development.
The bugzilla page loads fine.
However when I try to login it throws error that password is
invalid.
The exact error message might be of help, because while unlikely, it
might e.g. refer to the password used by Bugzilla to connect to the
database instead of the current user logging in.
I tried all the options. when I run the checksetup.pl i
passed in the admin user id as admin and provided a simple password.
Same as before, the exacr command line might be of help as well.
checksetup.pl completed without any error. However admin login is
failing. I tried installing the db serveral times but the result is the same. 
Make sure that checksetup.pl and what your browser accesses are really
the same installation, e.g. by temporarily removing the file
"localconfig" from what you believe is the Bugzilla folder of what you
access using the browser. It shouldn't work afterwards anynmore, if it
still does, you work on multiple different Bugzillas.

If you are sure to only have one installation and checksetup.pl with
--reset-password doesn't work, you might have found a bug in the
development branch and either need to debug this further or report a
bug.

https://www.bugzilla.org/developers/reporting_bugs.html

Additionally you can always drop your database and start from scratch,
if it worked once, it should work again.

Mit freundlichen Grüßen,

Thorsten Schöning
--
Thorsten Schöning E-Mail: ***@AM-SoFT.de
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
Loading...