https://bugzilla.novell.com/show_bug.cgi?id=690454

https://bugzilla.novell.com/show_bug.cgi?id=690454#c0


           Summary: IsolatedStorageFile.GetDirectoryNames fails to find
                    subfolders.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1;
Trident/5.0)

Isolated storage search fails when I tried to use asterisk to discover all
folders in the specified subfolder.
The following code runs on .NET successfully, but crashes on Mono:
var store = IsolatedStorageFile.GetMachineStoreForAssembly();
store.CreateDirectory("dir");
var subdir = Path.Combine("dir", "subdir");
store.CreateDirectory(subdir);
var names = store.GetDirectoryNames(string.Concat(subdir,
Path.DirectorySeparatorChar, '*'));

Reproducible: Always

Steps to Reproduce:
1. Open isolated storage
2. Invoke GetDirectoryNames with XXX/XXX/* pattern
Actual Results:  
Unhandled Exception: System.Security.SecurityException: A security error has
been detected.
  at System.IO.IsolatedStorage.IsolatedStorageFile.GetDirectoryNames
(System.String searchPattern)

Expected Results:  
An array of subdirectories

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to