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

Bugzilla: Help with setting up RestAPI in ver 5.0.2

439 views
Skip to first unread message

Chris Rose

unread,
Apr 22, 2016, 4:30:45 PM4/22/16
to support-...@lists.mozilla.org
Hello,

I've been given the task of setting up the Rest API in Bugzilla 5.0.2. It's not clear from the documentation
how this is done.

Is there, or could someone please describe the steps to enable and use the Rest API in Bugzilla 5.0.2?

For example, after enabling Bugzilla's Rest API on our Server would like to use a tool like Fiddler or Postman
to submit HTTP requests via a URI to our internal installation of Bugzilla to perform , GET, POST, PUT, and DELETE.


Thanks in advance,
Chris.


________________________________
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information or materials otherwise protected by law. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. This communication does not reflect an intention by the sender to conduct a transaction or make any agreement by electronic means, unless clearly so stated. The integrity and security of this message cannot be guaranteed on the Internet. Finally, the recipient should check this email and any attachments for the presence of viruses. The sender accepts no liability for any damage caused by any virus transmitted by this email.

Thorsten Schöning

unread,
Apr 23, 2016, 6:15:09 AM4/23/16
to support-...@lists.mozilla.org
Guten Tag Chris Rose,
am Freitag, 22. April 2016 um 22:30 schrieben Sie:

> I've been given the task of setting up the Rest API in Bugzilla
> 5.0.2. It's not clear from the documentation
> how this is done.

It's automatically available if all needed packages are available.
This is checked at runtime and you can check it using checksetup.pl
looking at the optional modules. If you are unable or don't want to
install or optional modules, you currently need to look at
Bugzilla::Install::Requrements::OPTIONAL_MODULES for those needed for
REST support.

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

Chris Rose

unread,
Apr 25, 2016, 11:01:47 AM4/25/16
to support-...@lists.mozilla.org
Hello,

I've been given the task of setting up the Rest API in Bugzilla 5.0.2. It's not clear from the documentation
how this is done.

Chris Rose

unread,
Apr 25, 2016, 2:53:27 PM4/25/16
to support-...@lists.mozilla.org, tscho...@am-soft.de
Hi Thorsten,

I just want to get the REST API working whatever I have to install. Although your answer is unclear as is the Bugzilla documentation about setting up the Bugzilla REST API.

So, for example, in my browser I would type:

"http://[my_installation_bugzilla_root]/rest/bug/1" which should give me a response back from my Ubuntu server with the details of what "bug 1" is. Do you understand?

You say: "This is checked at runtime and you can check it using checksetup.pl looking at the optional modules. If you are unable or don't want to install or optional modules, you currently need to look at Bugzilla::Install::Requrements::OPTIONAL_MODULES for those needed for REST support."

Again, all I need is the commands to type in at an Ubuntu command line to get the REST API setup correctly so it responds as I indicated above.

So, when you say "you currently need to look at Bugzilla::Install::Requirements::OPTIONAL_MODULES for those needed for REST support".

What does that mean? Please provide all the Steps and commands needed to get REST API working. And please have someone update the Bugzilla documentation as not to confuse someone when it
says the new REST API is the one to use; don't use BzAPI as it will be deprecated soon. Then in the following paragraph say the new REST API has not been shipped with new Bugzilla, and to use BzAPI. What!?

Thank you,
Chris.


-----Original Message-----
From: support-bugzilla [mailto:support-bugzilla-bounces+crose=haasc...@lists.mozilla.org] On Behalf Of support-bugz...@lists.mozilla.org
Sent: Saturday, April 23, 2016 5:00 AM
To: support-...@lists.mozilla.org
Subject: support-bugzilla Digest, Vol 124, Issue 15

Send support-bugzilla mailing list submissions to
support-...@lists.mozilla.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.mozilla.org/listinfo/support-bugzilla
or, via email, send a message with subject or body 'help' to
support-bugz...@lists.mozilla.org

You can reach the person managing the list at
support-bug...@lists.mozilla.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of support-bugzilla digest..."


Today's Topics:

