Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

Download or installation problems? Try these steps
Problems after upgrading to NeoOffice 2017? Try these steps


Support
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


RSS Feeds
· Announcements Only
· All Posts


  
NeoOffice :: View topic - Opening protected documents
Opening protected documents
 
Post new topic   Reply to topic    NeoOffice Forum Index -> NeoOffice Testing
View previous topic :: View next topic  
Author Message
steve
Red Pill


Joined: Feb 12, 2004
Posts: 9

PostPosted: Wed Mar 17, 2004 6:47 am    Post subject: Opening protected documents Reply with quote

NeoJ refuses to open a protected document when double clicking it.
It can be opened only from them open dialog window, selecting the "Read Only" flag.

_________________
Stefano B. - Rome
Back to top
View user's profile Send private message
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11907
Location: California, USA

PostPosted: Wed Mar 17, 2004 9:00 am    Post subject: Reply with quote

I have no problem opening protected documents by double-clicking on the file in the Finder. Using NeoJ 0.8.2, I tested this by using the Finder's "Get Info" dialog to set all the permissions on a file to "Read Only". Double-clicking on this file causes NeoJ 0.8.2 to open it in read-only mode.

Patrick
Back to top
View user's profile Send private message Visit poster's website
Max_Barel
Oracle


Joined: May 31, 2003
Posts: 219
Location: French Alps

PostPosted: Wed Mar 17, 2004 12:06 pm    Post subject: check the lock checkbox Reply with quote

I'm too lazy to test it, but I wonder if the problem is that Steve's "protected document" is one with the "lock"checkbox set in the Info window (translated back from French). This is a reminiscence of OS9, stored in ressource file and has nothing to do with unix mode.
Max
Back to top
View user's profile Send private message Visit poster's website AIM Address
Terry Teague
Guest





PostPosted: Wed Mar 17, 2004 6:10 pm    Post subject: Re: check the lock checkbox Reply with quote

Max_Barel wrote:
I'm too lazy to test it, but I wonder if the problem is that Steve's "protected document" is one with the "lock"checkbox set in the Info window (translated back from French). This is a reminiscence of OS9, stored in ressource file and has nothing to do with unix mode.
Max

Just a clarification. I suspect's Max's guess is right, but a file that is locked in Finder has the immutable flag bit set, even if the file permissions show you have write access.

See http://osxfaq.com/Tutorials/LearningCenter/AdvancedUnix/ugp2/page2.ws for info.

Regards, Terry
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11907
Location: California, USA

PostPosted: Wed Mar 17, 2004 11:09 pm    Post subject: Reply with quote

Terry,

Your theory is correct: by using the "chflags uchg <file>" command, I was unable to open <file> even though <file> had writable permissions.

Since the underlying OOo code sees that the user has writable permissions but is unable to open the file in writable mode, I suspect that the OOo code fails gracefully instead of trying to open the file in read-only mode.

Patrick
Back to top
View user's profile Send private message Visit poster's website
steve
Red Pill


Joined: Feb 12, 2004
Posts: 9

PostPosted: Thu Mar 25, 2004 10:32 am    Post subject: Reply with quote

Yes, OOo fails with the same error message of NeoJ.
_________________
Stefano B. - Rome
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NeoOffice Forum Index -> NeoOffice Testing All times are GMT - 7 Hours
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.02 Seconds