Bug 987901 - libreoffice does not create ~/.config/libreoffice/4/user/backup -> saving fails when backup is requested
Summary: libreoffice does not create ~/.config/libreoffice/4/user/backup -> saving fai...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libreoffice
Version: 19
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Caolan McNamara
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-24 11:47 UTC by Edgar Hoch
Modified: 2013-10-08 11:43 UTC (History)
6 users (show)

Fixed In Version: libreoffice-4.1.0.4-1.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-10-08 11:43:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
FreeDesktop.org 65501 0 None None None Never

Description Edgar Hoch 2013-07-24 11:47:17 UTC
Description of problem: 
libreoffice does not create the backup directory for saving backup files of modified libreoffice documents. The backup directory is ~/.config/libreoffice/4/user/backup by default (see menu Tools -> Options -> LibreOffice -> Paths -> Backups).

Other directories in ~/.config/libreoffice/4/user/ are created, but "backup" is not created. I have a ~/.config/libreoffice/3/user/ directory from previous libreoffice versions, and my configuration (my changes) has been migrated to the 4.x version.

When a backup copy is requested by the user (menu Tools -> Options -> Load/Save -> General -> Always create backup copy), saving of modified documents fails with the error message (DOCUMENTNAME is the name of the document to save):

Error saving the document DOCUMENTNAME:
Error creating object.
Could not create backup copy.

Creating the missing backup directory manually solves the problem.


I think libreoffice 4.x should either create the backup directory on the first creation of the user config directories (e.g. when it creates ~/.config/libreoffice/4/...), or create the missing directory on the first use for backup instead of creating an error message.



Version-Release number of selected component (if applicable):
libreoffice-core-4.1.0.1-8.fc19.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. Install Fedora 19 with libreoffice-core.
2. Use an user account that does not already have a directory ~/.config/libreoffice/4/ .
3. Start libreoffice as this user.
4. Go to the configuration (menu Tools -> Options -> Load/Save -> General -> Always create backup copy) and request that backup copies of modified documents should be created.
5. Create a new document (for example, text document) in libreoffice,
   and enter some text (doesn't matter what text).
6. Save this new document to some file.
7. Change something (some text) in the document.
8. Save this modified document.


Actual results:
Saving in step 8 fails - you get an error message like the one noted above.

Expected results:
Saving should be successful, no error message should occur.

Comment 1 Caolan McNamara 2013-07-24 14:08:36 UTC
fixed upstream as http://cgit.freedesktop.org/libreoffice/core/commit/?h=libreoffice-4-1&id=4efffd86ee2d87e9d5a276d0525108fed0828d62

this should be in the next respin for 4.1.0 for f19


Note You need to log in before you can comment on or make changes to this bug.