Bug 132622 - Program freeze when using password protected files and Save AutoRecovery information is enabled
Summary: Program freeze when using password protected files and Save AutoRecovery info...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.3.4.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-03 05:35 UTC by xtr806595
Modified: 2020-09-23 09:09 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xtr806595 2020-05-03 05:35:55 UTC
Description:
This freeze problem was previously reported as bug 127570 but that report incorrectly described the problem. The issue has now been correctly identified as involving password protected files and the Save AutoRecovery information feature being enabled. With Save Autorecovery enabled, when a password protected file is edited but the edits not saved, AutoRecovery continuously writes zero byte empty files to the backup folder until the edited file is saved. After a time, the backup folder becomes full of these zero byte files and the program freezes. This has been tested with Calc and with Writer password protected files. The UserProfile has been reset to factory but the problem is still there. The problem was evident in several previous version of LibreOffice. However, the problem does NOT occur in Safe Mode. 

Steps to Reproduce:
1.In Options Load/Save enable Save AutoRecovery information and set the interval to 1 minute as a test to save waiting time 
2.Create a file and save it with password protection.
3.Edit the file but do not save it.
4.Allow several minutes to pass so the program can start to try to save Autoreccovery information.
5.Open the specified backup folder and see the zero byte files being created. This will continue until the file is saved but will start again following any edits.

Actual Results:
Empty zero byte files are created in an attempt at backup which eventually fill the backup folder and cause the program to freeze.

Expected Results:
One AutoRecovery file should be created containing usable information. This should be automatically replaced. 


Reproducible: Always


User Profile Reset: Yes



Additional Info:
[Information automatically included from LibreOffice]
Locale: en-GB
Module: StartModule
OS: Windows 7
OS is 64bit

Version: 6.3.4.2 (x64)
Build ID: 60da17e045e08f1793c57c00ba83cdfce946d0aa
CPU threads: 8; OS: Windows 6.1; UI render: default; VCL: win; 
Locale: en-NZ (en_NZ); UI-Language: en-GB
Calc: CL
Comment 1 Telesto 2020-05-03 08:58:18 UTC
Sounds like bug 118639
Comment 2 xtr806595 2020-05-04 01:13:51 UTC
On further testing, I find that Save AutoRecovery works with password protected ods and odt files and it is only password protected xls xlsx doc and docx files that cause a problem. These doc docx xls and xlsx files cause a problem in both Normal Mode and Safe Mode. I thought in initial testing that password protected docx and xlxs files functioned correctly in Safe Made but I cannot now reproduce that effect.

The feature, "Always create a backup copy" works correctly with all password protected files in all file formats.
Comment 3 Buovjaga 2020-08-25 17:52:18 UTC
Last month in bug 127570 you said the problem was gone.

Also, bug 118639 was fixed for 6.3.5 while you had 6.3.4 at the time of your report.

Set to NEEDINFO.
Change back to UNCONFIRMED, if the problem persists. Change to RESOLVED WORKSFORME, if the problem went away.
Comment 4 xtr806595 2020-09-23 09:09:08 UTC
Resolved in 6.4.4.2