Saving to Webdav empty the file

Issues installing under the Mac OSX - X11 - Aqua
Post Reply
tuxmux
Posts: 2
Joined: Sun Oct 24, 2010 4:23 pm

Saving to Webdav empty the file

Post by tuxmux »

Hi,

i'm having a problem with open office and saving docs to a Webdav Folder.

When i open an already created file on the share, i can edit it and do everything as usual.
When i save it, it seems to work but only for my computer as long as i don't reboot.

If i look at the file on the server after saving, it becomes a 0 ko file. The file seems to be in open office cache or something because as long as i don't reboot i can open the file back and everything is there.
It doesn't write back to the server though.

As anyone experienced the same problem?

I've been able to reproduce it on any mac i could put my hand on (4)

Thanks
Mac OS X 10.6.4 - Open Office 3.2.1
rudolfo
Volunteer
Posts: 1488
Joined: Wed Mar 19, 2008 11:34 am
Location: Germany

Re: Saving to Webdav empty the file

Post by rudolfo »

tuxmux wrote:If i look at the file on the server after saving, it becomes a 0 ko file.
Does this mean you have shell access to the wedav server? Or do you mean you open the Webdav URL as conventional http and the webserver shows a directory listing.
If you have shell access to the server, you should check the access logs of the webserver (or ask the admin of the webdav server to do this for you, if you don't have access to the files).
This should give you some hint what's going wrong if you look at the sequence of PROPSET, PROPGET, GET, PUT, ...
Alternatively use a port sniffer (like wireshark) to monitor what's going on on tcp port 80 (you only need admin rights on your mac for this).
OpenOffice 3.1.1 (2.4.3 until October 2009) and LibreOffice 3.3.2 on Windows 2000, AOO 3.4.1 on Windows 7
There are several macro languages in OOo, but none of them is called Visual Basic or VB(A)! Please call it OOo Basic, Star Basic or simply Basic.
User avatar
RoryOF
Moderator
Posts: 35122
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Saving to Webdav empty the file

Post by RoryOF »

What happens if you save the file locally (Save As) and then at system level move it to Webdav?
Apache OpenOffice 4.1.15 on Xubuntu 22.04.5 LTS
yonderboy
Posts: 1
Joined: Mon Nov 08, 2010 5:30 pm

Re: Saving to Webdav empty the file

Post by yonderboy »

Hi,

same problem here. Also on Mac OSX and OpenOffice 3.2.1. DAV access works perfectly fine on OS level, but if you open or save a file on a DAV share with OO the
file gets truncates to zero bytes. The nasty thing is that somehow OO (or OSX ?) keeps the file cached, so you won't find out that the file got corrupted unless you rebooted
your Mac :-D

As workaround I have to work on local copies of the files, which could be worse. However, the main problem is more to access a file on a DAV share with OO by accident
and damage it without noticing it.

Seems to be a known issue and I found a couple of traces in the web:

http://www.mail-archive.com/allbugs@ope ... 57307.html

I also found out that the bug is reported also by the Neooffice guys, which provide a patch for NeoOffice.

http://trinity.neooffice.org/modules.ph ... pic&t=7979

Seems to be a OSX bug btw, which doesn't make it less annoying :-D

regards
MAC OSX OpenOffice 3.2.1
tjolley
Posts: 1
Joined: Fri Sep 12, 2008 9:32 pm

Re: Saving to Webdav empty the file

Post by tjolley »

I am not seeing the issue if I use Neo-Office, but do see the issue with Open Office on both Mac OSX and Ubuntu 10.10. OO on Ubuntu kicks the following error when opening: "General input/output error while accessing /home/user/.gvfs/WebDAV on todd.homedns.org/Test Doc1.odt."

I get this error when trying to save: "Error saving the document "document title": General input/output error while accessing /home/user/.gvfs/WebDAV on todd.homedns.org/Test Doc1.odt." The document is created, but with 0 byte size.

Other apps work fine. I installed Abiword and it works, as do other text editors, Adobe Reader, etc. The issue is squarely with OpenOffice. Neo Office 3.1.2 Patch 1 has no issues.

We are trying to roll out WebDAV and Open Source to our clients, but this is a show-stopper. They all love WebDAV, and the other open-source products we are showing them, but we can't even think of transitioning them to Ubuntu or another Linus platform with this issue.
OOo 2.4.X on Mac OSx Leopard + Windoze
tuxmux
Posts: 2
Joined: Sun Oct 24, 2010 4:23 pm

Re: Saving to Webdav empty the file

Post by tuxmux »

Hi everyone,

i'm sorry i forgot about my post last year... Its only searching again on that issue that i found it back.
Anyway, just to say that this really seems to be a bug in Open Office since it's not happening in the last version of LibreOffice.

I contacted the LibreOffice team to try and get the patch that did the trick but they are not sure what fixed it.

Thanks again for your help
Mac OS X 10.6.4 - Open Office 3.2.1
Post Reply