You are here: Foswiki>Tasks Web>Item3595 (27 Sep 2012, SvenDowideit)Edit Attach

Item3595: Better error message for zero file size attachment

pencil
Priority: Low
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: TWiki:Main.PeterThoeny
Waiting For:
Last Change By: SvenDowideit
Feedback in TWiki:Support/AttachFailureErrorMessage :
This is more of a suggestion to improve an existing error message. When an attachment attempt fails, it generates the following error:

Attention

Either you did not specify a file name, or the file you are trying to upload C:\My Documents\SomeDocumentName.xls has no content. You may not upload an empty file.

In our case, this happened not because the file had size zero but rather the temporary file that the "upload" script creates (during http copy?) had a zero file size.

This happened because /tmp on the Linux server machine was full. But it took us a while to figure out that this was the problem.

Can this error message be augumented to suggest to the user that the local tmp drive on the server machine might be full? This would allow the local twiki administrator to quickly latch on to the problem.

Good point.

-- TWiki:Main/PeterThoeny - 10 Feb 2007

This is not a documentation problem. It is in the code that you need to add additional intelligence and create multiple error messages depending on coded conditions.

Low priority though.

-- TWiki:Main.KennethLavrsen - 26 Apr 2007

dropping this. Not only should the web application not reveal server specific information to users - as thats how hackers collate ideas for how to exploit that installation, but its impossible for us to test and report on sufficient server issues to make this worthwhile to anyone.

If your admin isn't tracking that their file systems are running low on disk, that is not really something that foswiki should add a slowdown for.

That said, its also pretty good stuff for an addon plugin.

-- SvenDowideit - 27 Sep 2012 - 04:01

ItemTemplate edit

Summary Better error message for zero file size attachment
ReportedBy TWiki:Main.PeterThoeny
Codebase
SVN Range TWiki-4.1.1, Fri, 09 Feb 2007, build 12817
AppliesTo Engine
Component
Priority Low
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
Topic revision: r5 - 27 Sep 2012, SvenDowideit
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy