Item2546: Regex Search of Group members broken
Priority: Normal
Current State: Confirmed
Released In: n/a
Target Release: n/a
I am in the middle of migrating from T*iki to Foswiki. (As I stated here:
CompaniesAreUpgradingToFoswiki). I have run into a bug which is halting the progress I have made so far.
I have developed a number of Wiki applications that use a formatted regex search to query the members of a group. This is then used in forms/dropdowns etc.
I had been using the following search to get the list of users from the group topic. This works fine on T*iki but is not working on Foswiki at all. This is an extremely urgent bug for me as it is stopping my Foswiki migration.
View the raw topic
If there is a workaround then that would also suffice..
--
PadraigLennon - 31 Dec 2009
I really should have previewed this.. It is working here... Arggh!!!
I am running:
This site is running Foswiki version Foswiki-1.0.8, Sun, 29 Nov 2009, build 5665, Plugin API version 2.0
--
PadraigLennon - 31 Dec 2009
I just tried on release branch, my test Foswiki 1.0.8.
Both work, but actually populate the list with the example documentation that's in the
AdminGroup topic. After I delete the documentation, the select is populated properly.
NB: I've used this in my own wiki to achieve a similar thing:
* Set GROUP = %STARTINCLUDE%Person1, Person2, Person3%STOPINCLUDE%
Obviously not pretty, which is why I am interested in
QueryAccessControls
Are you using forking or
PurePerl search implementation?
--
PaulHarvey - 31 Dec 2009
Thanks for getting back to me on this Paul
I was actually using the
KinoSearchContrib supplied search option
Foswiki::Store::SearchAlgorithms::Kino';
Changing this option to use:
Foswiki::Store::SearchAlgorithms::Forking
or
PurePerl fixes the issue. It does not seem to have a negative effect on the
KinoSearch search actions so I will leave it in place.
I have reassigned this bug report to for
KinoSearchContrib.
thanks again..
--
PadraigLennon - 03 Jan 2010
We are having almost exactly the same problem after installing
KinoSearchContrib last night and setting it to replace standard
%SEARCH%
. I'm not the sysadmin, but I messed around with the search string a bit and it looks like
KinoSearchContrib isn't paying attention to the
topic=""
field of
%SEARCH%
because I get back results from more than just the topic listed there:
''" then='
Of course, as Padraig said, it appears to work here, so maybe it is just a configuration issue?
We are running
Foswiki-1.0.9, Sun, 17 Jan 2010, build 6075, Plugin API version 2.0
You might be able to work around the problem using
%INCLUDE%
instead:
%CALC{$LISTJOIN($sp, $LISTMAP(<option value=\"$web.$item\">$PROPERSPACE($item)</option>, $TRIM(%INCLUDE{"Main.AdminGroup" pattern="^.*GROUP *= *([^\n]*).*"}%))}%
Or something like that. Hope this helps!
--
BryanThrall - 12 Feb 2010
Think the issue is with the
%KINOSEARCH%
macro, so have reassigned to
KinoSearchPlugin.
--
AndrewJones - 25 Mar 2011