Bug 62794 - webdavs:// cannot save file larger than 4096 bytes
Summary: webdavs:// cannot save file larger than 4096 bytes
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: webdav (show other bugs)
Version: 2.1
Platform: unspecified FreeBSD
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-16 21:49 UTC by missive
Modified: 2011-11-03 20:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description missive 2003-08-16 21:49:17 UTC
Version:           2.1 (using KDE 3.1.3)
Compiler:          gcc version 2.95.4 20020320 [FreeBSD]
OS:          FreeBSD (i386) release 4.8-STABLE

This seems to be the same both in kate and in
konqueror.  I can write a file over webdavs
normally when the file is 4096 bytes or shorter
but at 4097 bytes or more the save never
finishes.
Comment 1 Hamish Rodda 2003-08-17 08:02:02 UTC
Could you please provide more information?
1) server details (ie. what software is in use)
2) whether this works with webdav://
3) what happens to the upload - does it complete?
4) whether webdavs:// works on different servers
5) proxy details if applicable

Thanks, Hamish.

Comment 2 missive 2003-08-17 17:36:56 UTC
1) Server is Zope with the ZServerSSL added for the SSL portions 
    (ZServerSSL is available at http://www.post1.com/home/ngps/m2/) 
 
2) I can upload the larger files normally over a regular webdav:// 
    connection. 
 
   I can also upload the larger files normally using the cadaver 
    webdav client. (That actually uses a https:// url, but I am 
    pretty sure it is the same as the webdavs:// connection) 
 
3) When trying to upload the larger file, the file save dialog comes 
   up, the progress bar goes to 100% and it just stops there. 
 
   With shorter files, at that point the login dialog will come up 
   (does not matter whether I have already given name/password for 
   that file or that host already) and I can put in my name/password 
   and the save completes. 
 
4) Have not tried on other webdavs servers. 
 
5) No proxy involved. 
 
Comment 3 Hamish Rodda 2003-08-18 09:28:10 UTC
thanks... regarding 3, what happens to the copy of the file on the server? is it a 
complete copy of the file you are uploading (regardless of the fact the progress 
dialog doesn't disappear)? 
Comment 4 missive 2003-08-19 02:58:34 UTC
The title of the dialog box shows "100% of 4.9kb (Moving)" 
and near the middle it says "foo.com contacted. Waiting for 
reply..." 
 
Often with the smaller files, at that point I will get the 
login dialog popup, but not in this case. 
 
If I cancel the upload dialog, the file on the server remains 
completely untouched. 
 
I had never tried letting the save "time out" before, but if 
the save is allowed to time out (after about 10 minutes) 
the file is actually saved to the server with all of the new 
changes complete. 
 
Comment 5 Hamish Rodda 2003-11-11 14:00:12 UTC
Hi - is it possible for you to try this out with the latest beta of kde 3.2? Thanks... Hamish.
Comment 6 missive 2003-11-30 02:22:11 UTC
Tried this again on 3.2-beta1 and it still has the same problem.
Comment 7 missive 2003-12-12 06:38:12 UTC
I found another report of a webdavs client that has trouble with
the zserverssl and zope. Here:

http://www.zope.org/Members/glpb/dwhowto

It describes a workaround (quite simple, and works for me :o)
but I think this is still a bug in the kde code... Maybe the
workaround will point you in the right direction to a cure
(or maybe it's not a kde bug at all).
Comment 8 Hamish Rodda 2003-12-12 06:51:54 UTC
Are you referring to the tweak asking you to increase your buffers?

ie.
ac_in_buffer_size = 4096 -> 100000
ac_out_buffer_size = 4096 -> 100000

I have a feeling this is a SSL problem deeper in KDE than the webdav implementation... can someone else have a look? I'm a bit out of my depth here ;)

Reassigning to kssl...
Comment 9 missive 2003-12-12 07:00:06 UTC
Yes. I made the changes to ac_in_buffer_size and  ac_out_buffer_size
and now I can save files larger than 4096 bytes. I assume the limit
is the size of the buffer, but I have not tested it.
Comment 10 George Staikos 2003-12-20 05:13:03 UTC
Do you still somehow think this is kssl related?
Comment 11 Waldo Bastian 2004-08-10 21:39:35 UTC
Can this be an issue of kssl not properly handling EAGAIN when doing writes?
(Or be related somehow to the recently fixed EGAIN problem with reading...)
Comment 12 Waldo Bastian 2004-08-10 21:44:49 UTC
After adding George to CC:
Can this be an issue of kssl not properly handling EAGAIN when doing writes? 
(Or be related somehow to the recently fixed EGAIN problem with reading...) 
Comment 13 George Staikos 2004-08-11 16:23:13 UTC
On Tuesday 10 August 2004 15:44, Waldo Bastian wrote:
> After adding George to CC:
> Can this be an issue of kssl not properly handling EAGAIN when doing
> writes? (Or be related somehow to the recently fixed EGAIN problem with
> reading...)

   Might be..  Not sure.  Will need to investigate, but I likely can't do this 
before september now.

Comment 14 missive 2005-03-01 05:35:06 UTC
This bug is still present in KDE 3.3.2 and Kate 2.3.2

The Zope file that needs to be modified is different now.

It used to be lib/python/ZServer/medusa/asynchat.py
now it is lib/python/ZServer/medusa/http_server.py
Comment 15 George Staikos 2005-03-20 23:44:55 UTC
How about KDE 3.4?  I use webdavs regularly with large and small files.
Comment 16 Dawit Alemayehu 2011-11-03 20:10:04 UTC
In KDE 4.x secure connection is handled by Qt's network classes and since KDE 3.x is no longer maintained, closing this as unmaintained. If the problem still persists in KDE 4.x, feel free to reopen this ticket.