aMule Bug Tracker - aMule
View Issue Details
0000729aMuleExternal Connpublic2005-12-14 00:032005-12-14 07:12
Jacobo221 
Kry 
normalminoralways
resolvedfixed 
 
SVN 
0000729: search query string parser
when a string in the format "ed2k::<hash>" (being hash a 128bit hex value) is searched it will do ok, but the next search will alwasy fail with a "syntax error, unexpected $end" message (btw, can those messages be switched to a capital 'S' since they are going to be displayed in a message box on GUI clients?)

Of course, to see this error message, it is necessary to have YYERROR_VERBOSE defined. Otherwise it will simply pop "syntax error" (again, with lowercase 's' :S)

This happens exactly and only on this case. Using ed2k:<size>:<hash> will not fail, nor will related:*:* not ed2k::*<hash>* nor anything else I have been able to think of.
No tags attached.
Issue History
2005-12-14 00:03Jacobo221New Issue
2005-12-14 02:57Jacobo221Note Added: 0001658
2005-12-14 04:34KryStatusnew => assigned
2005-12-14 04:34KryAssigned To => Kry
2005-12-14 07:12KryStatusassigned => resolved
2005-12-14 07:12KryFixed in Version => CVS
2005-12-14 07:12KryResolutionopen => fixed
2005-12-14 07:12KryNote Added: 0001663

Notes
(0001658)
Jacobo221   
2005-12-14 02:57   
I see it doesn't handle brackets at all either. I think strings should be passed to a wrapper to brackets should be wrapped before parsing the string.

It turns out that using "\(" doesn't do the trick either.
(0001663)
Kry   
2005-12-14 07:12   
Revision: 6069
Author: kry
Date: 2005-12-14 07:31:09 +0100 (Wed, 14 Dec 2005)