LP#1537812: Patron search can time out on useless conditions user/miker/lp1537812-patron_search_timeout
authorMike Rylander <mrylander@gmail.com>
Mon, 25 Jan 2016 16:11:24 +0000 (11:11 -0500)
committerMike Rylander <mrylander@gmail.com>
Mon, 25 Jan 2016 16:11:24 +0000 (11:11 -0500)
commit9c05e6e3874a9a264056c23fd15261ccb8bc2048
treec4b32d05480f46737773b94dc0df8037af0769ba
parent67defeff2e503bb02db4f10182717c4ec044bde3
LP#1537812: Patron search can time out on useless conditions

In some situations, the patron search code will send an empty or NULL patron
group string as part of the search parameters. This is not recognized and
causes long (to the point of timing out) search calls. This can be avoided by
checking for the presence of a search value.

It is not clear where the long-running queries are coming from, though it is
likely either the actual patron search interface or from the duplicate check
performed during patron registration.  Therefore, testing is made particularly
difficult.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm