Item4611: Zero file size uploads

pencil
Priority: Normal
Current State: Closed
Released In: 1.0.0
Target Release: patch
Applies To: Engine
Component:
Branches:
Reported By: TWiki:Main.PeterThoeny
Waiting For:
Last Change By: KennethLavrsen
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.

CC

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

I conclude this is the case because we never heard about this one after the later releases that included the fix for TWiki bug 5307

-- KennethLavrsen - 18 Dec 2008

ItemTemplate edit

Summary Zero file size uploads
ReportedBy TWiki:Main.PeterThoeny
Codebase trunk
SVN Range TWiki-4.2.0, Sat, 08 Sep 2007, build 14780
AppliesTo Engine
Component
Priority Normal
CurrentState Closed
WaitingFor
Checkins
TargetRelease patch
ReleasedIn 1.0.0
I Attachment Action Size Date Who Comment
test.txttxt test.txt manage 46 bytes 12 Sep 2007 - 05:14 UnknownUser file used to test upload
testupload.zipzip testupload.zip manage 432 bytes 12 Sep 2007 - 05:15 UnknownUser Resulting files on server (unpack zip file)
Topic revision: r13 - 18 Dec 2008, KennethLavrsen
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