This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 29224 - Enhancement: disallow working directory to be accessible by another user
Summary: Enhancement: disallow working directory to be accessible by another user
Status: VERIFIED DUPLICATE of bug 16295
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscore (show other bugs)
Version: 3.x
Hardware: Sun SunOS
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 29514 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-12-02 22:19 UTC by John Baker
Modified: 2003-01-14 11:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Baker 2002-12-02 22:19:12 UTC
This is a request to prevent another user from
accessing another user's working directory.  

If 2 users try to access the same working
directory then exceptions
occurs while executing check-out:

Mon Dec 02 14:10:31 PST 2002:
java.io.FileNotFoundException:
/export/home1/cfqa1/work/PartSupplier2CMR/Data2/CVS/netbeans.cmd.cache
(Permission denied)
java.io.FileNotFoundException:
/export/home1/cfqa1/work/PartSupplier2CMR/Data2/CVS/netbeans.cmd.cache
(Permission denied)
	at java.io.FileOutputStream.open(Native Method)
	at
java.io.FileOutputStream.<init>(FileOutputStream.java:176)
	at
java.io.FileOutputStream.<init>(FileOutputStream.java:131)
[catch] at
org.netbeans.modules.vcscore.caching.VcsCacheDir.writeToDisk(VcsCacheDir.java:338)
	at
org.netbeans.modules.vcscore.cache.CacheDir.setComplete(CacheDir.java:325)
	at
org.netbeans.modules.vcscore.cache.CacheQueue.run(CacheQueue.java:57)
Comment 1 Martin Entlicher 2002-12-03 15:56:03 UTC
IMHO no such restriction should be made. The users should know what
they are doing.

But perhaps the cache infrastructure should be more robust to be able
to live somehow without access to CVS/netbeans.cmd.cache.
Comment 2 John Baker 2002-12-03 21:28:03 UTC
New users to CVS may not know what they are doing or may make
a mistake and accidently try to make changes to someone else's working
directory.
Comment 3 Martin Entlicher 2002-12-04 13:17:50 UTC
I do not see why NetBeans should not allow users to make changes in
someone else's working directory if the OS permits it. I see this as a
problem of the OS or it's setup and NetBeans should not try to solve
it, because they can not do it well.

How do you suppose, that NetBeans should recognize that one user is
going to use a working directory of another user?? There is no user
info in java.io.File. And even if it would be possible I'm not
convinced, that NetBeans should do it.

However the problem is, that when the cache files are not writable a
lot of exceptions is thrown (although they probably do not hurt
anything). The cache infrastructure should be able to live without
being able to store anything to the disk.
Comment 4 John Baker 2002-12-05 16:47:35 UTC
OK, there might be a situation where a user
needs to use another's working directory.
At least if the directory is not writable
then the exception should be caught.
Comment 5 Martin Entlicher 2002-12-12 13:44:42 UTC
Changing to defect. The exception must be processed somehow, the FS
must be usable even if the cache information can not be written.
Comment 6 Martin Entlicher 2002-12-12 13:45:59 UTC
*** Issue 29514 has been marked as a duplicate of this issue. ***
Comment 7 Martin Entlicher 2003-01-09 14:10:55 UTC
The problem of permissions when writing to VCS cache is a duplicate of
the recently reopened issue #16295.
The cache functionality must survive permission problems and do not
bother the user with every unsuccessfull disk access.


*** This issue has been marked as a duplicate of 16295 ***
Comment 8 Jiri Kovalsky 2003-01-14 11:16:22 UTC
Agreed. Verified as duplicate of another bug about more robust cache.