Crystal03 / google-docs-fs

Automatically exported from code.google.com/p/google-docs-fs
GNU General Public License v2.0
0 stars 0 forks source link

Not compatible with OOo3 #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Mount the file system
2. Open a file with OpenOffice.org 3
3. Make changes and attempt to save back to the file system

What is the expected output? What do you see instead?
File should be saved, however it isn't, usually with a file permissions error.

Please use labels and text to provide additional information.
OOo 3 implemented a file locking mechanism outside of the UNIX file locking
(for portability). The current SVN revision simply does not accept the
mangled lock-file name supplied by OOo3. I have been working over the
weekend and I still can't get to grips with it.
Put simply, right after it creates these lock files, it then proceeds to
mangle them for reasons I simply cannot fathom. Attempts to adapt the
behaviour of google-docs-fs to account for this are met by failure as the
file still doesn't upload and I have no idea why.

Original issue reported on code.google.com by d38dm8nw81k1ng@gmail.com on 28 Apr 2009 at 7:43

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Made a new revision to SVN which still doesn't work. I am attaching the log 
file to
refer to later.
Essentially, OOo3 creates the lock file quite happily, however it will then 
overwrite
the second last character with an "invisible" character which corrupts the file.

Original comment by d38dm8nw81k1ng@gmail.com on 4 Jun 2009 at 3:22

Attachments:

GoogleCodeExporter commented 9 years ago
A more detailed look at what happens to the lock file. Note that the lock file 
is
correctly generated and then overwritten by an invisible character.

Original comment by d38dm8nw81k1ng@gmail.com on 7 Jun 2009 at 10:53

Attachments:

GoogleCodeExporter commented 9 years ago
The invisible character is the Null Character. Attachment contains the 
appropriate
lines.

Original comment by d38dm8nw81k1ng@gmail.com on 30 Jul 2009 at 1:54

Attachments:

GoogleCodeExporter commented 9 years ago
Hi guys, attached is a patch implementing GFile.truncate method which is 
necessary
(and sufficient) to make OO.org 3 work. Let me know what you think about it...

Original comment by miGl...@gmail.com on 26 May 2010 at 1:24

Attachments:

GoogleCodeExporter commented 9 years ago
Hi mate, cheers for this. I've ran a quick test and your solution does solve 
the 
problem. I'll put it up on SVN and get a package released for it. I'll mark 
this as 
fixed and re-open it if there's any more problems.

Thanks again,
Scott W

Original comment by d38dm8nw81k1ng@gmail.com on 26 May 2010 at 1:39