1. Re: Bugzilla: Help with setting up RestAPI in ver 5.0.2
(Thorsten Sch?ning)
2. Re: checksetup.pl can't find installed Perl scripts DBI and
Email::Send (Thorsten Sch?ning)
3. Re: Problem creating a second instance in Bugzilla 5
(Thorsten Sch?ning)


----------------------------------------------------------------------

Message: 1
Date: Sat, 23 Apr 2016 12:14:39 +0200
From: Thorsten Sch?ning <tscho...@am-soft.de>
To: "support-...@lists.mozilla.org"
<support-...@lists.mozilla.org>
Subject: Re: Bugzilla: Help with setting up RestAPI in ver 5.0.2
Message-ID: <40602349.20...@am-soft.de>
Content-Type: text/plain; charset=windows-1250

Guten Tag Chris Rose,
am Freitag, 22. April 2016 um 22:30 schrieben Sie:

> I've been given the task of setting up the Rest API in Bugzilla 5.0.2.
> It's not clear from the documentation how this is done.

It's automatically available if all needed packages are available.
This is checked at runtime and you can check it using checksetup.pl looking at the optional modules. If you are unable or don't want to install or optional modules, you currently need to look at Bugzilla::Install::Requrements::OPTIONAL_MODULES for those needed for REST support.

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



------------------------------

Message: 2
Date: Sat, 23 Apr 2016 12:26:03 +0200
From: Thorsten Sch?ning <tscho...@am-soft.de>
To: support-...@lists.mozilla.org
Subject: Re: checksetup.pl can't find installed Perl scripts DBI and
Email::Send
Message-ID: <1618898453.2...@am-soft.de>
Content-Type: text/plain; charset=windows-1250

Guten Tag hpolc...@gmail.com,
am Freitag, 22. April 2016 um 22:59 schrieben Sie:

> I'm installing Bugzilla 4.0 on Ubuntu 14 LTS (the older Bugzilla
> version is for transferring an existing installation) with perl
> v5.18.2

Would you like to be more detailed on that? Bugzilla by default can update the DB and data etc. of an older installation with a current version of the program code. You don't need a running older version, just provide the DB dump, data folder and such.

> [...]any upgrade you also need to do can then be done as a separate
> step. But if you do install a newer version, things should still work.

http://bugzilla.readthedocs.org/en/latest/installing/moving.html

So if you have trouble for any reason getting an older version to work, it may be worth it skipping this process.

If "transferring" means you copied the whole bugzilla installation directory from an older system, backup its lib folder just to make sure, but afterwards directly clear it and try again. This folder may contain private system specific compiled binaries and such stuff which may break things on your new installation and it has precedence over system wide packages by design. That's why you should always prefer using your package manager instead of install-module.pl first.

> Fetching with LWP:
> http://mirror.hiwaay.net/CPAN/authors/01mailrc.txt.gz
> <hangs here>

Looks like some network related error.

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



------------------------------

Message: 3
Date: Sat, 23 Apr 2016 12:33:50 +0200
From: Thorsten Sch?ning <tscho...@am-soft.de>
To: support-...@lists.mozilla.org
Subject: Re: Problem creating a second instance in Bugzilla 5
Message-ID: <3110235155.2...@am-soft.de>
Content-Type: text/plain; charset=iso-8859-1

Guten Tag Amejia,
am Freitag, 22. April 2016 um 22:23 schrieben Sie:

> If the DB is upgraded that will be great, something I didn't know and
> now is a plus. I checked the data folder of the B423 installation and
> it's 3MB size, the "attach_data" table is 592 MB, which tell me that
> all the attachments were stored in the DB.

Its not only about attachments, the old installation may contain statistics in that folder and such as well. To make it clear, you need and want the whole data directory else you might loose data:

http://bugzilla.readthedocs.org/en/latest/installing/moving.html

> The reason why we want to have another Bugzilla instance is because
> our small organization is changing administrative structure, name and
> the type of projects we will be handling from now on.

That's not necessarily an arg against using the old data. You can still create new products and mark the old ones as closed for bug entry and such. With your current approach you will need to "forever"
support two installations, with two independent user profiles with people changing their password in only one installation, the need to login in two distinct installations at all etc. Maybe you can even simply rename already available products with/without moving the bugs.

