Bug 37309 - Creating project new folder with '\' at the end of name causes endless loop recursion
Summary: Creating project new folder with '\' at the end of name causes endless loop r...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Management ()
Version: 5.10 (C6SR3)
Hardware: PC Windows
: Normal normal
Target Milestone: (C7)
Assignee: Matt Ward
Depends on:
Reported: 2015-12-28 21:07 UTC by MrSmith
Modified: 2016-01-13 08:01 UTC (History)
2 users (show)

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

Recursive Folder Creation Example (35.14 KB, image/png)
2015-12-28 21:07 UTC, MrSmith

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:

Description MrSmith 2015-12-28 21:07:47 UTC
Created attachment 14405 [details]
Recursive Folder Creation Example

Description of Problem:
When creating a New Folder in a project and (fat-fingering) the backslash '\' at the end of the folder name causes an endless recursion of the same folder name inside of itself (endlessly).

Note, this recursive folder is only local the the IDE and not actually created physically.

+ MyFolder
  + MyFolder
    + MyFolder

Steps to reproduce the problem:
1. Right click project > Add > New Folder
2. Input your folder name with '\' at the end. ("MyFolder\")
3. Click, OK or press Enter

Actual Results:
The project space will contain 

Expected Results:
IDE should prompt the user of invalid character usage for folder name and either exit the process or create new folder with default name ("New Folder").

How often does this happen? 
Any time the user fat-fingers the backslash key (above Enter key) when typing in the Folder's name.

Additional Information:
* Severity: Low
* Platform: Windows 8.1 64-bit
* IDE: Xamarin Studio
* Version: 5.10.1 (build 6)

Thank you Xamarin Team for everything!
Comment 1 xamarin-release-manager 2016-01-12 17:41:47 UTC
Fixed in version (master)

Author: Matt Ward
Commit: 0269e49b2df262b86d67ba73d61344f6c9b3ec3c (mono/monodevelop)
Comment 2 Udham Singh 2016-01-13 08:01:09 UTC
I am also able to reproduce this Issue with XS is the screencast for the same: http://www.screencast.com/t/bS3gmh14vRy

I have checked this Issue with master build as well and this is working fine on master build. I am seeing a dialog for the same.This is the screencast for the same : http://www.screencast.com/t/n3cYBCrPf

Environment Info:

=== Xamarin Studio ===

Version 6.0 (build 2847)
Installation UUID: 294a85ce-32bb-4ec9-800e-01ae80582ab8
	Microsoft .NET 4.0.30319.42000
	GTK+ 2.24.23 (MS-Windows theme)
	GTK# 2.12.26

=== Xamarin.Profiler ===

Not Installed

=== Xamarin.Android ===

Version: (Enterprise Edition)
Android SDK: D:\SDK\android-sdk
	Supported Android versions:
		2.3    (API level 10)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
		5.1    (API level 22)
		6.0    (API level 23)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.0.1
SDK Build Tools Version: 23 rc3

Java SDK: C:\Program Files\Java\jdk1.7.0_71
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: 0.6.5
Location: C:\Program Files\Xamarin Android Player\DeviceManager.exe

=== Build Information ===

Release ID: 600002847
Git revision: 170ce8ef367b3e6951ed958a35660134f183d1d1
Build date: 2016-01-12 17:42:51-05
Xamarin addins: 84948386eaf627e6d7630fbef3a721e501702f3b
Build lane: monodevelop-windows-master

=== Operating System ===

Windows 6.3.9600.0 (64-bit)