Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
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...
Alias: None
Product: Fedora
Classification: Fedora
Component: libreoffice
Version: 19
Hardware: Unspecified
OS: Linux
Target Milestone: ---
Assignee: Caolan McNamara
QA Contact: Fedora Extras Quality Assurance
Depends On:
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-
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2013-10-08 11:43:42 UTC

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated 65501 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):

How reproducible:

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

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.