I'm not saying your approach is wrong, I just want to give some hints to think about, because once you started with two installations, you won't easily get them merged again.

> So I will run checksetup.pl again with the PROJECT variable set to
> b423h, import the old DB data in dbname1 and try to access:

Order is important, you first need to import the database and afterwards run checksetup.pl twice, because that needs to recognize the already existing data in the DB and such.

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



------------------------------

Subject: Digest Footer

_______________________________________________
support-bugzilla mailing list
support-...@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-bugzilla


------------------------------

End of support-bugzilla Digest, Vol 124, Issue 15
*************************************************

Thorsten Schöning

unread,
Apr 26, 2016, 2:54:53 AM4/26/16
to support-...@lists.mozilla.org
Guten Tag Chris Rose,
am Montag, 25. April 2016 um 20:52 schrieben Sie:

> I just want to get the REST API working whatever I have to install.

Then simply install all optional modules.

> Again, all I need is the commands to type in at an Ubuntu command
> line to get the REST API setup correctly so it responds as I indicated above.

"sudo apt-get install ...", where ... is the name of the optional
module checksetup.pl tells you is missing. If apt doesn't provide a
optional module, checksetup.pl will tell you an alternative using
install-module.pl. Which name exactly you need per module is something
you need to find using your search engine of choice, I don't know how
the needed packages are named under your Ubuntu.

> So, when you say "you currently need to look at
> Bugzilla::Install::Requirements::OPTIONAL_MODULES for those needed for REST support".

You need to look there only if you don't want or are able to install
all optional modules, simply because checksetup.pl doesn't tell you
which optional module is used for what currently. It only provides a
list of optional modules without their purpose.

> And please have someone update the Bugzilla documentation

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

> as not to confuse someone when it
> says the new REST API is the one to use; don't use BzAPI as it will
> be deprecated soon. Then in the following paragraph say the new REST
> API has not been shipped with new Bugzilla, and to use BzAPI. What!?

I can't read such statements from the docs, those are clearly saying
to use the REST API and only additionally mention that a version 2 is
under development currently.

https://bugzilla.readthedocs.org/en/5.0/integrating/apis.html#rest-v2

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

Chris Rose

unread,
Apr 26, 2016, 12:38:22 PM4/26/16
to support-...@lists.mozilla.org, tscho...@am-soft.de
Guten Tag Thorsten,

Thanks for your quick reply. I did install all optional modules listed after running 'checksetup.pl'. And there were some modules that were
listed which couldn't be found. The Bugzilla help docs do not say you must install optional modules (or which ones?) to get REST API working.

