Issue 123973 - The "always create a backup file" lead to a temp files writing error and a lock of "save changes"
Summary: The "always create a backup file" lead to a temp files writing error and a lo...
Status: REOPENED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: 4.0.1
Hardware: PC Windows 7
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: needhelp
Depends on:
Blocks:
 
Reported: 2014-01-05 01:21 UTC by trebly
Modified: 2017-05-20 11:55 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
The errror backup message window (12.21 KB, image/jpeg)
2014-01-05 01:21 UTC, trebly
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description trebly 2014-01-05 01:21:17 UTC
Created attachment 82214 [details]
The errror backup message window

Hi,

When option "always create a backup file" is chosen (documentation separate problem function not well explained), when you save the current file the previous version (content of the temp file) is saved as normal file but with an index number with increment at the end of the file name.

This lead to a writing backup file error.
The main file is then not updated the lonely solution is to save as.
Can too change the option this functions dynamically.

On the way to search the origin :
When you try to save the file .~lock.<name>>.odt# is updated
A file with previous content with name "<name>n.odt"  previous date with previous content (n is first integer for a not existing filename : should increment)

I have no gone farther. In this case there is probably an open-close-rename file between lock and backup crossed.

It is easy to reproduce and check (moving current files, changing the option)

Good luck
Best regards
Comment 1 trebly 2014-01-05 01:40:32 UTC
Found :

When repairing (or install ? not able to check quickly) the missing (not yet created) ../user/backup/ subdir is not created.
Then when OOE tries to write the backup file the error is produced.

Remains to :
- check when the subdir is not created
- when error occurs hold it by checking the dir and if not exist create it (try to) and retry backup file creation.

Best regards
Comment 2 Edwin Sharp 2014-01-05 15:09:36 UTC
Please specify simple steps to reproduce bug.
Comment 3 Edwin Sharp 2014-01-19 13:58:43 UTC
No info from author.
Comment 4 trebly 2014-01-19 23:13:57 UTC
Hi,

Sorry, long time kept by other problems I have not seen your request.

I found the exact reason several days after opening the case.

1- Consider that accidentally the backup subdir has been deleted, empty because the user have not chosen the option (detail about reasons : because of trojan attack the user is copied - as recommended by MS - but the subdir "backup" is not copied because empty, sure an error but this occurs)

2- You need to run the "repair" option of the installation of AOOe-4.0.1

3- Then you change the option for "backup"

4- When you start AOOe crashes because it tries to write to a non existing path.

I reproduced it before writing.



Secondarly :

Because of this first crash the incremental copy with version numbering crashes to, the user result is that without any more message he cannot save his current file... (unefficient)

Elements of software solution : 

1- because this situation is exceptional it is the error handler which must test the existence of the subdir "backup" when the writing error occurs, then create and return to execution.
2- the repair installation must test if the subdir exists, if not (deleted accidentally) create it
Comment 5 trebly 2014-01-24 13:02:46 UTC
Waiting
Comment 6 Edwin Sharp 2014-01-24 13:49:19 UTC
trying to reproduce comment 4
when repair error message "Please exit OpenOffice ..."
AOO410m1(Build:9750)  -  Rev. 1560574
Rev.1560574
Win 7
Comment 7 Edwin Sharp 2014-01-24 13:49:35 UTC
reopened