Issue 48752 - OfficeBean File Saving Problem
Summary: OfficeBean File Saving Problem
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All Windows Server 2003
: P3 Trivial
Target Milestone: ---
Assignee: stephan.wunderlich
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-05 09:38 UTC by muifull
Modified: 2013-02-24 21:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description muifull 2005-05-05 09:38:24 UTC
OfficeBean is unable to save document which is opened from a file that is 
stored under a directory that contain a space for its path name.

Here are the steps to reproduce the problem:

1. Create a new Writer document and save it as a .odt file under a directory 
which its path name contains a space (e.g. C:\doc folder\Test.odt)
2. Download the SDK from http://download.openoffice.org/680/sdk.html
3. Add a button to load the file created in step 1. Implementation of the 
action should be like this:
aBean.loadFromURL("file:///C:/doc folder/Test.odt", null );
4. Compile it and run it.
5. Click on the button created in step 3 to load the document. The document 
loaded successfully.
6. Modify it and save it (Ctrl-S), the bean terminated and error occur

I am not sure if this problem occurs also in "standalone Writer" (not the bean).
Could you please explain what the problem is and how to solve it?

Thank you very much!

Could you please explain what the problem is and how to solve it?
Comment 1 stephan.wunderlich 2005-05-11 17:46:43 UTC
I change the DevGuide/OfficeBean example by adding the lines

	aBean.loadFromURL( "file:///myHome/temp/with spaces/mydoc.odt", null );
	aBean.aquireSystemWindow(); 

and removed the line

	aBean.loadFromByteArray( buffer, null );
	
in the code for the "loadFromBuffer" button.
Then I compiled and started the Bean. 
Afterwards I pressed the button and the document appeared as expected.
Finally I changed the content and press CTRL-S.
All this without problem, what do I miss ?
Comment 2 muifull 2005-05-12 08:33:45 UTC
Hi, I tried again by downloading the latest release of OpenOffice (m100) and 
SDK (m91). Everything seems alright. I guess the problem is no longer exists. 
Thank you for your attention.