* MembershipUserCollection.cs: CopyTo overloads use store.Values
as the copy source. Fixes bug #464783. Patch from Christian
Prochnow <[email protected]>
svn path=/trunk/mcs/; revision=123084
* HttpContext.cs: RewritePath now treats relative and absolute
file paths with more care. If a path is of the ~/file.aspx form,
then the ~/ part is removed and the rest is combined with the base
virtual path. If the file path is of the ~ or /file.aspx forms,
then it is combined verbatim with the base virtual path. Fixes bug
#463964
Make sure the path returned from HttpRequest.BaseVirtualPath
contains the trailing slash before combining. Fixes bug #463964
svn path=/trunk/mcs/; revision=122891
* Cache.cs: System.Threading.Timer.Change takes a long, not an
int. The maximum value of sliding expiration is 365 days
(31536000000ms) which fits within the value range of long. The
previous cast to int might yield negative values in certain
situations which was the reason for bug #464221. Fixes bug #464221
svn path=/trunk/mcs/; revision=122839
* WebConfigurationManager.cs: A better version of the previous
GetSection fix. Right now the method searches for directories
containing web.config and uses them, if found, to open the web
configuration. If no web.config is found, web configuration is
opened for the root application directory.
* WebConfigurationHost.cs: made GetWebConfigFileName internal
static, so that code can be reused from WebConfigurationManager.
svn path=/trunk/mcs/; revision=122124
* NunitWeb/Makefile (NunitWeb.dll): added NunitWeb/CustomSection.cs
* NunitWebResources/CustomSectionEmptyCollection.aspx: added
2008-12-23 Marek Habersack <[email protected]>
* WebConfigurationManagerTest.cs: added new test.
2008-12-23 Marek Habersack <[email protected]>
* CustomSection.cs: added. Implementation of custom configuration
elements for WebConfigurationManager tests.
2008-12-23 Marek Habersack <[email protected]>
* Web.mono.config: added CustomTags section definition, used in
WebConfiguratioManager tests.
2008-12-23 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: GetSection should call
OpenWebConfiguration using the actual directory path, not a file
path. If it fails to do so, System.Configuration may treat the
top-level Web.config file as a child one which, in turn, in
certain circumstances will lead to duplicate keys inserted in
collections.
2008-12-23 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added Test/mainsoft/NunitWebResources/CustomSectionEmptyCollection.aspx
* System.Web_test.dll.sources: added mainsoft/NunitWeb/NunitWeb/CustomSection.cs
svn path=/trunk/mcs/; revision=122024
* HttpResponse.cs: the code in TransmitFile (VirtualFile, bool)
was an abomination - dear children, don't do this at home (never,
ever, allocate a buffer to load entire file). I will wear a brown
paper bag every 2nd Sunday in the next 6 months for writing the
old version of this code.
New code optimizes the write when DefaultVirtualFile is used (as
it refers to a physical file on disk) and reads/writes other
virtual files in chunks.
svn path=/trunk/mcs/; revision=121909
* ControlBuilder.cs: BindingContainerType returns typeof (Page)
only when the current object is a RootBuilder and it's been
created for a page parser. Otherwise it returns typeof
(Control). Fixes bug #45630
svn path=/trunk/mcs/; revision=121752
In System.Web.Configuration_2.0:
2008-12-12 Owen Brady <[email protected]>
* nBrowser/File.cs, nBrowser/Identification.cs, nBrowser/Node.cs, nBrowser/NodeTypes.cs,
nBrowser/Result.cs, nBrowser/Build.cs, nBrowser/Exception.cs, CapabilitiesBuild.cs,
CapabilitiesResult.cs: Updated Copyright information to include updated contact information.
* nBrowser/Build.cs: Removed LoadDefaultEmbeddedResource function, the embeded resource
it is referring too was never included in Mono. And was designed for a free standing
browser identification libary.
* nBrowser/Exception.cs: Removed Compile Attributes and related comments which were left
in from the original free standing browser libary.
* CapabilitiesBuild.cs: Removed Header Checksum related coding since it is not required
for the Mono implementation.
* CapabilitiesResult.cs: Updated Copyright information to include updated contact information.
Removed functions which were designed to make use of features of a embeded browser file which
is not present in Mono.
* CapabilitiesChecksum.cs, RandomRoboBotKeywords.txt: Deleted
In .:
2008-12-12 Dean Brettle <[email protected]>
* System.Web.dll.sources: deleted
System.Web.Configuration_2.0/CapabilitiesChecksum.cs
* Makefile (RESOURCE_FILES_2): deleted
System.Web.Configuration_2.0/RandomRoboBotKeywords.txt
svn path=/trunk/mcs/; revision=121408
* TemplateParser.cs: in the 2.0 profile when a custom control is
registered, do not compile it right away but store the tag name in
a registry to be compiled at a later stage.
2008-12-11 Marek Habersack <[email protected]>
* BaseCompiler.cs: added a new method, InitializeType, to be
overriden in child classes when any class initialization needs to
be performed before methods, constructors and fields are created.
* TemplateControlCompiler.cs: if the parser has any custom
controls registered, compile them here - in the InitializeType
method.
svn path=/trunk/mcs/; revision=121262
* MasterPageParser.cs: do not compile anything while
parsing. MasterType virtual path is not compiled, but stored for
later. It is compiled when the MasterType property is requested
from within MasterPageCompiler.
* PageParser.cs: do not compile anything while
parsing. MasterPageFile, MasterType and PreviousPageType virtual
paths aren't compiled but checked for existence and stored for
later. Actual compilation happens when the MasterType and
PreviousPageType are requested from within PageCompiler.
* BaseParser.cs: added a new helper method, ThrowParseFileNotFound.
2008-12-10 Marek Habersack <[email protected]>
* ParseException.cs: made serializable.
* PageCompiler.cs: CreateStronglyTypedProperty calls
AddReferencedAssembly to add type's assembly to the unit's
references after the typed property has been created.
* BaseCompiler.cs: added a new helper method,
AddReferencedAssembly to be used whenever an assembly location
needs to be added to the compilation unit's list after the parsing
is done (e.g. when processing PreviousPageType or MasterPageType
properties in PageParser)
2008-12-10 Marek Habersack <[email protected]>
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWebResources/MissingMasterFile.aspx
* System.Web_test.dll.sources: added System.Web.UI/PageParserTest.cs
2008-12-10 Marek Habersack <[email protected]>
* NunitWebResources/MissingMasterFile.aspx: added
2008-12-10 Marek Habersack <[email protected]>
* PageParserTest.cs: added
svn path=/trunk/mcs/; revision=121181
* HttpServerUtility.cs: when Execute finishes, clear
Request.QueryStringRaw. Backport of r121010 by Vladimir Krasnov.
svn path=/trunk/mcs/; revision=121064
* NunitWebResources/ValidPropertyBind5.aspx: added
* NunitWebResources/ReadWritePropertyControl.ascx: added a
writable string property.
2008-12-08 Marek Habersack <[email protected]>
* TemplateControlCompilerTest.cs: added another valid Bind
expression test.
2008-12-08 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: use the correct regex match group
index in SanitizeBindCall (), fixes bug #457011
svn path=/trunk/mcs/; revision=120988
* BuildManager.cs: attempt to enter the compilation critical
section with a timeout up to 3 times before giving up. This avoids
deadlocks in situations where there are two virtual directores
each containing user controls referencing user controls from the
other directory.
svn path=/trunk/mcs/; revision=120861
* System.Web_test.dll.sources: added System.Web.UI/DataBinderTest.cs
2008-12-03 Marek Habersack <[email protected]>
* DataBinderTest.cs: added
2008-12-03 Marek Habersack <[email protected]>
* DataBinder.cs: clean up Eval for good this time.
GetIndexedPropertyValue should throw an exception when a string
indexer expression is used and the container is an IList.
svn path=/trunk/mcs/; revision=120590
* DataBinder.cs: when Eval attempts to find Items [] in the
container, catch and ignore all exceptions - the null returned
from GetPropertyValue may be a legitimate return value.
svn path=/trunk/mcs/; revision=120485
* Makefile (TEST_RESOURCE_FILES): added
Test/mainsoft/NunitWeb/NunitWeb/Resources/Web.mono.config.1.1
2008-12-02 Marek Habersack <[email protected]>
* WebTest.cs: for 1.1, copy the Web.mono.config.1.1 resource
2008-12-02 Marek Habersack <[email protected]>
* Web.config: added ASP.NET AJAX 1.0 configuration entries
* Web.config.1.1: copied from the last revision before the above
changes, so that 1.1 tests don't fail.
* Web.mono.config.1.1: copied from revision before the AJAX
changes below, so that 1.1 tests don't fail.
svn path=/trunk/mcs/; revision=120442
* StateManagedCollection.cs: adding an item to the collection does
not call SetDirty as an item is added, thus not affecting the
indexes of its predecessors. Fixes bug #443100
Insert doesn't call SetDirtyObject as all objects are made dirty
in SetDirty which is called from here. Same applies to this [int]
indexer.
svn path=/trunk/mcs/; revision=120436
* TemplateControlCompiler.cs: instead of adding ContentPlaceHolder
instances to the ContentPlaceHolders collection when the
placeholder is instantiated in the control build method, collect
the ids and store them in ContentPlaceHolders inside the
constructor. Fixes bug #449970
For each content placeholder generate a public virtual property
named "Template_PLACEHOLDERID", this is compatible with what .NET
does.
* BaseCompiler.cs: added new virtual method,
AddStatementsToConstructor, which is called just before
CreateConstructor returns.
2008-12-01 Marek Habersack <[email protected]>
* MasterPage.cs: use List <string> for ContentPlaceHolders instead
of ArrayList.
CreateMasterPage now directly accesses the ContentPlaceHolders as
it is now a list of strings
svn path=/trunk/mcs/; revision=120353
* Style.cs: WriteStyleAttributes must not use the fontinfo field
directly, it has to be done via the Font property. Fixes bug
#449793
svn path=/trunk/mcs/; revision=120345
* DataBinder.cs: do the proper thing in Eval when a non-indexed
property is requested on an object and not found. In that case try
to use the Items property.
svn path=/trunk/mcs/; revision=120199
* System.Web.dll.sources: added
System.Web.Compilation/AspComponent.cs
2008-11-25 Marek Habersack <[email protected]>
* RootBuilder.cs: use new API in AspComponentFoundry to retrieve
registered control type.
* TemplateControlParser.cs: AddControlImports () removed. Its
functionality is now implemented in ControlBuilder.AddChild in a
more elegant, fine grained and correct way.
* TemplateParser.cs: replaced some "" with String.Empty
* ControlBuilder.cs: AddChild now adds an import for child's
namespace if the control being added has been registered in the
web.config file. Possible fix for #447896 and #447898
* PageParser.cs, MasterPageParser.cs: do not call
AddControlImports, it no longer exists.
2008-11-25 Marek Habersack <[email protected]>
* AspComponentFoundry.cs: GetComponentType methods replaced with
GetComponent returning an instance of AspComponent which fully
describes the registered item. Components are cached, indexed by
full tag name.
* AspComponent.cs: added
svn path=/trunk/mcs/; revision=119893