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 207168 - Subversion import does not work correctly in multi user environments
Summary: Subversion import does not work correctly in multi user environments
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 7.1
Hardware: PC Solaris
: P2 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-11 11:45 UTC by blinke
Modified: 2012-02-23 14:21 UTC (History)
0 users

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 blinke 2012-01-11 11:45:21 UTC
We are using Netbeans on a larger SunRay based setup, with several SunRay terminal servers and a central NFS-based installation of NetBeans. Several users on a terminal server may use NetBeans at the same time.

Upon importing a new project into our subversion repository, I got the following error message: org.tigris.subversion.javahl.ClientException: Path '/var/tmp/svn_dummy/ConveyorDesigner' does not exist

The subversion log also contains that error message:
==[IDE]== 11.01.2012 11:34:53 Connecting to Subversion Repository...
==[IDE]== 11.01.2012 11:34:55 Connecting to Subversion Repository... finished.
==[IDE]== 11.01.2012 11:35:06 Importing...
svn: URL 'https://svn.cebitec.uni-bielefeld.de/svn/BioGraph/ConveyorDesigner' non-existent in revision '1.671'
svn: URL 'https://svn.cebitec.uni-bielefeld.de/svn/BioGraph/ConveyorDesigner' non-existent in revision '1.671'
import -m "initial checkin after Netbeans based rewrite" -N /var/tmp/svn_dummy/ConveyorDesigner https://svn.cebitec.uni-bielefeld.de/svn/BioGraph/ConveyorDesigner
svn: Path '/var/tmp/svn_dummy/ConveyorDesigner' does not exist
svn: Path '/var/tmp/svn_dummy/ConveyorDesigner' does not exist
==[IDE]== 11.01.2012 11:35:19 Importing... finished.

The directory /var/tmp/svn_dummy exists, but belongs to another user. Its permissions are 0755, so I'm not able to create a sub directory. The corresponding user has not logged in for over a year, so this directory was just left over by the subversion support in NetBeans (as are several dozends additional files in the temporary directory.....).

A first attempt to solve the was setting TMPDIR and TEMPDIR to enforce another directory for temporary files. But these environment variables are not honoured by NetBeans.....

Since I'm not an administrator on this box, I'm not able to remove the directory. If I were, the subversion plugin would probably create an new directory and leave it in place, delegating the problem to the next user.

The subversion code should be checked for correctly handling multi user situations, e.g. by including the user name in the name of temporary directories. The correct removal of temporary files and directories should also be checked.

Other solutions would be the correct handling of TMPDIR/TEMPDIR or allowing a user to specify which directory should be used by the subversion plugin.
Comment 1 Ondrej Vrabec 2012-01-11 16:42:49 UTC
fix: http://hg.netbeans.org/core-main/rev/aa217585f140
Comment 2 Quality Engineering 2012-01-13 21:51:28 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/aa217585f140
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #207168 - Subversion import does not work correctly in multi user environments
Comment 3 Stepan Zebra 2012-02-08 16:08:01 UTC
verified in trunk
Comment 4 Ondrej Vrabec 2012-02-08 16:22:34 UTC
7.1.1: http://hg.netbeans.org/releases/rev/d05bd3087903
Comment 5 Quality Engineering 2012-02-09 02:38:22 UTC
Integrated into 'releases', will be available in build *201202082200* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/d05bd3087903
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #207168 - Subversion import does not work correctly in multi user environments
(transplanted from aa217585f1409db2fdbb1b7ae56695c958154efe)
Comment 6 Stepan Zebra 2012-02-23 14:21:06 UTC
verified in 7.1.1 RC1