Question
The RcsWrap module does not support the use of
RCS directories ( {RCS}{useSubDir} = TRUE) in TWiki-Version 4.12.
The problem raises while saving an attachment in a topic that has had no attachment before: RcsWrap does not assure the existence of the
RCS directory in the pub dir and so the initBinaryCmd fails.
I was able to solve the problem by changing the code of RcsWrap.pm but I'm neither a perl-programmer nor a TWiki developer so it's probably a terrible hack:
l added the two last lines:
# implements RcsFile
sub initBinary {
my( $this ) = @_;
$this->{binary} = 1;
TWiki::Store::RcsFile::_mkPathTo( $this->{file} );
# BDH (10.8.2007) make sure directory for rcsFile exists:
TWiki::Store::RcsFile::_mkPathTo( $this->{rcsFile} );
Could a TWiki-developer please check this problem and integrate this or a better solution into the next release? Thanks
(Probably, this will also solve the problem
CreateWebDoesNotCreateRCSdirectory.
Environment
--
BeatDoebeli - 10 Aug 2007
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.
That looks like a good solution. Recommend you create a report on
http://develop.twiki.org
and attach your patch, and someone will get to it. If you are quick you might get it in for 4.2
--
CrawfordCurrie - 22 Sep 2007
TWikibug:Item4863
and
CreateWebDoesNotCreateRCSdirectory
--
SvenDowideit - 11 Feb 2008