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 71032 - Wrong parsing of CVS root
Summary: Wrong parsing of CVS root
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2006-01-05 09:19 UTC by vnicolici
Modified: 2007-01-04 17:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Fixed code (1.78 KB, patch)
2006-01-05 10:37 UTC, _ pkuzel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description vnicolici 2006-01-05 09:19:09 UTC
I checked out some projects (using WinCVS), and used this cvs root:

:pserver:mike@javadev.zappmobile.ro:2401:/home/cvsroot

I opened the projects with NetBeans 5.0 beta 2, and after using CVS -> Show 
Changes an error popup was displayed:

"Can not connect to CVS repository using CVS 
root: :pserver:mike@javadev.zappmobile.ro:2401:/home/cvsroot. The following 
problem(s) occured: * Authentication failed. Response from server was error 
0:/h"

The workaround was to remove ":2401" from the cvs root.

messages.log:
INFORMATIONAL *********** Exception occurred ************ at 11:13 AM on Jan 
5, 2006
org.netbeans.lib.cvsclient.connection.AuthenticationException: Authentication 
failed. Response from server was: "error 0 :/h".
	at 
org.netbeans.lib.cvsclient.connection.PServerConnection.openConnection
(PServerConnection.java:238)
	at org.netbeans.lib.cvsclient.connection.PServerConnection.open
(PServerConnection.java:326)
	at org.netbeans.lib.cvsclient.Client.ensureConnection(Client.java:290)
	at org.netbeans.lib.cvsclient.command.update.UpdateCommand.execute
(UpdateCommand.java:214)
	at org.netbeans.lib.cvsclient.Client.executeCommand(Client.java:577)
	at org.netbeans.modules.versioning.system.cvss.CommandRunnable$1.run
(CommandRunnable.java:69)
[catch] at java.lang.Thread.run(Thread.java:595)
Comment 1 Maros Sandor 2006-01-05 09:42:53 UTC
Your CVSROOT contains an extra semicolon and should be
":pserver:mike@javadev.zappmobile.ro:2401/home/cvsroot". Command line tool does
not like this syntax either.
Comment 2 vnicolici 2006-01-05 10:12:03 UTC
According to cvsnt 2.0.51d documentation the syntax is valid:

:method:[[user][:password]@]hostname[:[port]][:]/path/to/repository

Comment 3 _ pkuzel 2006-01-05 10:27:14 UTC
OK, accepted. After all expected fix is rather simple.
Comment 4 _ pkuzel 2006-01-05 10:37:13 UTC
Created attachment 28198 [details]
Fixed code
Comment 5 _ pkuzel 2006-01-05 10:43:13 UTC
FIXED

Checking in libsrc/org/netbeans/lib/cvsclient/CVSRoot.java;
/shared/data/ccvs/repository/javacvs/libsrc/org/netbeans/lib/cvsclient/CVSRoot.java,v
 <--  CVSRoot.java
new revision: 1.15; previous revision: 1.14
done
Checking in test/unit/library/org/netbeans/lib/cvsclient/CVSRootTest.java;
/shared/data/ccvs/repository/javacvs/test/unit/library/org/netbeans/lib/cvsclient/CVSRootTest.java,v
 <--  CVSRootTest.java
new revision: 1.10; previous revision: 1.9
done


Please mark with 50_HR_FIX and provide justification if you want 5.0 backport.