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 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

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2008-02-11 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.