Bugzilla 3.5 Advanced Search Breaks When Bugzilla Reverse Proxied
April 21st, 2009
I recently upgraded my bugzilla installation to 3.5 to find my Eclipse-mylyn integration had broken.
After some traffic inspection and a look at buglist.cgi, I found that new code was added to “clean” advanced bug queries. This code cleans the query, then performs a redirect to the new clean query using the correct bugzilla hostname but using the local webserver port. Because I was proxying traffic to my actual bugzilla server through another server on a different port, this redirect was invalid.
I fixed this by commenting out the following code in buglist.cgi:
1 2 3 4 5 6 7 | # If query was POSTed, clean the URL from empty parameters and redirect back to # itself. This will make advanced search URLs more tolerable. #if ($cgi->request_method() eq 'POST') { # $cgi->clean_search_url(); # print $cgi->redirect(-url => $cgi->self_url()); # exit; #} |
I’ll try to actually fix the redirect tomorrow to take advantage of the cleanup.