Issue 22238 - saving documents does not work with OOo 1.1.0 on OSX
Summary: saving documents does not work with OOo 1.1.0 on OSX
Status: CLOSED FIXED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 1.1
Hardware: Mac Mac OS X, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: khendricks
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-07 11:28 UTC by totoro
Modified: 2007-06-25 22:46 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 totoro 2003-11-07 11:28:02 UTC
OOo 1.1.0 for Mac OS X, as downloaded from
ftp://sunsite.informatik.rwth-aachen.de/pub/mirror/OpenOffice/contrib/MacOSX/OOo_1.1.0_031006_MacOSX_install_en.tar.gz
cannot save documents (at least not text documents).
When I try to save a text document, I get a message saying that an error
occurred and the document could not be saved.

OS: Mac OS X 10.2.8
Filesystem: Mac OS Extended (the default filesystem, NOT UFS!)
X-Server: Apple X11 Beta 3

Installation: network-install as "root" (./setup -net) into
/usr/local/OpenOffice.org1.1.0/, then workstation-install as non-admin user
Comment 1 totoro 2003-11-07 17:38:30 UTC
Here is the exact error message:

"Error saving the document Untitled1:
Write Error:
The file could not be written."

The filesystem type apparently does not seem to be an issue.
I tried writing onto UFS- and Fat32-formatted disk images, both
failed, even though the permissions were all set correctly.
Comment 2 totoro 2003-11-07 17:41:49 UTC
Then again, it could of course be that there is an incompatibility
with all three filesystems I have tried... ;-)
Comment 3 khendricks 2003-11-07 18:05:41 UTC
Hi,

I can not recreate this with that same build but I did not do a -net install.
I can write files fine.

Please try a "Save As" and 

1. make sure you have pointed to a place where the user has the correct write 
permissions.

2. make sure there is not already an existing file of the same name that does not have 
write permsission disabled

3. Try saving a file as root to see if that prevents the problem or not.

4.  As a last resort, please try reinstalling and not using a -net install and see if the 
problem is somehow related to the -net install option.

I would guess that very few people using MacOSX have done a -net install with 1.1.0 
builds yet so perhaps there is a latent issue there.

Please let us know what you find.

(meanwhile I will remove my non-net install and make a net install with my own build 
tree and try to recreate your issue sometime this weekend).

Thanks,

Kevin



Comment 4 totoro 2003-11-14 16:13:09 UTC
Seems I located the bug: it's indeed the network install.

Here is what I have tried:

1) after doing a regular non-net install as "root" straight from the
unpacked distribution (all settings left at default), saving as "root"
_does_ work (tested by running OpenOffice.org1.1.0/program/swriter
from within the home-dir)

2) the same works when done as non-root user instead of "root"

3) now after doing a network install as "root" (again, all settings
left at default) followed by a workstation install as  
non-root user, saving as non-root user does _not_ work (tested by
running /opt/OpenOffice.org1.1.0/program/swriter)

By the way, is it OK to change the issue status to STARTED, now?
Comment 5 khendricks 2003-11-15 00:56:08 UTC
Hi,

Yes, I can confirm this and even better I have both a patch to fix this and a 
workaround.

I just posted the patch to dev@porting.openoffice.org tonight so it should make it in 
time for OOo 1.1.1

The problem was that the Temporary Files directory was not being set properly (it 
pointed at someplace that a normal user did not have access to).

To workaround this issue 

1. startup OpenOffice.org as a normal  user after a workstation install 
2. go to Tools->Options->OpenOffice.org->Paths
3. Change the Path entry for "Temporary Files" to /var/tmp/
4. Hit Okay then shutdown out of OpenOffice.org
5. Restart OpenOffice.org

You should now be able to save files with no problems.

So yes, this is confirmed and I have changed it to "Started" and hopefully, once the 
patch gets accepted, all will be fine (I have tested it in my own OOo pre-1.1.1 tree for 
MacOSX.

Thanks for your bug report!

Kevin
Comment 6 khendricks 2003-11-15 00:57:16 UTC
Hi,

Re-assigning this issue to me since I already have a patch ready to be committed to 
OOo 1.1.1 or cws_srx645_ooo11rcmac.

Kevin
Comment 7 totoro 2003-11-17 15:57:59 UTC
Changed priority to P3, was accidentally set too low initially. 
 
Comment 8 khendricks 2003-12-19 13:03:03 UTC
Hi, 
 
This is now part of the OOo rcmac tree so closing this. 
 
Kevin 
 
Comment 9 Martin Hollmichel 2007-06-25 22:46:52 UTC
close issue.