Opened 10 years ago

Closed 10 years ago

#754 closed defect (fixed)

Server crashes

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

Description

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 (4)

comment:1 by ak19, 10 years ago

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.

comment:2 by sjm84, 10 years ago

Milestone: 2.85 Release2.86 Release

comment:3 by ak19, 10 years ago

Owner: changed from nobody to ak19
Status: newassigned

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).

comment:4 by ak19, 10 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.