[framework-issues] [Issue 96918] ACL information not being read.

2009-09-10 Thread tm
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918


User tm changed the following:

What|Old value |New value

  Status|RESOLVED  |VERIFIED





--- Additional comments from t...@openoffice.org Thu Sep 10 12:01:30 + 
2009 ---
checked and verified in cws fwk116 - OK !

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-09-03 Thread mav
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918


User mav changed the following:

What|Old value |New value

 Assigned to|mav   |tm





--- Additional comments from m...@openoffice.org Thu Sep  3 16:07:01 + 
2009 ---
mav-tm: Please test the issue. To test it you could use the following steps on
solaris ( the cws has unxsoli4.pro build, so it could be done on Intel Solaris
machine )
- create a document on disk that supports ACL ( for example tausch )
- make chmod 444 path to the document
- setfacl -r -m group:group name:rw- path to the document
- let another user from group name group open the document using the CWS
installation = the document should be editable.


-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-09-03 Thread mav
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918





--- Additional comments from m...@openoffice.org Thu Sep  3 17:29:48 + 
2009 ---
Just to clear the problem described in my comment from Sep 2. The mentioned
document will not be recognized as locked one in the described in the comment
scenario, instead it will be handled as a read-only document.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-09-03 Thread mav
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918





--- Additional comments from m...@openoffice.org Thu Sep  3 17:30:42 + 
2009 ---
*** Issue 101922 has been marked as a duplicate of this issue. ***

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-09-02 Thread mav
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918


User mav changed the following:

What|Old value |New value

  Status|NEW   |RESOLVED

  Resolution|  |FIXED





--- Additional comments from m...@openoffice.org Wed Sep  2 19:56:20 + 
2009 ---
Fixed in fwk116. Now the office tries to open the file for editing always.

There is still a problem with this solution. If the problematic file is locked
by another thirdparty application using the system locking, the office is not
able to detect it.

The reason for this is that if the file can not be opened for editing, the
office still has to use osl_getFileStatus() to detect whether the file is
readonly, and only if it is not readonly the office treats it as a locked one.
So for this scenario we still have to improve osl_getFileStatus(), although this
scenario looks to be much less problematic than the original one described in
this issue.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-07-22 Thread kpalagin
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918


User kpalagin changed the following:

What|Old value |New value

  CC|'bollin,diocles,haggai,mba|'bollin,diocles,haggai,kpa
|,noelkoethe'  |lagin,mba,noelkoethe'





--- Additional comments from kpala...@openoffice.org Wed Jul 22 19:54:03 
+ 2009 ---
Mikhail,
is this issue still planned for 3.2?

Regards,
Kirill Palagin.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-04-21 Thread mav
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918


User mav changed the following:

What|Old value |New value

  CC|'bollin,diocles,haggai,noe|'bollin,diocles,haggai,mba
|lkoethe'  |,noelkoethe'





--- Additional comments from m...@openoffice.org Tue Apr 21 06:19:18 + 
2009 ---
mav-diocles: When the system file locking is off the document stream is opened
readonly. We could of course try to open it read-write, but on some systems it
is not possible to open a document in read-write mode without system file
locking being used.

I understand your concerns, but sorry, the file status handling should work as
expected. If it can not work so in general, this API just has no sense.

Second, I would not like to introduce a special solution for the case when
file-system lock is active. There are already enough differences between these
cases in office behavior, and any change that lets file-system lock and OOo lock
scenarios behave differently should have a good reason. 

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-04-21 Thread mav
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918





--- Additional comments from m...@openoffice.org Tue Apr 21 07:41:05 + 
2009 ---
Ok, it is probably indeed a good enough reason to introduce the difference
between system file locking implementation and OOo file locking implementation.
Actually, the mode when system file locking is off is used mostly in cases when
it is not reliable. In this case a non-perfect implementation of ACL handling
would be acceptable.

I shall change the implementation in the way that the file is opened directly
for editing ( without file status evaluation ) in case system file locking is
active.


