Ticket #754 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

Server crashes

Reported by: ak19 Owned by: ak19
Priority: moderate Milestone: 2.86 Release
Component: Greenstone2 Runtime Severity: major
Keywords: Cc:


From the mailing list. A message from Tanya on 21/05/2011 [greenstone-users] problem: _httpquery_ & numbers

She wrote in:

concerning _httpquery_ function. In the version 2.81 it worked fine, but with 2.83 and 2.84 there is some problem when the query has numbers in it. Let me be more specific:

In the document display a would like to make a link on the date, so that clicking on the link retrieves other documents in the collection with the same value. The function I write goes like this:

{If}{[dc.Date], <a href="_httpquery_&q=[cgisafe:dc.Date]&fqf=DD"> [dc.Date]</a><br>} The link works and I get a list of retrieved items with the same value (for example "1999"). However, whenever I click on one of the retrieved items, the server crashes and the collection stops working. This happens only when the query was a number. Interestingly, if I look for the same date using the search function (so without the link that makes the search for me), there is no problem in opening the items from the hit list.

Change History

Changed 9 years ago by ak19

I think I fixed this now with commit 24099 (common-src/indexers/mgpp/text/GSDLQueryLex.cpp). Leaving this ticket open for a week to see whether Tanya who logged the problem gets back on how she fares with a new binary from caveat. This is to see whether the fix thoroughly addresses the problem.

Changed 9 years ago by sjm84

  • milestone changed from 2.85 Release to 2.86 Release

Changed 9 years ago by ak19

  • owner changed from nobody to ak19
  • status changed from new to assigned

Closing this now as there's been no response: assuming it fixed the bug for her as well (at least it fixed the one I was able to reproduce when debugging the code).

Changed 9 years ago by ak19

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.