Tags:
create new tag
view all tags

Question

I recently upgraded from an old version of TWiki (2003 vintage) to 4.0.4. I have pretty much everything working properly, except that TWiki is no longer tracking the version history for attachments.

For old attachments (pre-upgrade), new versions are not being added to the version history list. For new attachments, the list is empty (only the table heading is displayed). I noticed that for new entries a ,v is created, but it is very small (81 bytes).

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin, CommentPlugin, TablePlugin, SpreadSheetPlugin, SlideshowPlugin, SmiliesPlugin, PreferencesPlugin, EditTablePlugin
Server OS: Fedora Core 3
Web server: 2.0.52
Perl version: 5.8.5
Client OS: MS Windows XP
Web Browser: Firefox 2.0.0.1
Categories: Installation

-- CameronSmith - 21 Dec 2006

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.

The ,v is the version history those files. You need to manually edit those files unless you can find a script to do this for you.

-- SteveStark - 23 Dec 2006

On existing attachments: Make sure that the RCS lock is removed. See TWikiUpgradeGuide.

On new attachments: 81 bytes is too small, it indicates a corrupt repository file. Check the arguments to the ci rcs command in configure.

-- PeterThoeny - 24 Dec 2006

I am using RCS 5.7. The RCS commands should be the defaults, although they may have been inherited from the version that I upgraded from (2003). Here are several of them:

{RCS}{initTextCmd} /usr/bin/rcs  -i -t-none -ko %FILENAME|F%
{RCS}{initBinaryCmd} /usr/bin/rcs  -i -t-none -kb %FILENAME|F%
{RCS}{ciCmd} /usr/bin/ci  -q -l -m"%COMMENT%" -t-none -w"CameronSmith" %FILENAME%

I don't have any problems with text TWiki pages, only attachments. I wonder if this could be an issue with binary files?

Here's the contents of one of the 81 byte ,v files. They all look the same.

head    ;
access;
symbols;
locks; strict;
comment @# @;
expand  @b@;



desc
@none
@

-- CameronSmith - 02 Jan 2007

Good news - I updated the ciCmd and ciDateCmd to the defaults in 4.0.4 and the repository files are now being created correctly.

Specifically, the commands should be:

{RCS}{ciCmd} /usr/bin/ci  -q -l -m%COMMENT|U% -t-none -w%USERNAME|S% -u %FILENAME|F%
{RCS}{ciDateCmd} /usr/bin/ci -l  -q -mnone -t-none -d%DATE|D% -u -w%USERNAME|S% %FILENAME|F%

-- CameronSmith - 02 Jan 2007

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2007-01-02 - CameronSmith
 
  • 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.