Apache OpenOffice (AOO) Bugzilla – Issue 73854
Save to ODF: Basic project lost when saving to USB device
Last modified: 2017-05-20 10:48:13 UTC
Reproduced on a laptop with Windows XP Home and a connected USB mass storage device: - Create a Calc document, add a simple macro, or even an empty Basic module. - Save document to the USB device. - Do NOT close the document, switch off the laptop (standby or hibernate). - Connect the USB device to another USB port. - Switch on the laptop. - Change something in the open document, try to save. -> "General I/O error" - Try to save document with another file name -> No error message - Close and reload document -> ** Basic container is empty ** Happens with Basic code and with dialogs.
Created attachment 42452 [details] Test document with macto function "TEST()"
attached a test document, contains a Basic function "TEST()" that returns the text "Macro exists" and is used in cell A1. If the macro is missing, a #NAME! error occurs in the cell.
target
fixed in SRC680/dr55 (OOo 2.3)
wrong issue, reopening...
This looks exactly like a duplicate to the bug 73979. The only difference is that in this case not a network file handle is corrupt, but a file handle on UCB device. I do not close this issue as duplicate to let the scenario be tested by QA.
Changing the target.
Ok, the issue 73979 triggers the problem. But in this case the error should be shown instead of data-loss. The problem is that the basic API ( XLibraryContainer ) does not allow any kind of error report, so in case the basic library can not be stored the error can not be detected. In this case the exception is thrown by the "XStorage::copyElementTo()" method in namecontainer.cxx:1798. Unfortunately there is no way to transport the error. MAV->AB: Could you please take a look.
STARTED
The general problem is covered by i73979. This issue only addresses the error reporting problem -> 3.x
Reset assigne to the default "issues@openoffice.apache.org".