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 47912 - VSS: Add All fails with exception.
Summary: VSS: Add All fails with exception.
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcsgeneric (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-25 13:36 UTC by Peter Pis
Modified: 2006-03-24 10:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception (1.35 KB, text/plain)
2004-08-25 13:36 UTC, Peter Pis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Pis 2004-08-25 13:36:08 UTC
>System Info:
  Product Version       = NetBeans IDE Dev (Build
200408241800)
  Operating System      = Windows XP version 5.1
running on x86
  Java; VM; Vendor      = 1.5.0-beta3; Java
HotSpot(TM) Client VM 1.5.0-beta3-b6
2; Sun Microsystems Inc.
  Java Home             = C:\Program
Files\java\jdk1.5.0\jre
  System Locale; Encod. = en_US (nb); Cp1252

Steps:
1. Register new VSS versioned directory and create
in it new project.
2. On the root of the project invoke "VSS | Add
All" action.

Action fails with exception.

ShowStopper.
Comment 1 Peter Pis 2004-08-25 13:36:43 UTC
Created attachment 17132 [details]
exception
Comment 2 Peter Pis 2004-08-25 13:42:14 UTC
Also back-up files are added to the repository.
Comment 3 Martin Entlicher 2004-08-25 15:01:41 UTC
It looks like the problem occurs when the user name begins with lower
case. It does not happen to me, because my user name begins with upper
case.
Comment 4 Martin Entlicher 2004-08-25 15:33:36 UTC
Hopefully fixed in trunk, please verify.
The case is ignored when comparing user names.
Also, when ss.ini file is not found, NPE is not thrown and an error is
reported on the error output.

/cvs/vcsgeneric/profiles/vss/src/org/netbeans/modules/vcs/profiles/vss/commands/GetInitializationVariable.java,v
 <--  GetInitializationVariable.java
new revision: 1.2; previous revision: 1.1

/cvs/vcsgeneric/profiles/vss/src/org/netbeans/modules/vcs/profiles/vss/commands/SetInitializationVariable.java,v
 <--  SetInitializationVariable.java
new revision: 1.2; previous revision: 1.1
Comment 5 Jiri Kovalsky 2004-08-26 12:44:15 UTC
This is Q-build stopper, please fix this in QBE200408241800 branch too.
Comment 6 Peter Pis 2004-08-26 16:06:58 UTC
Now VSS Add All action fails when added structure contains empty folder.
Comment 7 Martin Entlicher 2004-08-26 16:14:23 UTC
We have to somehow disable ADD_ALL_CMD command on folders that are
empty. There is, however, not a straightforward mechanism for that.
Comment 8 Martin Entlicher 2004-08-26 17:27:34 UTC
Not only empty folders, but also folders which contain only ignored
files have to be skipped by ADD_ALL_CMD. I found this easier to
implement directly in SharableFilesCommand class, which can detect
this state and add only the folder (via Create Project command) and
not it's content.

Fixed in trunk:
/cvs/vcsgeneric/src/org/netbeans/modules/vcs/profiles/commands/SharableFilesCommand.java,v
 <--  SharableFilesCommand.java
new revision: 1.4; previous revision: 1.3

/cvs/vcsgeneric/profiles/vss/src/org/netbeans/modules/vcs/profiles/vss/config/vss.xml,v
 <--  vss.xml
new revision: 1.32; previous revision: 1.31

/cvs/vcsgeneric/profiles/vss/src/org/netbeans/modules/vcs/profiles/vss/config/vssLoc_XX.xml,v
 <--  vssLoc_XX.xml
new revision: 1.26; previous revision: 1.25
Comment 9 Martin Entlicher 2004-08-26 17:31:20 UTC
Merged into QBE200408241800 branch:

/cvs/vcsgeneric/src/org/netbeans/modules/vcs/profiles/commands/SharableFilesCommand.java,v
 <--  SharableFilesCommand.java
new revision: 1.2.2.2; previous revision: 1.2.2.1

/cvs/vcsgeneric/profiles/vss/src/org/netbeans/modules/vcs/profiles/vss/config/vss.xml,v
 <--  vss.xml
new revision: 1.31.2.1; previous revision: 1.31

/cvs/vcsgeneric/profiles/vss/src/org/netbeans/modules/vcs/profiles/vss/config/vssLoc_XX.xml,v
 <--  vssLoc_XX.xml
new revision: 1.25.2.1; previous revision: 1.25
Comment 10 Peter Pis 2004-08-27 09:52:18 UTC
Verified in NB 200408262030.