Tags:
create new tag
, view all tags

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 smile

(Probably, this will also solve the problem CreateWebDoesNotCreateRCSdirectory.

Environment

TWiki version: TWikiRelease04x01x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Debian
Web server: Apache/2.2.3
Perl version: Perl/v5.8.8
Client OS:  
Web Browser:  
Categories: Version control

-- BeatDoebeli - 10 Aug 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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

 
Change status to:
Topic revision: r4 - 11 Feb 2008 - 05:03:26 - PeterThoeny
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback