Bug 30104 - [Git] Clone fails with "Version control operation failed:. Argument cannot be null. Parameter name: path" when using an invalid https url
Summary: [Git] Clone fails with "Version control operation failed:. Argument cannot be...
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Version Control ()
Version: Trunk
Hardware: PC Mac OS
: Normal normal
Target Milestone: C7SR1
Assignee: Marius Ungureanu
URL:
Depends on:
Blocks:
 
Reported: 2015-05-14 19:03 UTC by Manish Sinha
Modified: 2016-06-28 13:27 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Manish Sinha 2015-05-14 19:03:25 UTC
Steps

1) Launch Xamarin Studio
2) Version Control > Checkout
3) Choose git
4) In URL enter "https://bugzilla.xamarin.com/enter_bug.cgi?classification=__all"
5) Click OK

Expected: Xamarin Studio informs the user that it is not a valid git repository URL

Actual: Clone fails with "Version control operation failed:. Argument cannot be null. Parameter name: path"

http://screencast.com/t/DVTapYimn

=== Xamarin Studio ===

Version 6.0 (build 644)
Installation UUID: 9f8d3275-c231-4976-ba77-8e684234ab4e
Runtime:
	Mono 4.0.1 ((detached/f802480)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400010028

=== Apple Developer Tools ===

Xcode 6.3.1 (7703)
Build 6D1002

=== Xamarin.iOS ===

Version: 8.10.0.267 (Business Edition)
Hash: 6481535
Branch: master
Build date: 2015-04-27 04:38:13-0400

=== Xamarin.Android ===

Version: 5.1.1.3 (Business Edition)
Android SDK: /Users/manish/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: 2.0.1.38 (Business Edition)

=== Build Information ===

Release ID: 600000644
Git revision: 324d611eaacd1e24d7b392f9b718550223bb38a8
Build date: 2015-05-14 14:20:04-04
Xamarin addins: 6abde9d311a7660d9ae1f49247c8bedb7faf18e8
Build lane: monodevelop-lion-master

=== Operating System ===

Mac OS X 10.10.3
Darwin Manishs-MacBook-Pro.local 14.3.0 Darwin Kernel Version 14.3.0
    Mon Mar 23 11:59:05 PDT 2015
    root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64
Comment 1 Marius Ungureanu 2015-05-20 07:55:48 UTC
Fixed in master.
Comment 3 Marius Ungureanu 2016-05-02 13:18:48 UTC
There is no way to validate that a given URL is a git repository. The HTTPS protocol for git allows for any kind of URL to used.

The message should have been "Not a git repository." therefore the bug being reopened is fine. I'll take a look.
Comment 4 xamarin-release-manager 2016-05-10 10:14:30 UTC
Fixed in version 6.1.0.788 (master)

Author: therzok
Commit: 084dd8240e209ad193f71877187848fb30d0cb5b (mono/monodevelop)