Luckily, I did find out what the problem is. When I used the URI specified in the help docs (e.g. http://[bugzilla_root]/rest/bug/...) , the
Bugzilla REST API was unable to resolve the URL. When I type in 'http://[Bugzilla_root]/rest.cgi/bug...', it works!. So the remaining problem
Is how to setup rewrite on Ubuntu so when I type a URI without the 'CGI' extension it will work.? At least now I am able to issue GET requests.

However,, when I perform a PUT operation on a bug, the data is not updated even though Bugzilla RESTAPI reports no error: Do you know
why this might be? How do I get the Bugzilla REST API to successfully complete PUT operations? Also, are they supported for Custom fields?

Thanks,
Chris.


-----Original Message-----
From: support-bugzilla [mailto:support-bugzilla-bounces+crose=haasc...@lists.mozilla.org] On Behalf Of support-bugz...@lists.mozilla.org
Sent: Tuesday, April 26, 2016 5:00 AM
To: support-...@lists.mozilla.org
Subject: support-bugzilla Digest, Vol 124, Issue 18

Send support-bugzilla mailing list submissions to
support-...@lists.mozilla.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.mozilla.org/listinfo/support-bugzilla
or, via email, send a message with subject or body 'help' to
support-bugz...@lists.mozilla.org

You can reach the person managing the list at
support-bug...@lists.mozilla.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of support-bugzilla digest..."


Today's Topics:

1. Re: Bugzilla: Help with setting up RestAPI in ver 5.0.2
(Thorsten Sch?ning)
2. How to configure visibility values more conveniently for a
custom field? (Cathy Shi)


----------------------------------------------------------------------

Message: 1
Date: Tue, 26 Apr 2016 08:54:22 +0200
From: Thorsten Sch?ning <tscho...@am-soft.de>
To: "support-...@lists.mozilla.org"
<support-...@lists.mozilla.org>
Subject: Re: Bugzilla: Help with setting up RestAPI in ver 5.0.2
Message-ID: <381207524.20...@am-soft.de>
Content-Type: text/plain; charset=windows-1250

Guten Tag Chris Rose,
am Montag, 25. April 2016 um 20:52 schrieben Sie:

> I just want to get the REST API working whatever I have to install.

Then simply install all optional modules.

> Again, all I need is the commands to type in at an Ubuntu command line
> to get the REST API setup correctly so it responds as I indicated above.

"sudo apt-get install ...", where ... is the name of the optional module checksetup.pl tells you is missing. If apt doesn't provide a optional module, checksetup.pl will tell you an alternative using install-module.pl. Which name exactly you need per module is something you need to find using your search engine of choice, I don't know how the needed packages are named under your Ubuntu.

> So, when you say "you currently need to look at
> Bugzilla::Install::Requirements::OPTIONAL_MODULES for those needed for REST support".

You need to look there only if you don't want or are able to install all optional modules, simply because checksetup.pl doesn't tell you which optional module is used for what currently. It only provides a list of optional modules without their purpose.

> And please have someone update the Bugzilla documentation

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

> as not to confuse someone when it
> says the new REST API is the one to use; don't use BzAPI as it will be
> deprecated soon. Then in the following paragraph say the new REST API
> has not been shipped with new Bugzilla, and to use BzAPI. What!?

I can't read such statements from the docs, those are clearly saying to use the REST API and only additionally mention that a version 2 is under development currently.

https://bugzilla.readthedocs.org/en/5.0/integrating/apis.html#rest-v2

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



------------------------------

Message: 2
Date: Tue, 26 Apr 2016 18:41:15 +0800 (CST)
From: "Cathy Shi" <sparkl...@126.com>
To: support-...@lists.mozilla.org
Subject: How to configure visibility values more conveniently for a
custom field?
Message-ID: <3098cf3d.c626.1545228a32...@126.com>
Content-Type: text/plain; charset=GBK

Hello,


I'm using bugzilla 4.2.
My situation is: I have a field named 'component' in my system, which values like below:


ProjectA:Test Request
ProjectA:QA Issues
ProjectA:Customer Issues
ProjectB:Test Request
ProjectB:QA Issues
ProjectB:Customer Issues
ProjectC:....


And I have a custom field named 'cf_keepwatching', I would like it appears only when the value of 'component' matches 'Test Request'.
The problem is: if I have 50 projects, then I will have 50 test requests as listed in components, and I have to click 50 times to select them all.


I wonder if any way to configure the visibility of a custom field more conveniently, e.g. it appears if the value of the 'component' field contains 'Test Request', or it appears if the 'Summary' field contains a specific string. Any feasible way for this?


Thanks and Regards,
Cathy




------------------------------

Subject: Digest Footer

_______________________________________________
support-bugzilla mailing list
support-...@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-bugzilla


------------------------------

End of support-bugzilla Digest, Vol 124, Issue 18

Thorsten Schöning

unread,
Apr 26, 2016, 1:19:03 PM4/26/16
to support-...@lists.mozilla.org
Guten Tag Chris Rose,
am Dienstag, 26. April 2016 um 18:37 schrieben Sie:

> So the remaining problem
> Is how to setup rewrite on Ubuntu so when I type a URI without the
> 'CGI' extension it will work.? At least now I am able to issue GET requests.

That shouldn't be necessary, have a look at the bottom of the
.htaccess file in your Bugzilla installation dir. Your web server only
needs to provide mod_rewrite.

> However,, when I perform a PUT operation on a bug, the data is not
> updated even though Bugzilla RESTAPI reports no error: Do you know
> why this might be?

No, what does "not updated" mean? Do you don't get the expected return
value or are no changes applied tot he DB?

> Currently, some fields are not tracked in changes: comment,
> comment_is_private, and work_time. This means that they will not
> show up in the return value even if they were successfully updated.
> This may change in a future version of Bugzilla.

https://bugzilla.readthedocs.org/en/5.0/api/core/v1/bug.html#update-bug

If the DB isn't updated, have a look at the web server logs, if
there's nothing printed you need to debug Bugzilla's code path. Which
isn't that easy because I think it still doesn't use any logging
facility currently.

> Also, are they supported for Custom fields?

Not if it's not documented.

https://bugzilla.readthedocs.org/en/5.0/api/index.html#apis

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

Chris Rose

unread,
Apr 27, 2016, 5:07:15 PM4/27/16
to support-...@lists.mozilla.org, tscho...@am-soft.de

Hello Thorsten,

As you suggested, I added the following to my .htaccess file.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteOptions inherit
RewriteRule ^rest/(.*)$ rest.cgi/$1 [NE]
</IfModule>

Typing this URL in my browser

http://10.1.1.128/rest/bug

I get this:

Not Found

The requested URL /rest/bug was not found on this server.

Apache/2.4.7 (Ubuntu) Server at 10.1.1.128 Port 80

If I type in:

http://10.1.1.128/rest.cgi/bug

it works fine.


Any thoughts on how-to be able to use Bugzilla RESTFUL URI syntax (omitting .cgi extension) ?

Thanks,
Chris.



-----Original Message-----
From: support-bugzilla [mailto:support-bugzilla-bounces+crose=haasc...@lists.mozilla.org] On Behalf Of support-bugz...@lists.mozilla.org
Sent: Wednesday, April 27, 2016 3:04 AM
To: support-...@lists.mozilla.org
Subject: support-bugzilla Digest, Vol 124, Issue 19

Send support-bugzilla mailing list submissions to
support-...@lists.mozilla.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.mozilla.org/listinfo/support-bugzilla
or, via email, send a message with subject or body 'help' to
support-bugz...@lists.mozilla.org

You can reach the person managing the list at
support-bug...@lists.mozilla.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of support-bugzilla digest..."


Today's Topics:

1. Help to understand (R.Srinivasan)
2. Re: Help to understand (Thorsten Sch?ning)
3. Re: Bugzilla: Help with setting up RestAPI in ver 5.0.2
(Chris Rose)
4. Re: Bugzilla: Help with setting up RestAPI in ver 5.0.2
(Thorsten Sch?ning)
5. Blocking users to raise a bugs - Help required
(Vinoth Natarajan -X (vinnatar - WIPRO LIMITED at Cisco))
6. Re: Blocking users to raise a bugs - Help required
(Thorsten Sch?ning)


----------------------------------------------------------------------

Message: 1
Date: Tue, 26 Apr 2016 16:43:40 +0530
From: "R.Srinivasan" <rsrin...@ebtech.biz>
To: <support-...@lists.mozilla.org>
Subject: Help to understand
Message-ID: <005101d19fac$b3430440$19c90cc0$@ebtech.biz>
Content-Type: text/plain; charset="us-ascii"

Dear Sir



I was trying to install and configure the Bugzilla for a demo to my management. Is the apache server is to be installed on the system in order to install the Bugzilla application. My Windows operating system is Windows
2008 with workgroup edition. Is the apache server can be installed. Can you kindly help.



Thanks & Regards



R.Srinivasan

Head-Resources (Human and Infrastructure)

cid:image0...@01CD518B.18635740

Enterprise Business Technologies Pvt. Ltd.

MUMBAI || DUBAI

13 & 14, Samruddhi Venture Park, 1st Floor, Central MIDC Road, MIDC - Andheri (East),Mumbai 400093, INDIA.

||+91-22-67257310
||http://www.seeklogo.com/images/S/Skype-logo-3966BB87B0-seeklogo.com.gi
||f
rsrinivsan||Web: <http://www.ebtech.biz/> www.ebtech.biz ||

Description: Description: Description: Description:
cid:image0...@01CC5D92.09553810 Description: Description: Description:
Description: cid:image0...@01CC5D92.09553810
cid:image0...@01CFED4A.7B94DCF0
http://www.ebtech.biz/images/partners/logo_elva.jpg
Infosoft-Nav-HospitalityPlatinum_White logo email

P Please consider the environment before printing this email This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which it is addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named.

If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Disclaimer:- Computer viruses can be transmitted by email.
Recipients should check this email for the presence of any viruses.
Enterprise Business Technologies Pvt. Ltd Will not accept any liability for any damage caused by any virus transmitted by this email.







------------------------------

Message: 2
Date: Tue, 26 Apr 2016 17:49:43 +0200
From: Thorsten Sch?ning <tscho...@am-soft.de>
To: support-...@lists.mozilla.org
Subject: Re: Help to understand
Message-ID: <559009856.20...@am-soft.de>
Content-Type: text/plain; charset=windows-1250

Guten Tag R.Srinivasan,
am Dienstag, 26. April 2016 um 13:13 schrieben Sie:

> I was trying to install and configure the Bugzilla for a demo to my
> management.

Demo system are available online as well:

http://landfill.bugzilla.org

> Is the apache server is to be installed on the system in order to
> install the Bugzilla application.

If this is a question: Yes.

https://bugzilla.readthedocs.org/en/5.0/installing/index.html

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



------------------------------

Message: 3
Date: Tue, 26 Apr 2016 09:37:47 -0700
From: Chris Rose <cr...@haascnc.com>
To: "support-...@lists.mozilla.org"
<support-...@lists.mozilla.org>
Cc: "tscho...@am-soft.de" <tscho...@am-soft.de>
Subject: Re: Bugzilla: Help with setting up RestAPI in ver 5.0.2
Message-ID:
<5BFAB0E355DD7945B0E21...@HAASEXMB.haasauto.local>
Content-Type: text/plain; charset="us-ascii"
Guten Tag Chris Rose,
am Montag, 25. April 2016 um 20:52 schrieben Sie:

> I just want to get the REST API working whatever I have to install.

Then simply install all optional modules.

> Again, all I need is the commands to type in at an Ubuntu command line
> to get the REST API setup correctly so it responds as I indicated above.

"sudo apt-get install ...", where ... is the name of the optional module checksetup.pl tells you is missing. If apt doesn't provide a optional module, checksetup.pl will tell you an alternative using install-module.pl. Which name exactly you need per module is something you need to find using your search engine of choice, I don't know how the needed packages are named under your Ubuntu.

> So, when you say "you currently need to look at
> Bugzilla::Install::Requirements::OPTIONAL_MODULES for those needed for REST support".

You need to look there only if you don't want or are able to install all optional modules, simply because checksetup.pl doesn't tell you which optional module is used for what currently. It only provides a list of optional modules without their purpose.

> And please have someone update the Bugzilla documentation

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

> as not to confuse someone when it
> says the new REST API is the one to use; don't use BzAPI as it will be
> deprecated soon. Then in the following paragraph say the new REST API
> has not been shipped with new Bugzilla, and to use BzAPI. What!?

I can't read such statements from the docs, those are clearly saying to use the REST API and only additionally mention that a version 2 is under development currently.

https://bugzilla.readthedocs.org/en/5.0/integrating/apis.html#rest-v2

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

------------------------------

Message: 4
Date: Tue, 26 Apr 2016 19:18:30 +0200
From: Thorsten Sch?ning <tscho...@am-soft.de>
To: "support-...@lists.mozilla.org"
<support-...@lists.mozilla.org>
Subject: Re: Bugzilla: Help with setting up RestAPI in ver 5.0.2
Message-ID: <102572306.20...@am-soft.de>
Content-Type: text/plain; charset=windows-1250

Guten Tag Chris Rose,
am Dienstag, 26. April 2016 um 18:37 schrieben Sie:

> So the remaining problem
> Is how to setup rewrite on Ubuntu so when I type a URI without the
> 'CGI' extension it will work.? At least now I am able to issue GET requests.

That shouldn't be necessary, have a look at the bottom of the .htaccess file in your Bugzilla installation dir. Your web server only needs to provide mod_rewrite.

> However,, when I perform a PUT operation on a bug, the data is not
> updated even though Bugzilla RESTAPI reports no error: Do you know why
> this might be?

No, what does "not updated" mean? Do you don't get the expected return value or are no changes applied tot he DB?

> Currently, some fields are not tracked in changes: comment,
> comment_is_private, and work_time. This means that they will not show
> up in the return value even if they were successfully updated.
> This may change in a future version of Bugzilla.

https://bugzilla.readthedocs.org/en/5.0/api/core/v1/bug.html#update-bug

If the DB isn't updated, have a look at the web server logs, if there's nothing printed you need to debug Bugzilla's code path. Which isn't that easy because I think it still doesn't use any logging facility currently.

> Also, are they supported for Custom fields?

Not if it's not documented.

https://bugzilla.readthedocs.org/en/5.0/api/index.html#apis

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



------------------------------

Message: 5
Date: Wed, 27 Apr 2016 09:47:08 +0000
From: "Vinoth Natarajan -X (vinnatar - WIPRO LIMITED at Cisco)"
<vinn...@cisco.com>
To: "support-...@lists.mozilla.org"
<support-...@lists.mozilla.org>
Cc: "Satyavrat Prabhune \(prabhune\)" <prab...@cisco.com>
Subject: Blocking users to raise a bugs - Help required
Message-ID: <c601f6f376634050...@XCH-RCD-009.cisco.com>
Content-Type: text/plain; charset="us-ascii"

Hello,
We use Bugzilla as a bug tracking tool for our Cisco TMS, TMSXE, TMSPE and TMSXE products.
Our requirement now is to block users from raising bugs for this product in Bugzilla. May be a banner or label need to appear if a user selects any of these products.

Can you please help on this. I can provide any more details required.

Thanks,
Vinoth N
Release Manager | Cisco Video Infrastructure |


------------------------------

Message: 6
Date: Wed, 27 Apr 2016 12:03:20 +0200
Subject: Re: Blocking users to raise a bugs - Help required
Message-ID: <853935024.20...@am-soft.de>
Content-Type: text/plain; charset=windows-1250

Guten Tag Vinoth Natarajan -X (vinnatar - WIPRO LIMITED at Cisco), am Mittwoch, 27. April 2016 um 11:47 schrieben Sie:

> Our requirement now is to block users from raising bugs for this
> product in Bugzilla.

https://bugzilla.readthedocs.org/en/5.0/administering/parameters.html#group-security
https://bugzilla.readthedocs.org/en/5.0/administering/groups.html

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



------------------------------

Subject: Digest Footer

_______________________________________________
support-bugzilla mailing list
support-...@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-bugzilla


------------------------------

End of support-bugzilla Digest, Vol 124, Issue 19
*************************************************

Thorsten Schöning

unread,
Apr 28, 2016, 2:07:48 AM4/28/16
to support-...@lists.mozilla.org
Guten Tag Chris Rose,
am Mittwoch, 27. April 2016 um 23:06 schrieben Sie:

> Hello Thorsten,

You should change your mailing list subscription to not get an
overview of all messages to which you respond afterwards. Your mails
are unnecessary large this way.

> As you suggested, I added the following to my .htaccess file.

I didn't suggest that, the default .htaccess of Bugzilla already
contains a rewrite rule for its REST endpoint. What I said is that you
need to check if mod_rewrite is enabled for your Bugzilla
installation, else the rewrite rule is not used of course.

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

Wayne Allen

unread,
Apr 28, 2016, 11:57:02 AM4/28/16
to
On Wednesday, April 27, 2016 at 11:07:48 PM UTC-7, Thorsten Schöning wrote:
> Guten Tag Chris Rose,
> am Mittwoch, 27. April 2016 um 23:06 schrieben Sie:
>
> > Hello Thorsten,
>
> You should change your mailing list subscription to not get an
> overview of all messages to which you respond afterwards. Your mails
> are unnecessary large this way.
>
> > As you suggested, I added the following to my .htaccess file.
>
> I didn't suggest that, the default .htaccess of Bugzilla already
> contains a rewrite rule for its REST endpoint. What I said is that you
> need to check if mod_rewrite is enabled for your Bugzilla
> installation, else the rewrite rule is not used of course.

I had to remove the "RewriteOptions inherit" line as it conflicted with other config.
0 new messages