Understanding bugzilla code structure

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Understanding bugzilla code structure

Gaurav Kamble
Hi,

Whenever i looked into bugzilla folders, i saw so much folders which
contains .cgi and .pl files.

I really want to understand the bugzilla code structure for ex. when a put
a bug no. in search box which code executes. What is the flow ?

I don't understand its folder structure.
Can anybody help on this ?


Thanks,
Gaurav
_______________________________________________
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
|

Re: Understanding bugzilla code structure

Emmanuel Seyman-3
* Gaurav Kamble [30/10/2017 00:03] :
>
> Whenever i looked into bugzilla folders, i saw so much folders which
> contains .cgi and .pl files.

All .cgi files are in the root folder and there are only a few .pl elsewhere.
Are you thinking of .pm files?

> I really want to understand the bugzilla code structure for ex. when a put
> a bug no. in search box which code executes. What is the flow ?

Entering 201069 in the quicksearch box and pressing 'Search' will take you to
buglist.cgi?quicksearch=201069 . This does a lot of things (buglist.cgi is
complex) but one of those is loading the module Bugzilla::Search::Quicksearch
and calling the quicksearch() function. One of the first things that function
does is check if the quicksearch parameter is a number in which case it calls
the _bug_numbers_only() function. This redirects you to show_bug.cgi?id=201069
which will display the bug information.

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