[Yazlist] pazpar2 issue with queries including brackets

Porst, Sven porst at sub.uni-goettingen.de
Wed Nov 3 12:48:10 CET 2010


There seems to be an issue in pazpar2's way of tokenising search query
strings.

When entering a query containing a bracket and text following it, e.g. 

')a' or '(a' or '(test) a' 

(where the latter one comes from a practical example of copying and
pasting a title which contains brackets, while the first two are reduced
versions), the query, forwarded to search.pz2 results in a 417
(Malformed parameter value) error.

I suspect that this may be caused by an inappropriate error code being
set in ccl_parser_find_token in that situation.

The code of that function contains the somewhat mysterious line

        cclp->error_code = cclp->error_code;

which is executed in this situation. Perhaps something's going slightly
wrong there.

Best

        Sven

-- 
Sven-S. Porst
SUB Göttingen, Bibliotheksinformationssysteme
Zimmer 2.38 . Platz der Göttinger Sieben 1 .  D-37073 Göttingen . +49-551-39x4255


More information about the Yazlist mailing list