1

Closed

BUG: CloudStorage.GetFolder(...) fails if path ends with /

description

Steps to reproduce:
1) Have the following folders tree created in your DB: /temp/temp
2) try to call CloudStorage.GetFolder("/temp/temp/"). It will return null
3) try to call CloudStorage.GetFolder("/temp/temp"). A reference to the folder will be returned.
 
The problem is caused by a bug in the PathHelper.GetPathElements() method. Look at the array returned when a path ends with ‘/’. The last element of the array is an empty string.
 
Regards,
Yury
Closed Oct 11, 2010 at 4:35 PM by dei79
Issue is fixed with Changeset:http://sharpbox.codeplex.com/SourceControl/changeset/changes/62117

comments