1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
|
2007-08-10 Gert Driesen <drieseng@users.sourceforge.net>
* PagesEnableSessionState.cs: Marked internal on 1.0 profile.
2007-07-16 Vladimir Krasnov <vladimirk@mainsoft.com>
* ProfileGroupSettingsCollection.cs: added ResetInternal internal
method
* RootProfilePropertySettingsCollection.cs: added Reset method
override to reset GroupSettings collection
2007-06-24 Vladimir Krasnov <vladimirk@mainsoft.com>
* HttpHandlerAction.cs: fixed SplitPaths property to be thread safe
2007-06-12 Vladimir Krasnov <vladimirk@mainsoft.com>
* CompilationSection.cs: TARGET_JVM on not supported features
* HttpModulesSection.cs: ctor should be static
2007-06-03 Adar Wesley <adarw@mainsoft.com>
* ProfilePropertySettingsCollection.cs: added missing method
OnDeserializeUnrecognizedElement.
2007-05-30 Marek Habersack <mhabersack@novell.com>
* WebConfigurationManager.cs: if errors happen when opening the
configuration file, mark the manager as unsafe to prevent further
usage and avoid error loops.
2007-05-17 Igor Zelmanovich <igorz@mainsoft.com>
* WebConfigurationHost.cs: for TARGET_J2EE only:
prevent NullRefference Exception.
2007-05-15 Igor Zelmanovich <igorz@mainsoft.com>
* WebConfigurationManager.cs:
make configurations hashtable case-insensitive.
* WebConfigurationHost.cs: for TARGET_J2EE only:
GetStreamName returns file path in right case, that make it works
on case-sensitive file system.
2007-05-15 Marek Habersack <mhabersack@novell.com>
* BuildProviderCollection.cs: refactoring - use
HttpApplication.LoadType to actually look up the type.
* HttpHandlerAction.cs: as above
* WebConfigurationHost.cs: refactoring - moved the LoadType to
HttpApplication to share the code between 1.1 and 2.0 profiles.
2007-05-14 Marek Habersack <mhabersack@novell.com>
* UrlMappingCollection.cs: implemented the Item (string) indexer.
* UrlMapping.cs: implemented the URL validation callback body
(doesn't work at the moment).
2007-05-14 Igor Zelmanovich <igorz@mainsoft.com>
* WebConfigurationManager.cs:
make configurations synchronized.
added new internal method RemoveConfigurationFromCache.
2007-05-07 Marek Habersack <mhabersack@novell.com>
* PagesSection.cs: buffering is on by default.
2007-04-24 Marek Habersack <mhabersack@novell.com>
* WebConfigurationHost.cs: wrap MapPath calls in try/catch,
because bad URLs can cause it to throw exceptions. If such
exception is caught, throw a HttpException for Bad Request (400).
Look for types in the top-level assemblies (App_Code and
friends).
* WebConfigurationManager.cs: added two internal methods for safe
retrieval of config sections.
2007-04-19 Marek Habersack <mhabersack@novell.com>
* HttpHandlerAction.cs: look up types in all the toplevel
assemblies. Fixes bug #80897.
2007-04-17 Atsushi Enomoto <atsushi@ximian.com>
* ProcessModelSection.cs : cpuMask default value should be int,
not uint.
2007-04-06 Marek Habersack <mhabersack@novell.com>
* CustomErrorsSection.cs: make the customErrors section work.
* PagesSection.cs: provide appropriate default value for the
asyncTimeout setting.
2007-03-24 Marek Habersack <mhabersack@novell.com>
* WebConfigurationHost.cs: allow MachineToApplication definition
for config paths that equal the domain virtual app directory.
2007-03-22 Adar Wesley <adarw@mainsoft.com>
* HttpCapabilitiesBase.cs: implemented all capabilities. Capabilities
still throw if there is no value in browscaps.ini and the property is called.
2007-03-21 Vladimir Krasnov <vladimirk@mainsoft.com>
* WebConfigurationManager.cs: fixed OpenWebConfiguration, should not
lock when checking if configuration is already open
2007-03-15 Vladimir Krasnov <vladimirk@mainsoft.com>
* WebConfigurationManager.cs: fixed OpenWebConfiguration, removed
GetBasePath call and locations search, since this not affects
configuration initialization, but improves performance
2007-03-12 Marek Habersack <mhabersack@novell.com>
* ProvidersHelper.cs: support loading custom providers from
App_Code assemblies. Fixes bug #81071.
Also set eol-style to native.
2007-03-08 Gert Driesen <drieseng@users.souceforge.net>
* PagesSection.cs: Revert part of Adar's patch that regresses
bug #80913.
2007-03-06 Adar Wesley <adarw@mainsoft.com>
* PagesSection.cs: improve Enum parsing and strongly typed default values.
2007-02-20 Marek Habersack <grendello@gmail.com>
* Patch from Gert Driesen <drieseng@users.sourceforge.net>
* PagesSection.cs: Process value of EnableSessionState attribute
case-sensitive, and perform check in getter. Fix for bug #80913.
* PageParser.cs: Added note on difference in behaviour between page
level attribute and configuration attribute for enableSessionState.
* PagesConfiguration.cs: Fixed compiler warning.
2007-02-22 Marek Habersack <grendello@gmail.com>
* CompilerCollection.cs: Optimize language lookup a bit.
2007-02-05 Konstantin Triger <kostat@mainsoft.com>
* TagPrefixCollection.cs: Fix element key creation.
2007-02-04 Konstantin Triger <kostat@mainsoft.com>
* NamespaceInfo.cs, HttpModuleAction.cs, RoleManagerSection.cs:
fix the default value.
2007-02-02 Marek Habersack <grendello@gmail.com>
* TagPrefixCollection.cs: Add the CollectionType parameter.
Get rid of unnecessary interface references in the class declaration.
GetElementKey should return Source which should be unique, unlike TagPrefix.
2007-01-04 Konstantin Triger <kostat@mainsoft.com>
* ProfileSection.cs: Ensure enabled = true by default; cleanup.
2006-12-27 Vladimir Krasnov <vladimirk@mainsoft.com>
* CustomErrorCollection.cs: fixed ThrowOnDuplicate to false as in .net
2006-12-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* GlobalizationSection.cs: make encodings actually work for the 2.0
profile.
2006-12-21 Marek Habersack <grendello@gmail.com>
* TagMapInfo.cs: Add an internal default constructor for use from
TagMapCollection.
* TagMapCollection.cs: Don't call the string,string constructor of
TagMapInfo - the class disallows empty strings as values of its
properties.
2006-12-21 Vladimir Krasnov <vladimirk@mainsoft.com>
* RoleManagerSection.cs: refactored using attributes
2006-12-20 Marek Habersack <grendello@gmail.com>
* ProfilePropertyNameValidator.cs: added a few checks.
2006-12-18 Vladimir Krasnov <vladimirk@mainsoft.com>
* WebConfigurationManager.cs: fixed GetSection to execute
GetRuntimeObject, refactored GetSection and GetWebApplicationSection
2006-12-17 Vladimir Krasnov <vladimirk@mainsoft.com>
* HttpHandlerAction.cs: fixed 'verb' config property
2006-12-07 Igor Zelmanovich <igorz@mainsoft.com>
* ProvidersHelper.cs: fixed: load assembles from /bin
2006-11-22 Miguel de Icaza <miguel@novell.com>
* SessionStateSection.cs: Do not call Enum.Parse with a null
argument, prevents an exception from being thrown.
2006-11-20 Marek Habersack <grendello@gmail.com>
* GlobalizationSection.cs: Added support for "auto" cultures and
the "auto:DEFAULT_CULTURE" cultures.
2006-11-13 Konstantin Triger <kostat@mainsoft.com>
* WebConfigurationHost.cs: use Type.GetType for loading full qualified types.
2006-11-05 Vladimir Krasnov <vladimirk@mainsoft.com>
* ProfileGroupSettings.cs, ProfileGroupSettingsCollection.cs
ProfilePropertySettingsCollection.cs, ProfileSection.cs
RootProfilePropertySettingsCollection.cs: refactoring and fix of
<group> element
2006-10-18 Marek Habersack <grendello@gmail.com>
* WebConfigurationManager.cs: implement support for extra
assemblies to be referenced when compiling a page.
2006-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* WebConfigurationManager.cs: add null checks. Patch by Marek Habersack
that fixes bug #79283.
2006-09-06 Konstantin Triger <kostat@mainsoft.com>
* WebConfigurationHost.cs: do not recourse as this will be done by
Configuration object.
2006-08-08 Vladimir Krasnov <vladimirk@mainsoft.com>
* WebConfigurationManager.cs: added configSystem property under
TARGET_JVM part
* WebConfigurationHost.cs: fixed GetStreamName and OpenStreamForRead
for TARGET_JVM
* CompilationSection.cs: BuildProviders property removed from
TARGET_JVM
* SystemWebSectionGroup.cs: Compilation property removed from
TARGET_JVM
2006-06-26 Atsushi Enomoto <atsushi@ximian.com>
* NullableStringValidator.cs : new internal class that is almost
identical to StringValidator but allows null value.
* PropertyHelper.cs : use new NullableStringValidator.
* NamespaceCollection.cs : in NamespaceInfo "" is not allowed.
2006-06-08 Chris Toshok <toshok@ximian.com>
* WebConfigurationHost.cs (InitForConfiguration): i know this is
going to bite me in the ass, but guard against configPath being ==
to "/", since this will result in an infinite loop.
(MapPath): fix a NRE.
2006-05-18 Atsushi Enomoto <atsushi@ximian.com>
* WebConfigurationManager.cs: recent sys.config.dll changes on
ConfigurationManager.GetSection() which should call
GetRuntimeObject() should also apply here. Fixed monodoc web.
2006-05-10 Andrew Skiba <andrews@mainsoft.com>
* HttpHandlerAction.cs: keep the internal exception
2006-05-08 Chris Toshok <toshok@ximian.com>
* WebConfigurationManager.cs (GetBasePath): fix bug where
path.Length was 0 when we got to the last while loop (and indexed
-1 into an array.) Thanks Marek for the fix.
2006-05-04 Chris Toshok <toshok@ximian.com>
[ Fixes bug #78256 ]
* WebConfigurationHost.cs (GetConfigType): add a MonoTODO about
how we should use the build provider machinery to get types.
(MapPath): add rudimentary mapping in the case where we don't have
a request, basically handle the case where the url begins with (or
is) HttpRuntime.AppDomainAppVirtualPath.
* WebConfigurationManager.cs (GetSection): if we don't have a
valid request, open the web configuration corresponding to
HttpRuntime.AppDomainAppVirtualPath.
(GetBasePath): comment this a little, and make it work in the case
where we don't have an HttpRequest.
2006-04-27 Chris Toshok <toshok@ximian.com>
* AuthorizationRuleCollection.cs (ThrowOnDuplicate): for the time
being introduce a overridden property MS doesn't make use of.
This needs readdressing, but it should get people making use of
<authorization> rules working again.
2006-04-25 Chris Toshok <toshok@ximian.com>
* AuthorizationRule.cs (Reset): finally figure out what this
method is supposed to do. Assign our Action property based on
parentElement's.
2006-04-25 Chris Toshok <toshok@ximian.com>
* WebConfigurationHost.cs (InitForConfiguration): actually, use
HttpRuntime.AppDomainAppVirtualPath on gonzalo's recommendation.
It's never null, and its use cleans things up a bit.
2006-04-25 Chris Toshok <toshok@ximian.com>
* WebConfigurationHost.cs (InitForConfiguration): stop going up
the virtual hierarchy once we reach the application's base virtual
path.
2006-04-24 Chris Toshok <toshok@ximian.com>
* AuthorizationSection.cs (IsValidUser): fix a problem that
surfaced when converting from the 1.1 to 2.0 config classes. Only
check for verb match if there are actually verbs to match against.
2006-04-11 Chris Toshok <toshok@ximian.com>
* ExpressionBuilderCollection.cs (CreateNewElement): call argless
ctor.
* ExpressionBuilder.cs: add internal argumentless ctor for use by
the collection type.
2006-03-24 Chris Toshok <toshok@ximian.com>
* WebConfigurationManager.cs (GetConfig): add a fallback case for
configuration sections that don't subclass from
ConfigurationSection.
2006-03-24 Chris Toshok <toshok@ximian.com>
* WebConfigurationHost.cs: fix bug where OpenWebConfiguration
("/") would result in 2 configurations for that toplevel path to
be opened.
2006-03-08 Chris Toshok <toshok@ximian.com>
* ProvidersHelper.cs: implement this static class properly.
* SiteMapSection.cs (ProvidersInternal): add internal property to
get the actual SiteMapProviderCollection from here.
2006-02-28 Chris Toshok <toshok@ximian.com>
* BuildProviderAppliesTo.cs, PagesToCountAction.cs: nuke.
2006-02-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Compiler.cs:
* CompilerCollection.cs: removed compatibility code.
* BuildProviderCollection.cs: add GetProviderForExtension().
2006-02-02 Chris Toshok <toshok@ximian.com>
* WebConfigurationManager.cs (GetSection(string,string)):
implement.
2006-02-01 Atsushi Enomoto <atsushi@ximian.com>
* TrustLevelCollection.cs, CodeSubDirectoriesCollection.cs,
CustomErrorCollection.cs, CompilerCollection.cs,
HttpHandlerActionCollection.cs,
FormsAuthenticationUserCollection.cs,
AuthorizationRuleCollection.cs, TagPrefixCollection.cs :
CollectionType is public.
2006-02-01 Chris Toshok <toshok@ximian.com>
* WebConfigurationManager.cs: In the normal case, get the current
request's web.config, not the application's. If there is no
current request, get the application's.
(GetWebApplicationConfiguration): use Request.ApplicationPath, not
Request.PhysicalApplicationPath. OpenWebConfiguration takes
virtual paths.
* HttpConfigurationSystem.cs: GetWebApplicationSection =>
GetSection.
2006-02-01 Chris Toshok <toshok@ximian.com>
* CompilerCollection.cs: CONFIGURATION_2_0 => NET_2_0
* Compiler.cs: same.
2006-02-01 Chris Toshok <toshok@ximian.com>
* HttpConfigurationSystem.cs: SupportsUserConfig == true. let's
use this to determine if ConfigurationManager.AppSettings should
be read-only or not.
2006-01-31 Chris Toshok <toshok@ximian.com>
* WebConfigurationManager.cs: err, why did i ifdef stuff NET_2_0
inside of an ifdef NET_2_0?
2006-01-30 Chris Toshok <toshok@ximian.com>
* WebConfigurationManager.cs: lots of little changes. hopefully
this doesn't break anyone. it fixes all the nunit problems
gonzalo was having.
* WebConfigurationHost.cs (GetStreamName): in the MachineWebPath
case, handle the case where we have a WebConfigurationFileMap.
(MapPath): this is likely wrong, but in the case where we don't
have a file map or current HttpContext, just return the path.
2006-01-29 Chris Toshok <toshok@ximian.com>
* HttpModulesSection.cs (LoadModules): I'm not sure we want to
solve this problem in this way, but the 1.x code forces
DefaultAuthenticationModule to be in the list of modules..
Without this fix (or something else) HttpContext.User is null when
it shouldn't be.
2006-01-26 Chris Toshok <toshok@ximian.com>
* HttpConfigurationSystem.cs: new class that gets sections from
web.config files.
* WebConfigurationManager.cs: change a lot of the
NotImplementedExceptions to NotSupportedExceptions.
(AppSettings): implement by just returning
ConfigurationManager.AppSettings (note this is broken because
ConfigurationManager.AppSettings are read-only, but it works for
reading.)
(ConnectionStrings): same (and probably broken in the same way..)
(Init): replace the 2.0 IInternalConfigSystem with our
HttpConfigurationSystem.
* WebConfigurationHost.cs: add a comment about how things are
likely to work in the face of IRemoteWebConfigurationHostServer.
(CreateConfigurationContext): return a WebContext instance.
2006-01-25 Chris Toshok <toshok@ximian.com>
* AuthorizationSection.cs (IsValidUser): instead of a blanket
false for a null user, just set the username to "" and short
circuit out the check for roles.
2006-01-25 Chris Toshok <toshok@ximian.com>
* AuthorizationRule.cs (CheckUser): handle * and ?, and use
String.Compare instead of ==.
(CheckVerb): use String.Compare instead of ==.
* AuthorizationSection.cs (IsValidUser): return false for a null
user.
2006-01-22 Chris Toshok <toshok@ximian.com>
* GlobalizationSection.cs (VerifyData): quiet mcs.
2006-01-18 Chris Toshok <toshok@ximian.com>
* SystemWebSectionGroup.cs: wrap System.Web.Services references in
WEBSERVICES_DEP.
2006-01-16 Chris Toshok <toshok@ximian.com>
* WebConfigurationManager.cs: implement a IConfigurationSystem for
use with WebConfigurationManager.
(GetSection): try to load the section
using GetWebApplicationSection before calling into
ConfigurationManager.GetSection.
(GetWebApplicationConfiguration): move common code to here.
(GetWebApplicationSection): use GetWebApplicationConfiguration.
(AppSettings): implement.
* WebConfigurationHost.cs (GetWebConfigFileName): add
"Web.Config", and move to an array/loop implementation. maybe we
should scan the directory and check ToLower() instead of
explicitly enumerating?
2006-01-10 Chris Toshok <toshok@ximian.com>
* SystemWebSectionGroup.cs (HostingEnvironment): enable this property.
(ProcessModel): add the ConfigurationPropertyAttribute.
2006-01-10 Chris Toshok <toshok@ximian.com>
* PagesSection.cs (.cctor): fix the default value for the
enableSessionState attribute - it's not a bool, but a
PagesEnableSessionState enum.
2006-01-10 Chris Toshok <toshok@ximian.com>
* MachineKeySection.cs (ValidationKeyBytes, DecryptionKeyBytes,
DecryptionKey192Bits): if the keys are null, generate them. Fixes
Page.EnableViewStateMac support.
2006-01-09 Chris Toshok <toshok@ximian.com>
* RoleManagerSection.cs, SqlCacheDepencendySection.cs,
SessionStateSection.cs, TraceSection.cs, SecurityPolicySection.cs,
PagesSection.cs, RulesSettings.cs, UrlMappingSection.cs: fix
dumper output.
2006-01-09 Chris Toshok <toshok@ximian.com>
* ExpressionBuilderCollection.cs (.cctor): no need to create a
collection property here. we're already in the collection.
* CompilationSection.cs: fix typo.
2006-01-04 Chris Toshok <toshok@ximian.com>
* MachineKeySection.cs: bring over some more internal methods from
MachineKeyConfig, and call Set{Decryption,Validation}Key from
their respective property setters.
2006-01-03 Chris Toshok <toshok@ximian.com>
* AuthorizationSection.cs (IsValidUser): add analogous method from
AuthorizationConfig.cs.
* AuthorizationRule.cs: add predicates for Verb, User, and Role
analogous to what existed in AuthorizationConfig.cs.
2005-12-11 Chris Toshok <toshok@ximian.com>
* WebConfigurationManager.cs (OpenMachineConfiguration): just call
ConfigurationManager.OpenMachineConfiguration.
(OpenWebConfiguration): remove the "IntPtr userToken" version and
add a "string userName" version to clean up corcompare output.
Modify all the overloads to pass null instead of IntPtr.Zero.
(GetWebApplicationSection): if we're not running in a web
application, use the machine configuration.
2005-12-06 Chris Toshok <toshok@ximian.com>
* CodeSubDirectory.cs (DirectoryName): don't use an private field,
but base[directoyNameProp].
* AuthorizationRuleCollection.cs (Add): use BaseAdd (rule, false),
so we can insert duplicates.
(GetKey): nuke.
(GetElementKey): MS for some reason just uses the action for the
key, ToString()'ed.
(Remove): pass the correct key.
* ProfileGroupSettings.cs (GetHashCode): implement.
* GlobalizationSection.cs (GetEncoding): for the utf-8 case, just
use Encoding.UTF8.
* AssemblyCollection.cs (Add): use BaseAdd (info, false) so we can
insert duplicates.
* CacheSection.cs (.cctor): make privateByteLimit's default 0L so
we don't get a invalid cast exception later on.
* AuthorizationRule.cs (VerifyData): split out the verification
foo from PreSerialize.
(PostDeserialize): so we can call it from here.
(PreSerialize): and here.
2005-12-05 Chris Toshok <toshok@ximian.com>
* AuthorizationRuleCollection.cs (GetKey): split out the logic for
creating a key from a rule here.
(GetElementKey): use it here.
(Remove): and here.
2005-12-04 Chris Toshok <toshok@ximian.com>
* UrlMapping.cs: add an internal argument-less ctor.
* UrlMappingCollection.cs (CreateNewElement): use argument-less
ctor.
(GetKey): implement.
(AllKeys): implement.
* TrustLevel.cs: add an internal argument-less ctor.
* TrustLevelCollection.cs (Set): implement.
(CreateNewElement): use argument-less ctor.
(IsElementName): implement.
(ElementName): implement.
(set_Item (int index)): use Set.
(ThrowOnDuplicate): implement.
* TagPrefixInfo.cs: add internal argument-less ctor.
* TagPrefixCollection.cs (CreateNewElement): call argument-less
ctor.
(CollectionType): add text to TODO.
(ElementName): implement.
* SqlCacheDependencyDatabaseCollection.cs (Set): implement.
(AllKeys): implement.
* RuleSettings.cs: add internal argument-less ctor.
* RuleSettingsCollection.cs (Contains): implement.
(CreateNewElement): use argument-less ctor.
(IndexOf): implement.
(Insert): implement.
* RootProfilePropertySettingsCollection.cs (IsModified): chain up
to base.IsModified for now.
(Reset): chain up to base.Reset for now.
(ResetModified): chain up to base.ResetModified for now.
* ProfileSettings.cs: add internal argument-less ctor.
* ProfileSettingsCollection.cs (Contains): implement.
(CreateNewElement): use argument-less ctor.
(IndexOf): implement.
(Insert): implement.
* ProfilePropertySettingsCollection.cs (IndexOf): implement.
(Set): implement.
(AllKeys): implement.
* ProfileGroupSettings.cs: add internal argument-less ctor.
* ProfileGroupSettingsCollection.cs (CreateNewElement): use
parameter-less ctor.
(GetKey): implement.
(ResetModified): for now call base.ResetModified.
(Set): implement.
(AllKeys): implement.
* OutputCacheProfile.cs: add internal argument-less ctor.
* OutputCacheProfileCollection.cs (CreateNewElement): use
parameter-less ctor.
(Set): implement.
(AllKeys): implement.
* HttpModuleActionCollection.cs (Add): remove MonoTODO.
(CreateNewElement): same.
* HttpHandlerActionCollection.cs (GetElementKey): build up the key
from both the path and the verb.
(Remove): same.
* FormsAuthenticationUserCollection.cs (Set): implement.
(AllKeys): implement.
* EventMappingSettings.cs: add an internal argument-less ctor.
* EventMappingSettingsCollection.cs (Contains): implement.
(CreateNewElement): use argument-less ctor.
(IndexOf): implement.
(Insert): implement.
* CompilerCollection.cs (GetKey): implement.
(AllKeys): implement.
* ClientTargetCollection.cs (GetKey): implement.
(AllKeys): implement.
* AuthorizationRuleCollection.cs (Set): implement.
(ElementName): add some text to the MonoTODO.
(set_Item (int index)): use Set.
2005-12-04 Chris Toshok <toshok@ximian.com>
* CustomError.cs: add an internal argument-less ctor for use by
the collection.
* CustomErrorCollection.cs: implement all the MonoTODO's.
2005-12-02 Chris Toshok <toshok@ximian.com>
* GlobalizationSection.cs (VerifyData): split out the stuff that
used to live in PreSerialize here.
(PreSerialize): call VerifyData here.
(PostDeserialize): and here.
2005-12-01 Chris Toshok <toshok@ximian.com>
* GlobalizationSection.cs (PreSerialize): add checks for Culture
and UICulture properties.
2005-12-01 Chris Toshok <toshok@ximian.com>
* AuthorizationRule.cs (..ctor): provide default values for
roles/users/verbs here. Not sure if we should do this in the ctor
or if the System.Configuration infrastructure should.. time will
tell.
(PreSerialize): throw if Roles.Count and Users.Count == 0.
(SerializeElement): write out the element here. don't chain up to
the base class since that has differing behavior than what we
want.
2005-11-30 Chris Toshok <toshok@ximian.com>
* CompilerCollection.cs: ugly hack to fix the
2.0-without-config-2.0 case. wrap this file in #if
CONFIGURATION_2_0 as well as #if NET_2_0.
* Compiler.cs: same.
2005-11-28 Chris Toshok <toshok@ximian.com>
* SessionStateSection.cs (CookieLess): correct the compat function
implementation.
2005-11-28 Chris Toshok <toshok@ximian.com>
* GlobalizationSection.cs (GetEncoding): if the encoding name is
null, default to utf-8 before we hit the try block, so we don't
throw and generate a spurious warning.
* SessionStateSection.cs: The Cookieless handling needs a custom
parser, it appears, as the converter is a StringConverter, not a
GenericEnumConverter.
(ParseCookieMode): the parser.
2005-11-28 Chris Toshok <toshok@ximian.com>
* PagesSection.cs (GetInstance): nuke.
* CompilationSection.cs (GetInstance): nuke.
2005-11-28 Chris Toshok <toshok@ximian.com>
* HttpHandlerAction.cs: add some c&p code from the 1.1 config
stuff to look for matching handlers.
(..ctor): add parameterless ctor.
* HttpHandlerActionCollection.cs: clean up formatting.
(CreateNewElement): call the parameter-less ctor for
HttpHandlerAction.
* HttpHandlersSection.cs (..ctor): add a ConfigurationProperty for
the default collection.
(get_Handlers): implement.
(LocateHandler): copy over (and massage) some 1.1 config code.
* MachineKeySection.cs: move some code over from the 1.1 config
code to deal with autogeneration of keys, as well as converting
from the string rep to the byte[] rep.
2005-11-28 Chris Toshok <toshok@ximian.com>
* HttpModuleActionCollection.cs (CreateNewElement): use the new
HttpModuleAction ctor.
* HttpModuleAction.cs: add internal ctor with no parameters, for
use in HttpModuleActionCollection.
2005-11-28 Chris Toshok <toshok@ximian.com>
* GlobalizationSection.cs (..cctor): the encoding
ConfigurationProperties are of type "string", even though the
properties themselves are of type Encoding. we do conversions
manually in the setter/getters. gross. Add code (mostly c&p +
massaged from GlobalizationConfigurationHandler) for this and also
to handle the culture gettes.
2005-11-26 Chris Toshok <toshok@ximian.com>
* AuthorizationRuleCollection.cs (GetElementKey): implement this.
* ProfilePropertyNameValidator.cs: make this internal, and add a
blurb about how MS doesn't do the testing you'd expect them to.
2005-11-25 Chris Toshok <toshok@ximian.com>
* AuthorizationRuleCollection.cs (CreateNewElement): remove
MonoTODO.
* CompilationSection.cs (GetRuntimeObject): add comment to TODO.
* ProfileGroupSettings.cs: reformat some things.
* FormsAuthenticationUser.cs (Name): remove MonoTODO.
* WebPartsSection.cs (GetRuntimeObject): change TODO comment.
* ProfilePropertySettings.cs: add internal argument-less ctor.
* IdentitySection.cs (GetRuntimeObject): return this.
* ProfilePropertySettingsCollection.cs: implement much of the
TODO's.
* WebControlsSection.cs (GetRuntimeObject): implement.
* SqlCacheDependencyDatabaseCollection.cs (GetElementKey):
implement.
(GetKey): implement.
2005-11-24 Chris Toshok <toshok@ximian.com>
* AssemblyInfo.cs: move this here from System.Web.Configuration,
and fix up the properties.
* SystemWebSectionGroup.cs: enable most of the sections (2
remaining to be enabled.)
2005-11-24 Chris Toshok <toshok@ximian.com>
* ProcessModelSection.cs, SqlCacheDependencySection.cs,
SessionStateSection.cs, PassportAuthentication.cs,
FormsAuthenticationConfiguration.cs,
SqlCacheDependencyDatabase.cs, HttpModuleAction.cs,
BufferModeSettings.cs, TagPrefixInfo.cs (..cctor): init
elementProperty.
(ValidateElement): new static validator callback.
(ElementProperty): enable this, return elementProperty.
2005-11-23 Chris Toshok <toshok@ximian.com>
* ProfilePropertyNameValidator.cs: new implementation.
* ProfilePropertySettings.cs, ProfileGroupSettings.cs,
ClientTargetSection.cs, ClientTargetSection.cs,
BufferModeSettings.cs, HttpModulesSection.cs,
WebPartsPersonalization.cs, TransformerInfo.cs, TrustLevel.cs,
NamespaceInfo.cs, SqlCacheDependencyDatabase.cs,
AuthenticationSection.cs, RuleSettings.cs,
FormsAuthenticationUser.cs, WebPartsSection.cs, BuildProvider.cs,
WebPartsPersonalizationAuthorization.cs, Compiler.cs,
ExpressionBuilder.cs, OutputCacheProfile.cs,
FormsAuthenticationCredentials.cs, XhtmlConformanceSection.cs,
OutputCacheSettingsSection.cs, CustomError.cs, TraceSection.cs,
ExpressionBuilderCollection.cs, ProfileSettings.cs,
SessionStateSection.cs, HealthMonitoringSection.cs,
FormsAuthenticationConfiguration.cs, HttpRuntimeSection.cs,
SessionPageStateSection.cs, TrustSection.cs,
AnonymousIdentificationSection.cs, WebControlsSection.cs,
ClientTarget.cs, TagMapInfo.cs, AuthorizationSection.cs,
ProcessModelSection.cs, RoleManagerSection.cs,
MembershipSection.cs, CustomErrorsSection.cs (..cctor): fix
validator/converters.
* MachineKeySection.cs (..cctor): fix validators/converters.
(Validation): enable the Converter.
* CodeSubDirectory.cs (..cctor): fix validator/converters.
(DirectoryName): add note about missing validator decoration.
* HttpModuleAction.cs (..cctor): init properties.
(Properties): return properties.
* CompilationSection.cs (..cctor): fix validator/converters.
(GetInstance): add in this pre-2.0 interface for the time being,
hopefully it'll make it easier to migrate later on.
* HttpHandlerActionCollection.cs (..cctor): init properties.
(Properties): return properties.
* PagesSection.cs (..cctor): fix validator/converters.
(GetInstance): add in this pre-2.0 interface for the time being,
hopefully it'll make it easier to migrate later on.
* HttpHandlersSection.cs (..cctor): init properties.
(Properties): return properties.
* EventMappingSettings.cs (..cctor): fix validator/converters.
(Name): add note about missing validator decoration.
* HttpHandlerAction.cs (..cctor): fix validator/converters.
(PAth, Type, Verb): add note about missing validator decoration.
* NamespaceCollection.cs (..cctor): fix properties.
* ProfilePropertySettingsCollection.cs (..cctor): init properties.
(..ctor): don't throw NIE.
(Properties): return properties.
* HttpModuleActionCollection.cs (..cctor): init properties.
(Properties): return properties.
* CacheSection.cs (..cctor): fix validators/converters.
(PrivateBytesPollTime): add note about missing validator
decoration.
* AuthorizationRule.cs (..cctor): fix validators/converters.
(Roles, Users, Verbs): enable the TypeConverter decorations.
* UrlMapping.cs (ValidateUrl): static method for use as a
validation callback. unimplemented as yet.
(..cctor): fix validators/converters.
(MappedUrl): add note about missing validator decoration.
* PropertyHelper.cs: static utility class which contains
references to validators and converters for use in static
constructors (building the Properties arrays).
2005-11-23 Chris Toshok <toshok@ximian.com>
* MachineKeyValidationConverter.cs: new converter (and a pretty
silly one, considering all it seems to do is convert "TripleDES"
to "3DES").
* HostingEnvironmentSection.cs (.cctor): use
PositiveTimeSpanValidator like MS does.
2005-11-18 Chris Toshok <toshok@ximian.com>
* HostingEnvironmentSection.cs (.cctor): add validators.
* CompilationSection.cs (.cctor): fix defaultvalue of
urlLinePragmas.
2005-11-18 Chris Toshok <toshok@ximian.com>
* SystemWebSectionGroup.cs: enable a whole slew of properties.
* RegexWorker.cs: stub this out.
* HttpCapabilitiesBase.cs: remove GetClrVersions since it's in one
of the other partial files.
* CompilationSection.cs: fix this up.
* PagesSection.cs: fix some types and add a comment to
DeserializeSection.
* CompilerCollection.cs (Add): new internal method.
* ProvidersHelper.cs: put the using System.Configuration.Provider
inside the NET_2_0 block.
* CacheSection.cs: add validators.
2005-11-14 Chris Toshok <toshok@ximian.com>
* BufferModeSettings.cs: add validators/converters to the
programmatic property list.
* BuildProvider.cs: add validators/converters to the programmatic
property list, and add an internal ctor with no args.
* Compiler.cs: wrap the code i hacked from the 1.1 stuff with a
#region.
* BuildProviderCollection.cs (CreateNewElement): use the internal
BuildProvider ctor to get around validation.
* AssemblyCollection.cs: same.
2005-11-14 Chris Toshok <toshok@ximian.com>
* TagPrefixCollection.cs (Remove): pass the key to BaseRemove.
(set_Item (int index)): implement.
* TagPrefixInfo.cs (Equals): implement.
(GetHashCode): implement.
* AuthorizationRuleCollection.cs (CreateNewElement(string)):
implement propertly.
(IndexOf): implement.
(IsElementName): implement.
(ElementName): implement.
(Item (int index)): implement.
* FormsAuthenticationUserCollection.cs (set_Item (int index)): implement.
* UrlMappingCollection.cs (set_Item (int index)): implement.
* OutputCacheProfileCollection.cs (set_Item (int index)): implement.
* TransformerInfo.cs (Equals): implement.
(GetHashCode): implement.
* NamespaceInfo.cs (Equals): implement.
(GetHashCode): implement.
* ProfileSettingsCollection.cs (set_Item (int index)): implement.
* TransformerInfoCollection.cs (set_Item (int index)): implement.
* HttpHandlerActionCollection.cs (set_Item (int index)): implement.
* BufferModesCollection.cs (set_Item (int index)): implement.
* BuildProvider.cs: use the base[fooProp] pattern instead of
instance fields.
* ProfileGroupSettingsCollection.cs: implement most of this class.
* RuleSettingsCollection.cs (set_Item (int index)): implement.
* ClientTargetCollection.cs (set_Item (int index)): implement.
* AssemblyCollection.cs (set_Item (int index)): implement.
* BuildProviderCollection.cs (set_Item (int index)): reformat.
* CustomError.cs (Equals): implement.
(GetHashCode): implement.
* ExpressionBuilderCollection.cs (set_Item (int index)): reformat.
* PassportAuthentication.cs (RedirectUrl): express consternation
in comment form.
* NamespaceCollection.cs (set_Item (int index)): implement.
* RootProfilePropertySettingsCollection.cs (SerializeElement): add
comment.
* ProfilePropertySettingsCollection.cs (set_Item (int index)):
implement.
* CustomErrorCollection.cs (set_Item (int index)): implement.
* HttpModuleActionCollection.cs (set_Item (int index)): implement.
* CodeSubDirectoriesCollection.cs (set_Item (int index)):
implement.
* CustomErrorsSection.cs (DeserializeSection): include call to
base.DeserializeSection, and add MonoTODO.
* EventMappingSettingsCollection.cs (set_Item (int index)):
implement.
* AuthorizationRule.cs (Equals): implement.
(GetHashCode): implement.
(SerializeElement): add comment.
* TagMapCollection.cs (Remove): pass the key to BaseRemove.
(set_Item (int index)): implement.
* TagMapInfo.cs (Equals): implement.
(GetHashCode): implement.
(SerializeElement): add call to base.SerializeElement.
* TrustLevelCollection.cs (Remove): pass the key to BaseRemove.
(GetElementKey): implement.
* SqlCacheDependencyDatabase.cs (set_Item (int index)): implement.
* WebContext.cs: new implementation.
2005-11-13 Chris Toshok <toshok@ximian.com>
* AnonymousIdentificationSection.cs: rework this class a bit to
fit in with the rest of S.W.C. Add validators to the
ConfigurationProperty ctor calls, a pattern which will need to be
replicated across the entire assembly, it appears (uggggh).
2005-11-13 Chris Toshok <toshok@ximian.com>
* AuthorizationRuleCollection.cs: fix ConfigurationCollection
attribute.
* TransformerInfo.cs: fix corcompare.
* SqlCacheDependencyDatabase.cs: mark ctor internal to fix
corcompare.
* AuthenticationSection.cs: add missing Reset stub.
* ProfileSettingsCollection.cs: use the more succint ctor.
* FormsAuthenticationUser.cs: enable the TypeConverter on "name".
* GlobalizationSection.cs: fix up corcompare.
* WebPartsSection.cs: fix up corcompare.
* ProfileGroupSettingsCollection.cs: add missing
ConfigurationCollection attribute.
* ExpressionBuilder.cs: implement.
* FormsAuthenticationCredentials.cs: fix up corcompare.
* AssemblyCollection.cs: implement Properties.
* SiteMapSection.cs: implement Properties.
* ExpressionBuilderCollection.cs: fix up corcompare.
* ProfileSettings.cs: add missing ctor.
* PassportAuthentication.cs: new implementation.
* SqlCacheDependencySection.cs: fix up corcompare.
* ProfilePropertySettingsCollection.cs: fix up corcompare.
* HttpModuleActionCollection.cs: fix up corcompare.
* EventMappingSettingsCollection.cs: fix up corcompare.
* AuthorizationRule.cs: fix up corcompare.
* WebControlsSection.cs: fix up corcompare.
* AuthorizationSection.cs: fix up corcompare.
* MembershipSection.cs: clean this up, implement Properties, fix
up corcompare, etc.
2005-11-13 Chris Toshok <toshok@ximian.com>
* UrlMapping.cs, CustomErrorCollection.cs, CustomError.cs,
HostingEnvironmentSection.cs, TrustLevel.cs,
HttpCookiesSection.cs, UrlMappingsSection.cs,
UrlMappingCollection.cs, LowerCaseStringConverter.cs,
RoleManagerSection.cs, ProcessModelSection.cs,
TrustLevelCollection.cs, ClientTarget.cs, CustomErrorsSection.cs,
MachineKeySection.cs, SessionPageStateSection.cs,
SessionStateSection.cs, ProvidersHelper.cs,
ClientTargetCollection.cs, SecurityPolicySection.cs,
HttpCapabilitiesBase.cs, ClientTargetSection.cs: Another large
swath.
2005-11-12 Chris Toshok <toshok@ximian.com>
* AuthorizationRuleCollection.cs, AuthorizationRule.cs,
AuthorizationSection.cs, BufferModesCollection.cs,
BufferModeSettings.cs, CacheSection.cs, CompilerCollection.cs,
Compiler.cs, DeploymentSection.cs,
EventMappingSettingsCollection.cs, EventMappingSettings.cs,
GlobalizationSection.cs, HealthMonitoringSection.cs,
IdentitySection.cs, OutputCacheProfileCollection.cs,
OutputCacheProfile.cs, OutputCacheSection.cs,
OutputCacheSettingsSection.cs, ProfileSettingsCollection.cs,
ProfileSettings.cs, RuleSettingsCollection.cs, RuleSettings.cs,
SqlCacheDependencyDatabaseCollection.cs,
SqlCacheDependencyDatabase.cs, SqlCacheDependencySection.cs,
SystemWebCachingSectionGroup.cs, TraceSection.cs,
TransformerInfoCollection.cs, TransformerInfo.cs, TrustSection.cs,
WebControlsSection.cs, WebPartsPersonalizationAuthorization.cs,
WebPartsPersonalization.cs, WebPartsSection.cs,
XhtmlConformanceSection.cs: a whole slew of new classes. the
fruits of tons of c&p and ibuprofen.
2005-11-09 Chris Toshok <toshok@ximian.com>
* PagesSection.cs, AuthenticationSection.cs, BuildProvider.cs,
BuildProviderCollection.cs, HttpHandlerActionCollection.cs,
HttpModulesSection.cs, HttpModuleAction.cs,
HttpModuleActionCollection.cs, AnonymousIdentificationSection.cs,
CodeSubDirectory.cs, CodeSubDirectoriesCollection.cs,
SystemWebSectionGroup.cs, SiteMapSection.cs,
WebConfigurationManager.cs: flesh out the implementation.
* TagMap*.cs, TagPrefix*.cs: new implementation.
* FormsAuthentication*.cs: new implementation.
* Profile*.cs: new implementation.
* Namespace*.cs: new implementation.
* HttpRuntimeSection.cs: new implementation.
|