Issue 2256

Summary: Writing to a read-only file deletes the file !!!
Product: General Reporter: osavill <osavill>
Component: codeAssignee: thorsten.martens
Status: CLOSED IRREPRODUCIBLE QA Contact: issues@sw <issues>
Severity: Trivial    
Priority: P1 (highest) CC: issues
Version: 638   
Target Milestone: ---   
Hardware: PC   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description osavill 2001-11-22 13:55:32 UTC
I was recently trying to edit a file accross a Samba share from Linux to a Window$ shared drive. Unknown to me I didn't have write access to the drive.

1) Open Office didn't tell me I was writing a read-only document

2) When I attempted to save the document the progress bar got all the way accross before telling me the write had failed. 

Result:

Two dialogs informing in two different ways that the write had failed, followed by the quite common Open Office crash ;-)

The file was now 0 (zero) bytes long. How is this possible ? Must be something to do with the Samba share and permissions. Maybe I have create rights but not write access ?!?!
Comment 1 stefan.baltzer 2001-11-26 13:51:16 UTC
Until someone proves that this occurs ONLY with Word processor files, "framework" is the right component.
Reassigned to Thorsten.
Comment 2 thorsten.martens 2002-01-09 12:39:45 UTC
I`ve tried to reproduce this problem (using a 641) but wasn`t able to reproduce it. If a document is opened with missing 
rights, it is opened read-only. If the edit-button is pushed afterward, a message box appears, saying that due to insufficient 
user rights the document can only be used as a template for a new doc ! 
Comment 3 thorsten.martens 2002-01-21 14:12:15 UTC
Due to missing further information and the fact, that this issue worksforme, it is closed !
Comment 4 thorsten.martens 2002-01-21 14:13:41 UTC
Due to missing any further information and the fact, that this issue worksforme, it is closed !