Bug 69840 - FILEOPEN general error (IOErrorCode_ACCESS_DENIED) and ERROR_SHARING_VIOLATION when opening OpenDocument file on filesystem on WINDOWS
Summary: FILEOPEN general error (IOErrorCode_ACCESS_DENIED) and ERROR_SHARING_VIOLATIO...
Status: RESOLVED DUPLICATE of bug 70345
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: framework (show other bugs)
Version:
(earliest affected)
4.0.5.2 release
Hardware: Other All
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-26 09:15 UTC by Matthieu
Modified: 2013-10-11 11:05 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 Matthieu 2013-09-26 09:15:42 UTC
Hello,

The problem is:
When I double click on a specific file in the filesystem with LO 4.0.5, then if I change something in the document and I click on save, I have these  errors:

1. "error saving the document XXXX: Access to XXX was denied"
2. "error saving the document XXXX: Access to XXX was denied"
3. "error saving the document XXXX: General Input/Output Error"

The problem is not happened if I open the file from LO or If I click on Save AS.

I think I have this error because of this commit:
http://cgit.freedesktop.org/libreoffice/core/commit/?id=6523f78456c9f78fb842b7215eb84a96f4e92472&h=libreoffice-4-0

As you can see in the comment: "this situation may fail on
+            // Windows with ERROR_SHARING_VIOLATION... but that is apparently
+            // not a problem in practice currently"

In version 4.1.1.2 of libreoffice I don't have this problem, it's probably due to this commit:
http://cgit.freedesktop.org/libreoffice/core/commit/sfx2/source/doc/docfile.cxx?h=libreoffice-4-1-2&id=0c2206081de38a41597aadfb2255540d6308be63

I'll try to backport it to be sure, but I have problem to build on windows (probably antivirus problem)

So I can you backport the commit in 4.0.6 Beta in the daily build to test my problem.

Sorry, I can't put my test file yet, but I'm working on it to put it less confidential.
Comment 1 Matthieu 2013-10-11 11:05:27 UTC

*** This bug has been marked as a duplicate of bug 70345 ***