-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-04-20 Thread diocles
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918





--- Additional comments from dioc...@openoffice.org Mon Apr 20 14:25:29 
+ 2009 ---
[I've been looking at this problem with haggai.]

diocles-mav: Fixing the attribute handling in osl_getFileStatus is /just about/
possible, but ugly... I really do not think we want to reimplement the OS's
POSIX ACL checks in userspace - it is likely to be complicated and prone to
error, and will still not take account of such things as NFSv4 ACLs or
SELinux/Apparmor permissions.

There is a POSIX access(2) function (does this in fact respect ACLs? probably
not), but there is a comment above set_file_access_rights() that there is a
potential performance problem involving symlinks when using it.

The code path which attempts to open the stream as writable and handles the
error condition is vastly more reliable.  How would this break exactly when file
locking is turned off?

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-04-20 Thread diocles
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918


User diocles changed the following:

What|Old value |New value

  CC|'bollin,haggai,noelkoethe'|'bollin,diocles,haggai,noe
|  |lkoethe'





-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-04-16 Thread mav
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918





--- Additional comments from m...@openoffice.org Thu Apr 16 06:54:53 + 
2009 ---
mav-noelkoethe:  You are right. Sorry, I have forgot about the last change I
did there. Indeed, the file readonly state is checked always now, so the patch
would not make behavior better in the latest version.

mav-haggai:

The fact that the patch can not be integrated as it is does not reduce the value
of the investigations. :)

As for the race condition, actually the read only mode of OOo is a designed race
condition itself, since the document file state can be changed while having the
document open. 

The only possible problem while using the attributes, as you have correctly
pointed, is that the document gets readonly state while being opened/edited. The
OOo implementation should be ready for it and handle it accordingly - either the
file would be opened readonly ( if it happens between the calls as you have
mentioned ) or an error would be shown on saving ( if it happens during the
editing ).

Thus I still tend to think that the correct approach would be to fix the
attributes handling. 


-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-04-15 Thread noelkoethe
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918





--- Additional comments from noelkoe...@openoffice.org Wed Apr 15 12:52:40 
+ 2009 ---
I tested this problem with OOo 3.1 rc1 (Build 9396) (on Debian Linux) and the
problem is still there.

I'm user nk and the file permissions (extended ACLs) are:

# getfacl testACL.odt 
# file: testACL.odt
# owner: root
# group: root
user::rw-
user:nk:rw-
group::r--
mask::rw-
other::r--

OOo 3.1 rc1 opens this file - where I have write permission - read-only.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-04-15 Thread noelkoethe
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918


User noelkoethe changed the following:

What|Old value |New value

  CC|'bollin,haggai'   |'bollin,haggai,noelkoethe'





-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-04-15 Thread mav
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918





--- Additional comments from m...@openoffice.org Wed Apr 15 13:19:25 + 
2009 ---
What I mean is that if it does not work with the 3.1 rc1 it would not also work
with the attached patch. The 3.1 in default configuration does exactly the same.
Anyway, the detection of the file readonly state has to be fixed.

mav-noelkoethe: Is it possible to create a new file on the location where the
target file is? It not, it is probably the problem, OOo can not create the lock
file.



-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-04-15 Thread mav
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918





--- Additional comments from m...@openoffice.org Wed Apr 15 13:27:41 + 
2009 ---
Sorry, a typo. I mean of course ...If not, it is probably the problem, OOo can
not create the lock file.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-04-15 Thread noelkoethe
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918





--- Additional comments from noelkoe...@openoffice.org Wed Apr 15 14:55:32 
+ 2009 ---
The directory is /tmp/ and everyone can write into the directory.

If I'm the owner (or have writeaccess via group) the lockfile is created:

-rw-r--r--   1 nk   root 76 15. Apr 16:51 .~lock.testACL.odt#
-rw-rw-r--+  1 root nk 7461 15. Apr 14:46 testACL.odt

