Tags:
create new tag
, view all tags

Bug: File Attachment Version Viewing Bug

When a file attachment has exactly two versions, viewing a version is not possible because only a direct link to the most recent version is provided. Viewing ver 1.1 is always a direct link to the most recent version (wrong).

Test case

Add a simple text file as an attachment to a page, change it once, then view the attachment history - both versions appear the same and are direct links instead of revision links.

A fix is as follows:

in file lib/TWiki/Attach.pm at line 182:

You should see the line:

if ( $topRev || $rev eq "1.1" ) {

please comment it out and add: if ( $topRev ) {

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Any
Web server: Any
Perl version: Any
Client OS: Any
Web Browser: Any

-- StevePrior - 04 Dec 2004

Follow up

Fix record

this patch has been applied to DEVELOP. i don't know who did it, or when, but it's done.

-- WillNorris - 06 Dec 2004

Topic revision: r2 - 2004-12-06 - WillNorris
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.