GoogleCodeArchives / editra

Automatically exported from code.google.com/p/editra
Other
0 stars 0 forks source link

Duplicating file contents on mounted FTP #407

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Mount a ftp via GVFS (Gnome: Places -> Connect to Server)
2. open file on mounted fs (double click, File->open, d'n'd - anyway)
3. edit file during some time (20 minutes for example).
4. save file.

What is the expected output? What do you see instead?
if source file contains "Hello!". Than I edit it to "Hello, world!" and
save. I expect result file to contain "Hello, world!", but it contains
"Hello!Hello, world!"

IMPORTANT!!! Please answer these questions for any and ALL bug reports

What version of the product are you using? On what operating system?
1. Editra 0.5.05 russian localization.
2. uname -a: Linux 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 19:25:34 UTC
2009 x86_64 GNU/Linux (Ubuntu 9.04)

What method of install was your version installed with (Binary/Source)?
source

If from source: What version of python and wxPython are you using?
Python 2.6.2
wx 2.8.9.1

Please provide any additional information below.
Sometimes it works well, but usualy this bug happens. I can provide files i
was working with if needed.

Sorry for my bad english )

Original issue reported on code.google.com by alex-...@mail.ru on 15 Sep 2009 at 9:13

GoogleCodeExporter commented 9 years ago
Hi,

I can't really see how this could happen and I have not been able to reproduce
anything here yet, will have to try with gvfs later. As all Editra does when 
saving a
file is

1) Copy text in buffer to string
2) Open file in Write mode
3) Write string to file
4) Close file

It doesn't do any sort of append or keeping of the string that was in the file 
when
it was first opened.

Does this happen with any other programs on your machine?

Does it happen everytime?

Thanks,

Cody

Original comment by CodyPrec...@gmail.com on 15 Sep 2009 at 12:35

GoogleCodeExporter commented 9 years ago
Looks like this is not editra related bug...
Yesterday i got this bug only with editra, but today even gedit makes such 
"appends".

Original comment by alex-...@mail.ru on 15 Sep 2009 at 1:01

GoogleCodeExporter commented 9 years ago
Ok,

Maybe its a gvfs setting or ftp issue on the server?

Thanks for the follow up.

Closing as invalid. (please update though if you figure out what the issue is.)

Thanks,

Cody

Original comment by CodyPrec...@gmail.com on 15 Sep 2009 at 1:20