[corlib] Improve CancellationTokenSource test
[mono.git] / mcs / class / corlib / System.IO.IsolatedStorage / ChangeLog
1 2010-06-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2
3         * MoonIsolatedStorageFile.cs: Add IsEnabled.
4
5 2010-06-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6
7         * IsolatedStorageFile.cs: Remove should catch all the exceptions
8         caused by DirectoryInfo.Delete and throw an IsolatedStorageException
9         instead.
10
11 2010-06-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12
13         * IsolatedStorageFile.cs: Ugh, accidentally forgot to commit the changes for
14         in the previous commit.
15
16 2010-06-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17
18         * IsolatedStorageFile.cs: GetUserStoreForSite is only throwing a
19         NotSupportedException.
20         * IsolatedStorageFileStream.cs: Implement Flush by calling the base impl.
21
22 2010-06-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23
24         * IsolatedStorageFile.cs: Remove and DeleteFile must report any
25         error found in our System.IO classes as IsolatedStorageException.
26
27 2010-06-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
28
29         * IsolatedStorageFile.cs: Update the exceptions we are firing in 4.0
30         for CreateDirectory, GetFileNames and GetDirectoryNames.
31
32 2010-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
33
34         * IsolatedStorageSecurityState.cs: Make our .ctor internal - so we
35         don't expose a public .ctor at all.
36
37 2010-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
38
39         * IsolatedStorageFile.cs: Our 4.0 methods receiving a path should
40         either return false or throw an IsolatedStorageException if the path
41         refers to a directory outside the storage root.
42
43 2010-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
44
45         * IsolatedStorageFile.cs: In CheckOpen check that the directory for
46         the current storage is still valid, and throw an exception if needed.
47         Also, in the static Remove method call Directory.Delete only if the
48         directory exists, to avoid throwing an exception there.
49
50 2010-06-03  Sebastien Pouliot  <sebastien@ximian.com>
51
52         * MoonIsolatedStorage.cs: Make class internal so we can access it
53         from System.Window.dll to adjust quotas
54
55 2010-06-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
56
57         * IsolatedStorageFile.cs: Check for empty paths and existing paths in
58         both MoveFile and MoveDirectory, just as we do in CopyFile. Finally
59         cover our IO calls with a try-catch block, so all the IOException
60         instances are reported as IsolatedStorageException.
61
62 2010-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
63
64         * IsolatedStorage.cs:
65         * IsolatedStorageFile.cs: Implement AvailableFreeSpace, Quota,
66         UsedSize and IncreaseQuotaTo.
67
68 2010-05-27  Carlos Alberto Cortez <calberto.cortez@gmail.com> 
69
70         * IsolatedStorageFile.cs: Implement CopyFile.
71
72 2010-05-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
73
74         * IsolatedStorageFile.cs: Implement GetCreationTime, GetLastAccessTime
75         and GetLastWriteTime, as well as creating a single method to check for
76         the closed/disposed fields.
77
78 2010-05-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
79
80         * IsolatedStorageFile.cs: Remove should call Close, just as .Net seems
81         to do.
82
83 2010-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
84
85         * IsolatedStorageFileStream.cs: When creating the instance, we should check 
86         for diposed first, and for closed on second place.
87         * IsolatedStorageFile.cs: Add Obsolete to CurrentSize and MaximumSize,
88         as part of 4.0.
89
90 2010-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
91
92         * IsolatedStorageFileStream.cs: When creating our instance check that
93         the IsolatedStorageFile is not closed/disposed.
94         * IsolatedStorageFile.cs: Expose closed/disposed info as internal
95         properties, as well as implement 4.0 MoveDirectory/MoveFile, CreateFile
96         and OpenFile methods.
97
98 2010-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
99
100         * IsolatedStorageFile.cs: Implement FileExists and DirectoryExists, as
101         well as adding fields to detect that Close/Dispose have been called
102         and fire the proper exceptions.
103
104 2010-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
105
106         4.0 Updates.
107
108         * IsolatedStorage.cs: Add ObsoleteAttribute to CurrentSize and
109         MaximumSize.
110         * IsolatedStorageSecurityState.cs: New, stubbed.
111         * IsolatedStorageSecurityOptions.cs: New file.
112
113 2010-05-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
114
115         * IsolatedStorageFile.cs: Add the new 4.0 overloads for
116         GetDirectoryNames and GetFileNames.
117
118 2010-03-16  Jb Evain  <jbevain@novell.com>
119
120         * IsolatedStorageFileEnumerator.cs
121         * MoonIsolatedStorageFileStream.cs
122         * MoonIsolatedStorageFile.cs
123         * MoonIsolatedStorage.cs
124         * IsolatedStorageScope.cs
125         * IsolatedStorageFileStream.cs
126         * IsolatedStorage.cs
127         * IsolatedStorageFile.cs:
128                 use MOONLIGHT symbol to disambiguate MonoTouch and Moonlight code.
129
130 2009-11-01  Sebastien Pouliot  <sebastien@ximian.com>
131
132         * MoonIsolatedStorageFile.cs: Add new CheckSearchPattern 
133         validation method. Fix GetDirectoryNames to behave like 
134         GetFileNames wrt searchPattern
135
136 2009-08-30  Jb Evain  <jbevain@novell.com>
137
138         * IsolatedStorageFileEnumerator.cs
139         * MoonIsolatedStorageFileStream.cs
140         * MoonIsolatedStorageFile.cs
141         * MoonIsolatedStorage.cs
142         * IsolatedStorageScope.cs
143         * IsolatedStorageFileStream.cs
144         * IsolatedStorage.cs
145         * IsolatedStorageFile.cs:
146                 Use the traditional net_2_0 version of isolated storage
147                 for MonoTouch.
148
149 2009-05-27  Jackson Harper  <jackson@ximian.com>
150
151         * MoonIsolatedStorageFile.cs: Allow paths in search patterns.
152
153 2009-04-16  Sebastien Pouliot  <sebastien@ximian.com> 
154
155         * MoonIsolatedStorage.cs: New. Manage the shared (location, quota)
156         information about Moonlight isolated storage.
157         * MoonIsolatedStorageFile.cs: Adjust with new MoonIsolatedStorage.
158         Implement IncreaseQuotaTo UI.
159         * MoonIsolatedStorageFileStream.cs: Adjust with MoonIsolatedStorage.
160
161 2009-04-16  Sebastien Pouliot  <sebastien@ximian.com>
162
163         * IsolatedStorageFile.cs: Fix thread-safety issue at creation time.
164         [Fix bug #431039]
165         * IsolatedStorageFileStream.cs: Fix missing path check in Verify.
166         [Fix bug #487659]
167
168 2008-12-23  Sebastien Pouliot  <sebastien@ximian.com>
169
170         * IsolatedStorageFile.cs: Use Url as the default evidence type when
171         null is supplied.
172         [Fix bug #430932]
173
174 2008-09-11  Sebastien Pouliot  <sebastien@ximian.com>
175
176         * MoonIsolatedStorageFile.cs: Add application and iste specific 
177         initialization. Add rumenditary quota support (not thread or cross 
178         process safe). Add a bunch of TODO & FIXME.
179         * MoonIsolatedStorageFileStream.cs: Add quota checks (delegated 
180         into MoonIsolatedStorageFile).
181
182 2008-09-05  Sebastien Pouliot  <sebastien@ximian.com>
183
184         * MoonIsolatedStorageFile.cs: Add calls to PreCheck inside EndRead
185         and EndWrite methods.
186         * MoonIsolatedStorageFileStream.cs: Throw an IsolatedStorageException
187         when DeleteFile is called on an unexisting file.
188
189 2008-08-22  Sebastien Pouliot  <sebastien@ximian.com> 
190
191         * MoonIsolatedStorageFile.cs: Implement Remove. Add a bunch of FIXME 
192         mostly related to quota.
193         * MoonIsolatedStorageFileStream.cs: Add a call to the container's
194         PreCheck method in most methods. Add FIXME for quota.
195
196 2008-08-21  Sebastien Pouliot  <sebastien@ximian.com> 
197
198         * MoonIsolatedStorageFile.cs: Split Application and Site storage.
199         Start looking at quota.
200         * MoonIsolatedStorageFileStream.cs: Added more validation to 
201         ctors. Removed IsAsync (not in beta2). (SetLength) Start using some 
202         quota checks 
203
204 2008-08-20  Sebastien Pouliot  <sebastien@ximian.com> 
205
206         * MoonIsolatedStorageFile.cs: More fixes to match unit tests.
207
208 2008-08-20  Sebastien Pouliot  <sebastien@ximian.com>
209
210         * MoonIsolatedStorageFile.cs: Fix API to match SL2 beta2. Start
211         implementing new feature (while writing unit tests).
212         * MoonIsolatedStorageFileStream.cs: Add new async methods [Begin|
213         End][Read|Write] present in b2. Fix endless recursion in WriteByte.
214
215 2008-04-18  Sebastien Pouliot  <sebastien@ximian.com>
216
217         * IsolatedStorageFile.cs: Fix CreateDirectory to accept multiple 
218         subdirectories. Avoid leaking full path in DeleteDirectory. Fix 
219         GetDirectoryNames to work with path (and the search pattern).
220         [Fix bug #376188]
221
222 2008-03-28  Sebastien Pouliot  <sebastien@ximian.com>
223
224         * IsolatedStorageFile.cs: Don't show the full path on exception if a 
225         directory can't be created (fix bug #354539). Also fix path/patterns when
226         looking for files (it behave differently than DirectoryInfo does).
227
228 2008-01-17  Sebastien Pouliot  <sebastien@ximian.com>
229
230         * IsolatedStorageFile.cs: Fix bug #354539
231
232 2007-12-18  Stephane Delcroix  <sdelcroix@novell.com>
233
234         * IsolatedStorageFileEnumerator.cs: Ifdef'ing out too. Fixes the build.
235
236 2007-12-18  Miguel de Icaza  <miguel@novell.com>
237
238         * Ifdef out the large bodies of code that will just not work with
239         Silverlight, ran into this problem again trying to run
240         http://fluxtools.net/emailphotos
241
242         Its not worth trying to alter this implementation of
243         IsolatedStorage to work in both the regular and the Moonlight
244         profiles, instead am going to write a simple implementation while
245         we wait for the real 2.0 API to come out.
246
247 2007-11-06  Sebastien Pouliot  <sebastien@ximian.com>
248
249         * IsolatedStorageFileStream.cs: Handle rooted paths. Patch by Jay
250         Miller to fix bug #324983.
251
252 2006-04-07  Sebastien Pouliot  <sebastien@ximian.com>
253
254         * IsolatedStorageFile.cs: Loading/saving the identities used to 
255         isolate the storage requires the permission to [de]serialize them too.
256
257 2005-11-09  Sebastien Pouliot  <sebastien@ximian.com>
258
259         * IsolatedStorageScope.cs: Added missing [Serializable] in 2.0 profile
260
261 2005-10-04  Sebastien Pouliot  <sebastien@ximian.com>
262
263         * IsolatedStorageFile.cs: Add a call to GC.SuppressFinalize in Dispose
264         (even if we're not disposing anything).
265
266 2005-06-22  Sebastien Pouliot  <sebastien@ximian.com>
267
268         * IsolatedStorageFile.cs: Only assembly evidences are considered to
269         resolve policy. Changed resolve method used (instead of changing it's
270         code).
271
272 2005-06-14  Sebastien Pouliot  <sebastien@ximian.com>
273
274         * IsolatedStorageFileStream.cs: Remove Close method from NET_2_0.
275         * IsolatedStorageFile.cs: Implemented missing MaximumSize property
276         and GetPermission method.
277
278 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
279
280         * IsolatedStorageFileStream.cs: check the FileMode here as FileStream
281         throws a different exception.
282
283 2005-04-25  Sebastien Pouliot  <sebastien@ximian.com>
284
285         * INormalizeForIsolatedStorage.cs: Added [ComVisible(true)] for 2.0.
286         * IsolatedStorage.cs: Added [ComVisible(true)] for 2.0 except for new
287         property ApplicationIdentity.
288         * IsolatedStorageException.cs: Added [ComVisible(true)] for 2.0.
289         * IsolatedStorageFile.cs: Now calls UnprotectedGetEvidence to get the 
290         assembly evidences. Added [ComVisible(true)] for 2.0.
291         * IsolatedStorageFileStream.cs: Added [ComVisible(true)] for 2.0.
292         * IsolatedStorageScope.cs: Added [ComVisible(true)] for 2.0.
293
294 2005-03-24  Sebastien Pouliot  <sebastien@ximian.com>
295
296         * IsolatedStorageFile.cs: Added an assert for unrestricted file access
297         to the class. This is "ok" as the user cannot control the base path 
298         for isolated storage but will be updated to be more "precise" when
299         imperative assert are supported in the runtime.
300         * IsolatedStorageFileStream.cs: Changed constructors so the assert
301         for unrestricted file access is limited to constructors (not the whole
302         class). Added LinkDemand for UnmanagedCode to get Handle and 
303         SafeFileHandle (2.0) properties.
304
305 2005-03-17  Sebastien Pouliot  <sebastien@ximian.com>
306
307         * IsolatedStorageScope.cs: Add missing BOOTSTRAP_NET_2_0 to new enum 
308         values. Fix #73046.
309         * IsolatedStorageFile.cs: Remove commented security attributes.
310
311 2005-03-15  Sebastien Pouliot  <sebastien@ximian.com>
312
313         * IsolatedStorageFile.cs: Added CAS demands (imperative when possible)
314         for IsolatedStoragePermission. The security attributes for NET_2_0 are
315         commented until #73046 is fixed.
316         * IsolatedStorageFileStream.cs: Now use StackFrame(2) to find which
317         assembly is really calling the IsolatedStorageFileStream when no 
318         default is supplied. Throw DirectoryNotFoundException when a directory
319         inside the isolated storage is missing.
320
321 2005-01-31  Sebastien Pouliot  <sebastien@ximian.com>
322
323         * IsolatedStorage.cs: Added checks to get identities.
324         * IsolatedStorageFile.cs: Added support for identities (assembly, 
325         domain and, for 2.0, application).
326         * IsolatedStorageFileEnumerator.cs: New. Internal enumerator for 
327         IsolatedStorageFile.
328         * IsolatedStorageFileStream.cs: Now use the new FileStream
329         constructor to ensure filestream name stays [Unknown].
330         * IsolatedStorageInfo.cs: Removed (no more required).
331         * IsolatedStorageScope.cs: Added new 2.0 scopes: Application and
332         Machine.
333
334 2004-07-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
335
336         * IsolatedStorageInfo.cs: useGetFolderPath instead of getting "HOME".
337
338 2004-06-13  Gert Driesen <drieseng@users.sourceforge.net>
339
340         * IsolatedStorage.cs: really mark the storage_scope field private
341
342 2004-06-09  Gert Dresen <drieseng@users.sourceforge.net>
343
344         * IsolatedStorage.cs: use private variable for holding scope,
345         set scope in InitStore method, removed need for extra protected 
346         member (public API fix)
347         * IsolatedStorageFile.cs: use InitStore to initialize scope
348
349 2004-05-12  Sebastien Pouliot  <sebastien@ximian.com>
350
351         * IsolatedStorage.cs: More details on MonoTODO. Throw exceptions on
352         AssemblyIdentity and DomainIdentity properties.
353         * IsolatedStorageFile.cs: More details on MonoTODO.
354         * IsolatedStorageFileStream.cs: Removed MonoTODO on class. Now use 
355         Path.Combine to build filenames (constructor) and throw an exception 
356         when we try to get the handle (as documented).
357
358 2003-07-30  Duncan Mak  <duncan@ximian.com>
359
360         * IsolatedStorageInfo.cs (CreateAssemblyFilename):
361         (CreateDomainFilename): Replace String.Format with Path.Combine.
362         
363         * IsolatedStorageFile.cs:
364         (GetStore): Update storage_scope accordingly.
365         (GetUseStoreForAssembly): Include IsolatedStorageScope.User.
366         (GetUseStoreForDomain): Include IsolatedStorageScope.User and
367         IsolatedStorageScope.Assembly.
368         
369         * IsolatedStorage.cs:
370         (CurrentSize):
371         (MaximumSize): throw InvalidOperationExceptions. This is a
372         subclass responsibility.
373         (Scope): Implemented using a static field, storage_scope.
374         (SeparatorInternal)
375         (SeparatorExternal): Implemented. Use Path.DirectorySeparatorChar
376         for SeparatorExternal.
377
378 2003-02-18  Jonathan Pryor <jonpryor@vt.edu>
379         * IsolatedStorageFile.cs: Fix spelling error (GetUseStoreForDomain -->
380           GetUserStoreFor Domain).  Reported by 
381           Torsten Rendelmann <torsten.rendelmann@procos.com>.
382
383 2003-01-19  Sebastien Pouliot  <spouliot@videotron.ca>
384
385         * IsolatedStorageFile.cs: Added missing [CLSCompliant(false)]
386         to CurrentSize and MaximumSize to fix compilation (at least 
387         under Windows/csc).
388
389 2003-01-18  Jonathan Pryor <jonpryor@vt.edu>
390
391         - General: Get a simple implementation working.  Simple, not-all-there, but
392           sufficient to get "Programming C#" example 21-17 working under Mono.  This
393           doesn't say much, as it's not a stress-test by any means.
394         * INormalizeForIsolatedStorage.cs: re-indent to fit mono code style
395         * IsolatedStorage.cs: match mono coding guidelines
396         * IsolatedStorageFileStream.cs: Add members that "C# In A Nutshell" claims
397           the class should override.  Most of these members just delegate to the
398           base class, though.  CreateIsolatedPath is used to get the actual filename
399           for the IsolatedStorageFileStream.
400         * IsolatedStorageScope.cs: Documentation goes in monodoc, so there's no
401           point in having C# doc-tags.  Add "Roaming" member, which "C# In A
402           Nutshell" lists.
403         * IsolatedStorageFile.cs: Public class documented in "C# In A Nutshell".
404           Simple implementation.  Will probably need work to conform with .NET,
405           address security concerns.
406         * IsolatedStorageInfo.cs: Abstract IsolatedStorage information used by other
407           classes, such as the directory isolated storage is located under, how to
408           calculate the size of isolated storage, etc.
409
410 2002-02-19  Duncan Mak  <duncan@ximian.com>
411
412         * IsolatedStorageFileStream.cs: Added MonoTODO here. This class
413         is completely stubbed out (over the summer) and didn't get
414         properly MonoTODO'd.
415
416 2002-02-08  Duncan Mak  <duncan@ximian.com>
417
418         * IsolatedStorage.cs: Looked at MemberInfo.cs, another fellow
419         abstract class. Oh, that's what it means! Removed unnesscessary
420         MonoTODO attributes.
421
422 2002-02-07  Duncan Mak  <duncan@ximian.com>
423
424         * IsolatedStorage.cs: Added to CVS, stubbed out the API.
425         * IsolatedStorageException.cs: Implemented.
426
427 2002-01-07  Duco Fijma <duco@lorentz.xs4all.nl>
428         * Created INormalizeForIsolatedStorage