Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can i login to https://landfill.bugzilla.org using bugzilla's REST Api ?

347 views
Skip to first unread message

eran...@gmail.com

unread,
Jun 22, 2015, 2:23:53 PM6/22/15
to
In Bugzilla docs : https://wiki.mozilla.org/Bugzilla:REST_API
There's an example of how to make a login request :
'https://bugzilla.mozilla.org/rest/login?login=username&password=password'


I wan't to develop against the Bugzilla test server 'Landfill' and created a user there : https://landfill.bugzilla.org


I read that Mozilla is asking not to pollute the https://bugzilla.mozilla.org with test bugs.




In my code

this works : with the username and password of my Mozilla account


var url = 'https://bugzilla.mozilla.org/rest/login?login=XX...@gmail.com&password=XXXXXXXX';


my attempt to login in to 'https://landfill.bugzilla.org' : with the user name and of the account i created in landfill


var urlLandFill = 'https://landfill.bugzilla.org/rest/login?login=XXXX...@gmail.com&password=XXXXXXX';

this results in a 404 error code :

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /rest/login was not found on this server.</p>
</body></html>


Could it be that landfill does not expose the same API ?
I remmber doing this when i began developing my app to get some bug i know is in the bug list in landfill it also returns 404 .

'https://landfill.bugzilla.org/rest/bug/947'


To summerize this all up .

1) does https://landfill.bugzilla.org/ expose the same rest api as https://bugzilla.mozilla.org


2) Is developing an app against the landfill test server even possible ( well if it does not expose the api .. i'm guessing no ..) ?

3) Are there other test servers ?

4) If i install my own , would it be installed with the files exposing that api ? i would expect so but for some reason landfill doesn't ..

*I think landfill use to indeed expose it maybe something went wrong lately ..

Thorsten Schöning

unread,
Jun 22, 2015, 3:58:05 PM6/22/15
to support-...@lists.mozilla.org
Guten Tag eran...@gmail.com,
am Montag, 22. Juni 2015 um 20:23 schrieben Sie:

> I wan't to develop against the Bugzilla test server 'Landfill' and
> created a user there : https://landfill.bugzilla.org

Looks like you made a small mistake: That url is NOT a concrete
Bugzilla installation at all, but just some (static?) web content
providing some instructions. What you want is the behind the links
presented on that page, e.g. the following:

> https://landfill.bugzilla.org/bugzilla-tip/rest/login

And if I GET this URL, I get a proper JSON response providing error
details, which looks like the API is available.

Mit freundlichen Grüßen,

Thorsten Schöning

--
Thorsten Schöning E-Mail: Thorsten....@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

0 new messages