and if I have write access via the extended ACLs no lockfile will be created.
The lockfile is only created if OOo detects the document as writeable which
makes sense.:)

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-04-15 Thread haggai
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918





--- Additional comments from hag...@openoffice.org Wed Apr 15 16:21:09 
+ 2009 ---
haggai-mav:

 mav-haggai: Thank you for the investigation. Sorry, but the attached patch is
 just a hack that would break the behavior in case system file locking is 
 turned
 off. 

Okay, we hadn't run through the full set of tests yet to determine if anything
else had broken as a result of the patch. That was why I posted the patch for
your comments before going further :)

 The real problem, as you already have already written, is in
 implementation/usage of osl_getFileStatus() call. This problem should be fixed
 even if the default configuration works well in OOo3.1, since it is 
 possible to turn the system file locking off, and then we would have just 
 the same problem.

I don't think you can rely on osl_getFileStatus, instead of opening the file as
writable. You'll always have potential race conditions, where the state of the
file changes between the calls. Or are you thinking of using osl_getFileStatus
to see if you could open it as writable, then handle an error in the race
condition case if you then find it is no longer writeable?


-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-04-14 Thread mav
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918


User mav changed the following:

What|Old value |New value

Target milestone|---   |OOo 3.2





--- Additional comments from m...@openoffice.org Tue Apr 14 06:38:01 + 
2009 ---
The OOo3.1 version should work well in this scenario in default configuration,
could somebody please try the OOo3.1 release candidate?

mav-haggai: Thank you for the investigation. Sorry, but the attached patch is
just a hack that would break the behavior in case system file locking is turned
off. 

The real problem, as you already have already written, is in
implementation/usage of osl_getFileStatus() call. This problem should be fixed
even if the default configuration works well in OOo3.1, since it is possible to
turn the system file locking off, and then we would have just the same problem.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-04-03 Thread haggai
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918


User haggai changed the following:

What|Old value |New value

  CC|'bollin'  |'bollin,haggai'

   Component|porting   |framework

  Status|NEW   |STARTED

  OS/Version|Mac OS X  |All

  QA contact|iss...@porting|iss...@framework

Platform|Macintosh |All

Subcomponent|MacOSX|code





--- Additional comments from hag...@openoffice.org Fri Apr  3 16:19:17 
+ 2009 ---
This is not a Mac only issue. I have reproduced it by using extended ACLs, and I
am told it can be reproduced via Samba too. 

The problem occurs in any place that the simple detection heuristic for a read
only file in osl_getFileStatus fails. This is a result of the change in
mediadescriptor.cxx (Revision 1.17.78.1) that was made as part of Issue 85794.

Before the change, OOo would try to open the file for writing to decide if the
file could be opened for editing or not. Now, it will not try to open the file
for writing if locking is off, and the heuristic will be used instead.

haggai-mav: I am assigning this to you for your comments about this change.

I will attach a patch which solves the immediate problem. I have not yet
verified if mav's locking changes are all working as intended.


-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-04-03 Thread haggai
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918


User haggai changed the following:

What|Old value |New value

 Assigned to|fheckl|mav

  Status|STARTED   |NEW





--- Additional comments from hag...@openoffice.org Fri Apr  3 16:21:24 
+ 2009 ---
haggai-mav: Assigning to you. Please see my last comment.

-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org



[framework-issues] [Issue 96918] ACL information not being read.

2009-04-03 Thread haggai
To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=96918


User haggai changed the following:

What|Old value |New value

 Attachment is patch|  |Created an attachment (id=
|  |61384)
Patch to restore th
|  |e old behaviour when openi
|  |ng files with ACLs or remo
|  |te files






--- Additional comments from hag...@openoffice.org Fri Apr  3 16:22:47 
+ 2009 ---
Created an attachment (id=61384)
Patch to restore the old behaviour when opening files with ACLs or remote files


-
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

-
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


-
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org