Question
Hello, I have a fresh install of TWiki 4.0.5 on a Solaris (i386) machine, and when I create new groups using the form on my
TWikiGroups page, they do not show up in %GROUPS%.
As far as I can see they all conform to the naming convention for TWiki groups (specifically:
TestGroup,
NameGroup,
BMCEditorsGroup and
BenchmarkingContributorsGroup). Can you shed any light on why these groups are not appearing on the
TWikiGroups page in the %GROUPS% variable please?
Many thanks in advance for your time.
Environment
--
MatthewJonesHud - 28 Nov 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
This is really strange. We had a similar report (in
TWikiGroups), but nobody had a clue. None of the testers seems to be able to reproduce it (at least I can't).
The
%GROUPS% variable is based on a search in your users' web.
Did you change either of
{UserMappingManager} or
{UsersWebName} in
bin/configure? Could you report the result of the following explicit search:
%SEARCH{".*Group$" web="Main" scope="topic" type="regex"}%
--
HaraldJoerg - 29 Nov 2006
The result of that search is as follows:
Searched: .*Group$
Number of topics: 6
I didn't change either {UserMappingManager} or {UsersWebName} in bin/configure . The values for these settings in my bin/configure are:
TWiki::Users::TWikiUserMapping
and
Main
respectively.
--
MatthewJonesHud - 30 Nov 2006
I should add that these groups do appear in the
WebTopicList index, just not when called by %GROUPS%.
--
MatthewJonesHud - 30 Nov 2006
Oops, didn't add that under the search result line were hits for each of the groups that I have created, plus
TWikiAdminGroup and
NobodyGroup.
Again, your help is very much appreciated, thank you.
--
MatthewJonesHud - 30 Nov 2006
Thanks for your help in narrowing down the problem. Unfortunately the search works, so I am almost as confused as before. I am afraid this would need someone with Perl knowledge to debug in
lib/TWiki.pm, where
sub _GROUPS is defined - but in an installation where the error occurs.
As a workaround, you could replace the reference to
%GROUPS% with the following search:
%SEARCH{"Set GROUP = " web="Main" type="regex" nosearch="on" topic="*Group" header="| *Group* | *Members* |" format="| [[$web.$topic][$topic]] | $pattern(.*?SET GROUP = (.*?)\n.*) |"}%
Sorry...
The resulting format should be identical to what
%GROUPS% is intended to deliver (unless you have multiline group members definitions).
--
HaraldJoerg - 30 Nov 2006
Thanks for the pointers Harald - your assistance is much appreciated! I'll use the work-round for now and I have a reasonable smattering of Perl so I'll have a look at TWiki.pm now that I know where the relevant sub is located. I'll post here again if I figure out what is wrong.
Again, many thanks.
--
MatthewJonesHud - 05 Dec 2006
Hmmm, the workaround search returns nothing I'm afraid, which is odd as I can see what it's supposed to do. I had a little experiment and discovered that the following search returns no results either:
%SEARCH{".*Edit.*" web="all" type="regex" scope="text"}%
And I'm pretty sure that it should be able to find the string "Edit" somewhere on one of my webs! If I change the scope to "all" or "topic" then I get plenty of hits for topic names that contain "Edit".
Looks like for some reason my TWiki installation is not searching topic bodies properly. I'm not sure why because I've made very little changes since I did the install other than securing
TWikiAdminGroup and restricting changes to the main web to members of that group. I'll keep nosing around but if this information suggests anything to you then I would be very very grateful to hear about it.
Thanks!
--
MatthewJonesHud - 05 Dec 2006
Oh bummer! Silly me. I should have thought of that earlier. The other report in
TWikiGroups probably has the same reason - a non-"standard" platform. As you wrote, you are running on Solaris. Please check under
bin/configure whether the paths to the
grep command are set correctly (the keys are
${RCS}{EgrepCmd} and
${RCS}{EgrepCmd}). TWiki needs GNU versions of these tools, which Solaris doesn't offer out of the box IIRC. Have a look at
Codev.SolarisInstallCookbook#Utilities_preparations which has a section on
grep.
--
HaraldJoerg - 05 Dec 2006
Bang on! That fixed it (both for %GROUPS% and the workaround)! Many, many thanks for your sterling assistance Harald. I guess that changes the status of this one to "Answered". Cheers!
--
MatthewJonesHud - 05 Dec 2006