Question
Our user names are in the form "DOMAIN\FirstName LastName". When twiki issues an rcs ci command and puts -w"guest" as an argument the ci command fails. testing from cygwin shell gives the error indicating that ci cannot deal with spaces in usernames
example error from cygwin shell:
$ /usr/bin/ci -x,v -q -l -m"none" -t-none -w"DOMAIN\Adam Straughan" '/twiki/data/Sandbox/AdamStraughanSandbox.txt'
ci: invalid identifier `DOMAIN\Adam'
ci aborted
I don't think it is a permissions issue. I have setup apache to run as a specific user (not system) and have granted it full permissions to apache,cygwin and twiki.
Environment
--
AdamStraughan - 16 Nov 2005
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.
One possible solution: install
LoginNameAliasesPlugin, make the trivial code change to remove embedded spaces, and configure it to remove the DOMAIN\ prefix.
--
ClaussStrauch - 16 Nov 2005
Thanks for that. I have used the plug-in, and after a minor change it solved a slightly different issue of login => wiki name mapping (which I thought that the twiki users delt with)
However I tried with rcswrap (again) rather than rcslite and it dint' work
--
AdamStraughan - 17 Nov 2005
Have you tried it with
DakarRelease?
--
MartinCleaver - 17 Nov 2005
This install is my attempt to get a wiki into the team culture. I need it to be stable so can't go with dakar until it is complete. For now I'll just have to live with using rcs lite, though it'd be nice if I could put together a perforce (our version control) replacement, this would allow spaces. I assume I could do this and change twiki.cfg to use this as long as I kept the interface (however I don't know perl, how hard can it be

)
I am also considering adding some code to autocreate local machine users that will be rcs compatible and get users to log on using this instead of their domain logon. This would mean another password to manage so I'm not that keen.
--
AdamStraughan - 17 Nov 2005
This is why I think that Martin has brought up
DakarRelease: In Dakar, the wiki name of the users is used as the
RCS -w attribute instead of the login name. This requires that all users are registered in TWiki so that the mapping can be done.
I'd guess the best route is to stick to rcslite until either Dakar is finished or a perforce backend is available, whichever happens first
--
HaraldJoerg - 17 Nov 2005
If Dakar can use the Wiki name does that mean that if I were to change the twiki.cfg to
$rcsDir/ci $rcsArg -q -l -m$cmdQuote%COMMENT%$cmdQuote -t-none -w$cmdQuote% WIKINAME %$cmdQuote %FILENAME% $endRcsCmd
it'd work?
Does rcs use real users or are the user login's just tags?
--
AdamStraughan - 18 Nov 2005
Wouldn't work, sorry. One can cheat about the users with
RCS (that's what the
-w operand is for), but the replacement process in the
RCS command isn't governed by TWiki variables. %USERNAME% is a hardcoded "variable" in
RcsWrap.pm, to be replaced by a parameter passed down the queue. I guess you should leave
TWiki.cfg as it is and patch somewhere in the code of
Store.pm or
RcsWrap.pm to replace
$user by
$TWiki::wikiName.
sub replaceRevision in
RcsWrap.pm looks like a place to go, but I can't verify because I'm no longer running Cairo, and Dakar is
very different in its
RCS handling. Maybe some Cairo TWikizen can prove me wrong?
--
HaraldJoerg - 18 Nov 2005