Bug 987901 - libreoffice does not create ~/.config/libreoffice/4/user/backup -> saving fails when backup is requested
libreoffice does not create ~/.config/libreoffice/4/user/backup -> saving fai...
Product: Fedora
Classification: Fedora
Component: libreoffice (Show other bugs)
Unspecified Linux
unspecified Severity low
: ---
: ---
Assigned To: Caolan McNamara
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2013-07-24 07:47 EDT by Edgar Hoch
Modified: 2013-10-08 07:43 EDT (History)
6 users (show)

See Also:
Fixed In Version: libreoffice-
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-10-08 07:43:42 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
FreeDesktop.org 65501 None None None Never

  None (edit)
Description Edgar Hoch 2013-07-24 07:47:17 EDT
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 10:08:36 EDT
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.