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 34721 - Remove redundant slashes in RelativeMountPoint (from FS Customizer)
Summary: Remove redundant slashes in RelativeMountPoint (from FS Customizer)
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcsgeneric (show other bugs)
Version: 3.x
Hardware: PC Solaris
: P4 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-02 08:49 UTC by dmladek
Modified: 2003-12-11 14:27 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 dmladek 2003-07-02 08:49:17 UTC
Description:
============
When you customize your G-CVS FS, and set your 
Relative Mount Point: and this RMP ends with slash

then it causes unpredictable problems when you
performing
cvs actions like update, refresh, etc.

eg.
I perform update on 'test' package and the
foloving Refresh
failed:
The Refresh command failed.
Check the full output of the command on the
Runtime tab in Explorer. The error output follows:
No error output is available.
/bin/sh:
/home/dm103276/.A/Build.Test/CVS/testonly/Work-psrv2/scratch//dmladek/est:
does not exist

because there were 2 slashes after scratch and
there was eaten the letter 't' from package test

'scratch\' was my RMP.


Suggestion:
===========
Please, check the value of the Relative mount
point and remove the last path separator...
Comment 1 dmladek 2003-07-02 09:00:57 UTC
I found another less likely to happen but more serrious stuff with RMP:

and this is if you double slashes somewhere in the midle of the path
of RMP.

Than this value of RMP is added into text filed of Working dir 
and future work with this G-CVS FS is impossible...

Please also check for redundant slashes....
Comment 2 Martin Entlicher 2003-08-22 21:56:15 UTC
Fixed in the main trunk.
All multiple intermediate slashes or backslashes are replaced with a
single slash or backslash. Also any prepended or appended slashes and
backslashes are removed.

This is fixed in the main trunk and in projects builds as well (for
sure if the relative mount point will ever be resurrected):

/cvs/vcscore/src/org/netbeans/modules/vcscore/VcsFileSystem.java,v 
<--  VcsFileSystem.java
new revision: 1.229; previous revision: 1.228
Checking in src/org/netbeans/modules/vcs/advanced/VcsCustomizer.java;
/cvs/vcsgeneric/src/org/netbeans/modules/vcs/advanced/VcsCustomizer.java,v 
<--  VcsCustomizer.java

/cvs/vcscore/src/org/netbeans/modules/vcscore/VcsFileSystem.java,v 
<--  VcsFileSystem.java
new revision: 1.193.2.11; previous revision: 1.193.2.10
Comment 3 Martin Entlicher 2003-08-22 21:58:18 UTC
FIXED.
Comment 4 Jiri Kovalsky 2003-08-25 11:19:36 UTC
I hope not. ;-) Dane can you please look at this ? Thanks.
Comment 5 dmladek 2003-08-25 15:10:38 UTC
Don't understand you Jiri :-( You hope what? What did you mean? 
but I'll take a look:-)
Comment 6 Jiri Kovalsky 2003-08-25 15:47:37 UTC
I meant I hope not to resurrect the relative mount point concept as
Martin explained his commit to projects branch. Thanks for taking a
look ... ;-)