NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item9693 for docu changes for 1.2 and 2.0.

Item11105: Saving an attachment stores "save attachment" string in version history, instead of the attachment comment

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Urgent Closed Engine    
This line in lib/Foswiki/Store/VC/Store.pm has a comment hardcoded:
$handler->addRevisionFromStream( $stream, 'save attachment', $cUID );

This string shows up in the attachment version history table, where you would expect the comment of the attachment. And this means that the previous comments to that attachment are lost.

This did not happen in Release01x00 branch.

-- ArthurClemens - 04 Sep 2011

Added a unit test. Verified that the test fails with Arthur's fix reverted. Passes with fix applied.

-- GeorgeClark - 12 Sep 2011
 

ItemTemplate edit

Summary Saving an attachment stores "save attachment" string in version history, instead of the attachment comment
ReportedBy ArthurClemens
Codebase 1.1.3, trunk
SVN Range
AppliesTo Engine
Component
Priority Urgent
CurrentState Closed
WaitingFor
Checkins Foswikirev:12443 Foswikirev:12444 Foswikirev:12514 Foswikirev:12515
TargetRelease patch
ReleasedIn 1.1.4
Topic revision: r7 - 17 Dec 2011, GeorgeClark
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads