/usr/lib/cgi-bin/gsearch.cgi fails with missing /usr/bin/btreeop

Bug #614847 reported by gzarkadas
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
global (Debian)
Fix Released
Unknown
global (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: global

`/usr/bin/btreeop' has been removed from the upstream (source) package since 2002 (see changelog of global's .tar.gz archive); however the .deb package's `htconfig' script, which creates `/usr/lib/cgi-bin/gsearch.cgi' during the postinst package action has not been updated to reflect this (htconfig man page dates from 1999).

Thus, `/usr/lib/cgi-bin/gsearch.cgi' fails to search for patterns entered from the web form, filling apache2 logs with lines such as this (...xxx... fields contain cleaned-up info):

-------------------------------------------------
[...date...] [error] [client 127.0.0.1] sh: /usr/bin/btreeop: not found, referer: http://localhost/...my-project-url.../mains.html
-------------------------------------------------

To resolve the bug, the offending lines of code in the `gsearch.cgi' script and `htconfig' script (that creates the former) must be changed to use the new facilities provided from the upstream (source) package.

Ubuntu release: 9.10 (Karmic Koala)
`global' release: 5.7.1-1

Tags: patch
Revision history for this message
gzarkadas (gzarkadas) wrote :

The following modification to `gsearch.cgi' (a merge of /usr/share/gtags/global.cgi.tmpl and /usr/lib/cgi-bin/gsearch.cgi plus my additions) seems to solve the issue.

Some corner cases have remained untested, but since it is a merge of previously supposed to work code, the chance of something remaining broken is low.

I attach three files:
1. The modified, now working, revision of /usr/lib/cgi-bin/gsearch.cgi (file: gsearch.cgi)
2. A unified diff of 1 with initial /usr/lib/cgi-bin/gsearch.cgi (file: diff_gsearch.cgi)
3. A unified diff of 1 with /usr/share/gtags/global.cgi.tmpl (file: diff_global.cgi.tmpl)

era (era)
tags: added: patch
Changed in global (Debian):
status: Unknown → New
Andreas Moog (ampelbein)
Changed in global (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Changed in global (Debian):
status: New → Fix Released
punit (stationearth)
Changed in global (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.