• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4611: Zero file size uploads

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal No Action Required   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


I noticed this last week with an older svn checkout, and now still with latest 14830: When I upload a file it looks like everything is normal, the file is listed in the attachment table with proper size. However, the actual file has zero bytes, the ,v files have between 180 to 200 bytes. See attached test.txt file I uploaded for testing on my system, and the resulting files packaged as testupload.zip on the server's file syste.

-- TWiki:Main/PeterThoeny - 12 Sep 2007

My system:

-bash-2.05b$ uname -a
Linux example.com 2.4.21-27.ELsmp #1 SMP Wed Dec 1 21:59:02 EST 2004 i686 i686 i386 GNU/Linux
-bash-2.05b$ perl -v

This is perl, v5.8.0 built for i386-linux-thread-multi
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2002, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

-- TWiki:Main.PeterThoeny - 12 Sep 2007

Upload with same browser obviously works here in the Bugs web, but it does not on my system.

-- TWiki:Main.PeterThoeny - 12 Sep 2007

This is not a release blocker for beta1 since it happen only in a particular environment, but it should be fixed for rc1.

-- TWiki:Main.PeterThoeny - 12 Sep 2007

Agreed, it should be fixed for RC1, and since yours is the only environment on which it has been reported or can be reproduced, I'm afraid it's down to you to isolate the problem (I tried on a variety of configurations without any problems). So I'm setting this "Waiting for Feeback" pending your analysis.


It would be more interesting to know which version of rcs is used and what command lines are fired (I assume the server is set up according to TWiki:Codev/TWikiOnSolaris?).

-- TWiki:Main.SteffenPoulsen - 14 Sep 2007

mmm, the uname Peter posted says Linux

-- TWiki:Main.SvenDowideit - 16 Sep 2007

OK, yep I see it - sorry, my fault.

-- TWiki:Main.SteffenPoulsen - 16 Sep 2007

I have tried with 5.8.0 and it seems to work.

Could the symptoms be due to a permission issue or a full disk subsystem (inodes or disk space)? Are all logs clear?

Lowering to Normal until reproducible.

-- TWiki:Main.SteffenPoulsen - 16 Sep 2007

There is enough disk space. I have TWiki 3 installed on the same data and pub, it works as expected. I updated the Perl CGI lib to the latest one. Still, same bug.

-bash-2.05b$ df -k .
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda5             73694556  59014956  10936056  85% /
-bash-2.05b$ ls -la pub/Sandbox/TestTopic21/
total 28
drwxr-xr-x    2 thweb    psacln       4096 Dec  3 01:08 .
drwxr-xr-x   18 thweb    psacln       4096 Dec  3 01:03 ..
-rw-r--r--    1 thweb    psacln       3923 Dec  3 01:06 globe2.gif
-r--r--r--    1 thweb    psacln       4157 Dec  3 01:06 globe2.gif,v
-rw-r--r--    1 thweb    psacln          0 Dec  3 01:03 map.gif
-r--r--r--    1 thweb    psacln        189 Dec  3 01:03 map.gif,v
-rw-r--r--    1 thweb    psacln          0 Dec  3 01:08 twikinet50x50d.gif
-r--r--r--    1 thweb    psacln        189 Dec  3 01:08 twikinet50x50d.gif,v

The first one was uploaded with TWiki 3, the second and third one with the latest MAIN branch. This used to work until a few month ago.

-- TWiki:Main.PeterThoeny - 03 Dec 2007

It is more likely to be a problem with your version of CGI, than anything else. Try updating CGI (after noting what version you are currently using)

-- TWiki:Main.CrawfordCurrie - 13 Dec 2007

(Peter stated that he already updated CGI to the latest one).

Can you think of a way that we can reproduce this, Peter? Are you able to reproduce it at a second machine?

-- TWiki:Main.SteffenPoulsen - 13 Dec 2007

I can't think of a way to reproduce it. Still same issue.

Possibly related to Item5265.

-- TWiki:Main.PeterThoeny - 18 Jan 2008

Likely related to Item5307

-- TWiki:Main.PeterThoeny - 04 Feb 2008

Timing wise this one also fits with SVN 14070 has being the cause.

-- TWiki:Main.KennethLavrsen - 04 Feb 2008

Summary Zero file size uploads
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4
SVN Range TWiki-4.2.0, Sat, 08 Sep 2007, build 14780
AppliesTo Engine

Priority Normal
CurrentState No Action Required


TargetRelease n/a

Topic attachments
I Attachment History Action Size Date Who Comment
Texttxt test.txt r1 manage 0.1 K 2007-09-12 - 05:14 PeterThoeny file used to test upload
Compressed Zip archivezip testupload.zip r1 manage 0.4 K 2007-09-12 - 05:15 PeterThoeny Resulting files on server (unpack zip file)
Edit | Attach | Watch | Print version | History: r13 < r12 < r11 < r10 < r9 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r13 - 2013-09-29 - PeterThoeny
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback