Nant Tasks - Using https instead of http

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
vuser01
Posts: 18
Joined: Mon Feb 27, 2006 7:07 pm

Nant Tasks - Using https instead of http

Post by vuser01 » Wed Mar 01, 2006 9:32 am

Do the Nant Tasks provided in the latest build support https? I am able to get to a vault repository with no issues if I give the URL a form of: x.y.com. However, if I try to connect to a repository with the value of the URL being https://x.y.com I get an error stating:

"System.NullReferenceException: Object reference not set to an instance of an object". Is there a way to get around this?

For the issue above, I am trying to use the vaultlistfolder task.

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Wed Mar 01, 2006 1:07 pm

Actually the listfolder task is currently broken; I don't think your problem is due to the https. The build included in 3.1.7 is missing the repository attribute.

The NAnt tasks are open source and a fix (contributed by Owen Brady) has already been checked in, if you want to build the tasks yourself the code is in our public vault repository: http://vaultpub.sourcegear.com.

Otherwise, an official build that includes the fix will be released with 3.1.8, which is due out in the next few weeks.
Ian Olsen
SourceGear

vuser01
Posts: 18
Joined: Mon Feb 27, 2006 7:07 pm

same issue with vaultgetbylabel

Post by vuser01 » Wed Mar 01, 2006 7:41 pm

I am getting the same issue with using vaultgetbylabel. The interesting part is that using this function, I have no problem going through http, but when I go through https I do get the error. I did include the labelstring part in the target on both requests. Is there a problem that you know of with not being able to pull through https requests using this?

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Thu Mar 02, 2006 9:05 am

Trying to reproduce this, I was able to use getbylabel and https successfully.

You may need to accept the SSL certificate for the server using the GUI client first. When you first connect to a Vault server via SSL the GUI client will ask you about the certificate. The NAnt task doesn't handle this. If you permanently accept the certificate on the same machine (logged in as the same Windows user and Vault user) the NAnt task should work.
Ian Olsen
SourceGear

vuser01
Posts: 18
Joined: Mon Feb 27, 2006 7:07 pm

Post by vuser01 » Thu Mar 02, 2006 9:41 am

I did accept the ssl cert. In the URL, should I be using something like https://x.y.com or just x.y.com? I have tried both ways and still does not work. The respository is not on the same network, does that have anything to do with it?

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Thu Mar 02, 2006 9:45 am

The full url, with protocol (https://x.y.com) worked for me.

The NAnt tasks are open source, and the source is in the public Vault repository here: http://vaultpub.sourcegear.com. You can run the task in the debugger to try to figure out what's broken, if you'd like.
Ian Olsen
SourceGear

Post Reply