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 - 21 Feb 2005 - 08:22:51 - CrawfordCurrie
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback