Tags:
create new tag
, view all tags
If you pass an invalid local filename to saveAttachment in store, TWiki will complain too late with the error "is not writable" when calling Store::saveAttachment

Can you please add a test in sub _saveAttachment in RcsFileDotPm? It might save someone else an hour or so.

    unless (-f $theTmpFilename) {
        die "No such file $theTmpFilename"; # or logging or whatever.
    }

Thanks.

-- MartinCleaver - 15 Oct 2004

Since _saveAttachment is private to RcsFile, it should be an ASSERT. If you want it Martin, you can check in the change.

-- CrawfordCurrie - 21 Feb 2005

Topic revision: r1 - 2005-02-21 - CrawfordCurrie
 
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.