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 38344 - Broken content of project tab after 3.5 -> main trunk migration
Summary: Broken content of project tab after 3.5 -> main trunk migration
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS (show other bugs)
Version: 3.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-29 15:37 UTC by Jaroslav Tulach
Modified: 2007-01-04 17:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
StringIndexOutOfBoundsException (7.67 KB, patch)
2004-04-20 10:04 UTC, Peter Pis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2003-12-29 15:37:59 UTC
After removal JavaCVS all user project
configurations that used JavaCVS are broken. 

In 3.5 (or older dev build that still contained
javacvs module) mount a CVS repository using
javacvs, select a directory and add it to project.
A link pointing to the directory is created in the
Project Tab

Now switch to new dev build and open the same user
directory with it. The link in project tab is now
broken.
Comment 1 Jaroslav Tulach 2003-12-29 15:39:42 UTC
This is caused by the fact that the new CVS filesystem has different
getSystemName() that the old one and as links store this name, they
are not valid anymore. Simple fix would be to keep the system name
unchanged.
Comment 2 Martin Entlicher 2004-01-05 10:23:04 UTC
This is a problem of the javacvs compatibility module. Reassigning to
javacvs.

Thanks for the evaluation, I will keep the original system name.
Comment 3 Martin Entlicher 2004-01-05 13:52:28 UTC
Fixed in trunk.

Support for preferred system name added into VcsFileSystem:
/cvs/vcscore/src/org/netbeans/modules/vcscore/VcsFileSystem.java,v 
<--  VcsFileSystem.java
new revision: 1.241; previous revision: 1.240

The preferred system name is stored persistently:
/cvs/vcsgeneric/src/org/netbeans/modules/vcs/advanced/projectsettings/CommandLineVcsFileSystemInstance.java,v 
<--  CommandLineVcsFileSystemInstance.java
new revision: 1.28; previous revision: 1.27

And finally the preferred system name is set by javacvs compatibility
module:
/cvs/javacvs/compat/src/org/netbeans/modules/cvsclient/NbJavaCvsFileSystem.java,v 
<--  NbJavaCvsFileSystem.java
new revision: 1.3; previous revision: 1.2
Comment 4 Peter Pis 2004-04-20 09:37:59 UTC
When 3.6 uses user-directory created in 3.5, it raises
StringIndexOutOfBoundsException (when starting). Also statuses of
nodes are [Updt; x.x].   But status should be [Up-to-date; x.x]. 
Comment 5 Peter Pis 2004-04-20 10:04:12 UTC
Created attachment 14472 [details]
StringIndexOutOfBoundsException
Comment 6 Martin Entlicher 2004-04-20 11:37:32 UTC
The attached "exceptoin.txt" is not an exception, but ide.log.
Please attach the exception.

Also, this is likely not P1, like the original issue was. So this
should probably be submitted as a separate issue, if the project tab
is O.K.
Comment 7 Peter Pis 2004-04-20 12:57:57 UTC
This exception has nothing to do with this issue. It's some another
problem. 
Comment 8 Peter Pis 2004-04-21 07:56:42 UTC
Verified in
-NetBeans 3.6