[ic] New guide for setting up a Centos / RHEL 5 server and installing Interchange

Steve Graham icdev at mrlock.com
Mon Mar 1 00:51:05 UTC 2010


> What Stefan is saying is that the complaint is coming from a module
> which is not installed on the demo servers.  Because the module is not
> there the line above skips the code that uses the module and hence the
> demo doesn't complain.  There is no difference other than the fact that
> you have the Text::Query module installed and the icdevgroup demo server
> does not.

Got it, I must have installed that perl module with the KitchenSink....

>
> So basically, even though the icdevgroup demo doesn't show this error it
> is still an issue with the standard demo and you're welcome to submit a
> patch for it if you want.
>
>

I think I have located the problem code in Search.pm, but someone with more 
code knowledge is needed....

line 327:

       if(! scalar @specs or ! $s->{mv_coordinate}) {

when using text query it never falls through and checks the length of the 
string, actually if you don't use text query as the demo at icdevgroup.org 
doesn't give an error for mv_min_string on an empty search

if the above line is changed to:

       if(! scalar @specs or ! $s->{mv_coordinate} or length($_) 
<$s->{mv_min_string}) {

you get the : Search strings must be at least %s characters. error message, 
but a better solution seems needed....

thoughts....

Steve

 




More information about the interchange-users mailing list