[Mono-bugs] [Bug 690454] New: IsolatedStorageFile.GetDirectoryNames fails to find subfolders.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Apr 28 00:45:13 EDT 2011



           Summary: IsolatedStorageFile.GetDirectoryNames fails to find
    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: mono-bugs at lists.ximian.com
        ReportedBy: sakno at tncor.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

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

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();
var subdir = Path.Combine("dir", "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.

More information about the mono-bugs mailing list