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 76514 - NPE when try to checkout code from https url
Summary: NPE when try to checkout code from https url
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Subversion (show other bugs)
Version: 5.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-17 18:41 UTC by claudio4j
Modified: 2006-05-22 12:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
environment variables (3.51 KB, text/plain)
2006-05-17 21:52 UTC, claudio4j
Details
netbeans log messages (30.70 KB, text/plain)
2006-05-17 21:52 UTC, claudio4j
Details

Note You need to log in before you can comment on or make changes to this bug.
Description claudio4j 2006-05-17 18:41:56 UTC
[JDK 6, build 83]
[svn, version 1.3.1 (r19032)]
[5.5 beta]
new .netbeans/5.5beta

Steps:
1) Subversion menu --> checkout
2) type some https at Repository URL throws the NPE below. Even pasting an URL
doesn't work.

    If I type at the URL, something like "http:" nothing happens, if I put a
slash, the NPE is throw.


java.lang.NullPointerException
	at java.lang.String.<init>(String.java:594)
	at
org.netbeans.modules.subversion.config.PasswordFile.getRealmString(PasswordFile.java:108)
	at
org.netbeans.modules.subversion.config.PasswordFile.acceptSvnUrl(PasswordFile.java:127)
	at
org.netbeans.modules.subversion.config.PasswordFile.findFileForUrl(PasswordFile.java:66)
	at
org.netbeans.modules.subversion.ui.repository.Repository$2.run(Repository.java:144)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
Comment 1 Peter Pis 2006-05-17 21:25:39 UTC
Can't reproduce. Could you please provide details about your setup? Some special
setup, language, location of ".subversion" folder... Thanks.
Comment 2 claudio4j 2006-05-17 21:51:40 UTC
The system is configured to UTF-8 pt_BR
See attached the environment variables

NetBeans is configured to UTF-8: Tools menu --> Options -->  Advanced options
--> Editing --> Java Sources --> Default encoding is UTF-8

See attached the netbeans log.

Tried with JDK 5_05, same problem (as you can see on the log file), both
attempts, with a new fresh userdir.
Comment 3 claudio4j 2006-05-17 21:52:20 UTC
Created attachment 30456 [details]
environment variables
Comment 4 claudio4j 2006-05-17 21:52:49 UTC
Created attachment 30457 [details]
netbeans log messages
Comment 5 claudio4j 2006-05-17 21:54:37 UTC
The .subersion is located under $HOME, so /home/claudio/.subversion

Is there some special netbeans jvm switch I can turn it on to enable more
debugging related to the subversion module ?
Comment 6 Tomas Stupka 2006-05-17 22:13:15 UTC
i know the problem, but i don't know the exact reason for it yet.

the password file is already fixed, so the implementation is now a bit more
robust and no exceeption should arrive.

still, it would help me a lot to see the file which caused this problem.

subversion holds the usernames and passwords in the .subversion/auth/svn.simple
directory. we try to read this files to preset the password for the given url if
it was already set from the commandline. there is probably someting on, at least
one of them, causing the exception. unfortunatelly, i don't know exactly what.
could you please send us this files, and of course, we are not interested in
your username(s)/password(s), so just scramble them out (e.g xxxxxxxx). i hope
this want be much work for you, ad how i've already said - it would help a lot.
thanks.

owering priority because of the fix mentioned above
Comment 7 claudio4j 2006-05-17 23:49:21 UTC
See below:

the first one doesn't have a password field

$ cat /home/claudio/.subversion/auth/svn.simple/75e120a44b978d7deba8412fdf875526
K 15
svn:realmstring
V 62
<https://opensvn.csie.org:443> Subversion repository: claudius
K 8
username
V 7
claudio
END

The following password is xxxxxx

$ cat /home/claudio/.subversion/auth/svn.simple/7a29c93b184ea229cbc2accf8cd19eaf
K 8
passtype
V 6
simple
K 8
password
V 8
xxxxxxxx
K 15
svn:realmstring
V 51
<http://svn.javaforge.com:80> Subversion Repository
K 8
username
V 7
claudio
END


hope it helps
Comment 8 Tomas Stupka 2006-05-22 12:49:26 UTC
fixed

Checking in PasswordFile.java;
/cvs/subversion/main/src/org/netbeans/modules/subversion/config/PasswordFile.java,v
 <--  PasswordFile.java
new revision: 1.7; previous revision: 1.6
done
Checking in CertificateFile.java;
/cvs/subversion/main/src/org/netbeans/modules/subversion/config/CertificateFile.java,v
 <--  CertificateFile.java
new revision: 1.5; previous revision: 1.4
done
Checking in KVFile.java;
/cvs/subversion/main/src/org/netbeans/modules/subversion/config/KVFile.java,v 
<--  KVFile.java
new revision: 1.9; previous revision: 1.8
done