* HttpUtility.cs: moved chunks of code to the new
System.Web.Util.HttpEncoder class.
* HttpResponseHeader.cs: encode header names and values using
HttpEncoder.
* HttpRequest.cs: added internal method Validate, to validate the
request in 4.0 profile.
* HttpHeaderCollection.cs: added. A helper class to encode header
names/values on add.
* HttpApplication.cs: Pipeline () validates request by calling
HttpRequest.Validate in the 4.0 profile.
2010-06-01 Marek Habersack <[email protected]>
* HttpEncoder.cs: added. A 4.0 type but also used in 2.0 profile,
internally.
2010-06-01 Marek Habersack <[email protected]>
* HttpRuntimeSection.cs: added 4.0 properties
MaxQueryLengthString, MaxUrlLength, EncoderType and
RelaxedUrlToFileSystemMapping.
svn path=/trunk/mcs/; revision=158300
Author: Marek Habersack <[email protected]>
Date: Sat Mar 6 03:37:53 2010 +0100
2010-03-06 Marek Habersack <[email protected]>
* CompilerCollection.cs: in the 4.0 profile, the latest C#
standard is the compiler's default.
2010-03-06 Marek Habersack <[email protected]>
* CSharpCodeCompiler.cs: in the 4.0 profile, the latest C#
standard is the default one.
2010-03-06 Marek Habersack <[email protected]>
* RequestValidatorTestGenerated.cs: added
* RequestValidator.cs: added
2010-03-06 Marek Habersack <[email protected]>
* TestWorkerRequest.cs: added overloads of GetRawUrl and
GetUriPath which make sure that the returned paths do not contain
more than one leading / character.
* TestRunItem.cs: added new TestRunData property - to contain
per-appdomain test run data.
* TestCallback.cs: added a TestRunItem parameter.
* StandaloneTest.cs: runner object is created for each test item
now.
Added test progress feedback.
* ITestRunner.cs: added two properties, TestRunData - to return
collected test result data, if any, and Domain which returns the
current AppDomain.
2010-03-06 Marek Habersack <[email protected]>
* RequestValidatorTest.cs: added
2010-03-06 Marek Habersack <[email protected]>
* HttpRequest.cs: cache RawUrl value.
Added new internal property, PathNoValidation, which returns
request path without validating it.
Implemented 4.0 extensible validation.
* HttpApplication.cs: Pipeline () validates the request path, if
new validation mode is enabled, before doing anything else.
Added a generic LoadType overload which checks whether the loaded
type, if any, derives from the type specified in the method's
specialization.
2010-03-06 Marek Habersack <[email protected]>
* RequestValidator.cs: added
* RequestValidationSource.cs: added
2010-03-06 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: do not use Request.Path - it may
fail because of invalid web.config file, use
Request.PathNoValidation instead.
* VersionConverter.cs: added
* PropertyHelper.cs: added a Version converter helper.
* HttpRuntimeSection.cs: added 4.0 properties -
RequestPathInvalidCharacters, RequestValidationType and
RequestValidationMode.
svn path=/trunk/mcs/; revision=153172
* BuildManager.cs: do less work in the static constructor
2010-03-04 Marek Habersack <[email protected]>
* RuntimeHelpers.cs: added. Contains methods moved here from
HttpRuntime, so that initialization sequence of various objects is
independent of HttpRuntime.
2010-03-04 Marek Habersack <[email protected]>
* HttpRuntime.cs: do less work in the static constructor. Most of
the code was moved to System.Web.Util.RuntimeHelpers. Properties
which have been moved: MonoVersion, RunningOnWindows,
CaseInsensitive, IsDebuggingEnabled
Also:
- hushed some compiler warnings
- various classes now use RuntimeHelpers instead of HttpRuntime
svn path=/trunk/mcs/; revision=153038
* System.Web/HttpWriter.cs: new Response property and WriteUTF8Ptr
method.
* System.Web/HttpResponseStream.cs: added support for writing from an
IntPtr. copied the memcpy method from String.cs.
* System.Web.Compilation/BuildManager.cs: updated comment.
* System.Web.UI/ResourceBasedLiteralControl.cs: new Control. It's just
like a LiteralControl but will render itself from the bytes pointed to
by an IntPtr and not create any string from the underlying data unless
needed.
* System.Web.UI/TemplateControl.cs: implemented a bunch of methods
that are used from the precompiled assemblies for a web project. The
most notable change needed is to be able to read a win32 resource from
the dll of the control. The resource is a concatenation of literals
with plain text for the control and a specialized LiteralControl is
generated from different chunks of the resource.
* System.Web.UI/HtmlTextWriter.cs: new method that returns the
HttpWriter in use.
* System.Web.dll.sources: added new file.
* System.Web.Util/ICalls.cs: new internal call to get a pointer to the
win32 resource associated with the control's assembly.
svn path=/trunk/mcs/; revision=127579
* HttpHandlerAction.cs: removed the matches cache, it doesn't
improve matters here in 99% of the cases.
Regexps are no longer used to match handler paths, SearchPattern
is used instead.
2009-01-27 Marek Habersack <[email protected]>
* SearchPattern.cs: added
2009-01-27 Marek Habersack <[email protected]>
* System.Web.dll.sources: added System.Web.Util/SearchPattern.cs
svn path=/trunk/mcs/; revision=124659
* SessionStateModule.cs: use Request.FilePath instead of
Request.BaseVirtualDirectory to retrieve the cookie-less session
identifier. Fixes bug #397418
2008-07-29 Marek Habersack <[email protected]>
* UrlUtils.cs: fixed a typo in HasSessionId which made it always
return False. Fixes bug #397418
2008-07-29 Marek Habersack <[email protected]>
* SessionStateModule.cs: use Request.FilePath instead of
Request.BaseVirtualDirectory to retrieve the cookie-less session
identifier. Fixes bug #397418
2008-07-29 Marek Habersack <[email protected]>
* HttpRequest.cs: if the FilePath contains embedded cookie-less
session identifier, remove it before computing the base virtual
directory. Fixes bug #397418
svn path=/trunk/mcs/; revision=109156
2008-06-27 Robert Jordan <[email protected]>
* HttpCachePolicy.cs: map default HttpCacheability to
"Cache-control: private" for MS.NET compatibility.
Fixes bug #404083. Contributed by
Hubert FONGARNAND <[email protected]>.
In System.Web.Util:
2008-06-27 Robert Jordan <[email protected]>
* TimeUtil.cs (ToUtcTimeString): convert using the invariant
culture. Fixes bug #404083. Contributed by
Hubert FONGARNAND <[email protected]>.
svn path=/trunk/mcs/; revision=106737
* UrlUtils.cs: optimize string usage (do not compare against "").
2008-06-16 Marek Habersack <[email protected]>
* UrlUtilsTest.cs: those tests can be ran only under the 2.0
runtime (System.Web.Util.UrlUtils is an internal class)
svn path=/trunk/mcs/; revision=105899
* SessionStateModule.cs: set the application modifier path to bare
session id.
2008-06-04 Marek Habersack <[email protected]>
* UrlUtils.cs: added internal method HasSessionId
2008-06-04 Marek Habersack <[email protected]>
* SessionStateModule.cs: set application path modifier string to
the bare session ID.
2008-06-04 Marek Habersack <[email protected]>
* HttpResponse.cs: correctly modify virtual path to include the
session ID in cookieless session mode. Fixes bug #396628.
svn path=/trunk/mcs/; revision=104861
* SettingsMappingManager.cs: use the 'settings.map.config' name
for the application-specific mapper configuration. This ensures
that the file won't be downloadable on systems which don't support
the mapping feature without the need to add the extra handler
entry to the app's Web.config file. Thanks to Joe Audette for the
idea.
svn path=/trunk/mcs/; revision=91160
* SettingsMappingManager.cs: made the class public - it is
required for user-defined mappers to work.
Added a new property, Platform, which specifies the platform we're
running on. Platform check is now done only on initialization
time.
LoadMappings considers only the mappings which apply to the
current platform. Other entries are not loaded.
* SettingsMapping.cs: made the class public.
* SettingsMappingWhat.cs: made the class public.
* ISectionSettingsMapper.cs: made the interface public.
svn path=/trunk/mcs/; revision=91112
* TranslationResources.resx: added - string resources for the
Sqlite providers.
2007-12-08 Marek Habersack <[email protected]>
* SQLiteProviders_DatabaseSchema.sql: added
* Makefile: added support for compiling .resx resources.
Added SQLiteProviders_DatabaseSchema.sql to EXTRA_DISTFILES.
Added new resource files to EXTRA_DISTFILES
2007-12-08 Marek Habersack <[email protected]>
* HttpRuntime.cs: initialize the Settings Mapping Manager once per
application, just after initalizing the WebConfigurationManager
2007-12-08 Marek Habersack <[email protected]>
* SqliteProfileProvider.cs: added - a Profile Provider for
Sqlite, based on PostgreSQL Profile Provider code from Daniel
Nauck <[email protected]>
2007-12-08 Marek Habersack <[email protected]>
* TranslationProperties.Designer.cs: added - contains strongly
typed properties referring to string resources used by the Sqlite
providers.
2007-12-08 Marek Habersack <[email protected]>
* WebConfigurationManager.cs: GetSection now runs each section
through a mapper (if any is defined for the section) before
returning it to the caller.
2007-12-08 Marek Habersack <[email protected]>
* SqliteRoleProvider.cs: added - a Role Provider for
Sqlite, based on PostgreSQL Role Provider code from Daniel
Nauck <[email protected]>
* SqliteMembershipProvider.cs: added - a Membership Provider for
Sqlite, based on PostgreSQL Membership Provider code from Daniel
Nauck <[email protected]>
2007-12-08 Marek Habersack <[email protected]>
* SerializationHelper.cs: added - serialization helper for the
Sqlite Profile Provider.
* RoleManagerSectionMapper.cs: added - section settings mapper for
the RoleManager section.
* MembershipSectionMapper.cs: added - section settings mapper for
the Membership section.
* ISectionSettingsMapper.cs: added - interface definition for
section settings mappers.
* SettingsMappingWhat.cs: added - describes a single 'what' tag
instance inside the mapper definition in the settings.map file.
* SettingsMapping.cs: added - represents a single mapper entry in
the settings.map file.
* SettingsMappingManager.cs: added - manages settings mapping as
defined in the settings.map file.
svn path=/trunk/mcs/; revision=90972
* VirtualPathUtility.cs: fixed exceptions thrown from Combine
so they are compatible with MS.
* UrlUtils.cs: fixed GetFile to throw right exception
svn path=/trunk/mcs/; revision=71966
* HttpContext.cs (GetGlobalResourceObject): remove unused variable.
* StaticFileHandler.cs (ProcessRequest): remove unused variable.
* HttpApplication.cs (ProcessError): Remove unused variable.
2007-01-20 Miguel de Icaza <[email protected]>
* ClientBuildManager.cs: Remove unused variable (this could be a
real problem, we never use the appPhysicalTargetDir)
* AssemblyBuilder.cs: Remove unused field.
* AppResourceFilesCollection.cs: Remove unused field.
* TemplateControlCompiler.cs (GetExpressionFromString): Remove
unused variable.
* AppResourcesCompiler.cs: Remove unused variable.
* AppSettingsExpressionBuilder.cs (GetAppSetting): remove unused
parameter.
* PageCompiler.cs: Put InternalCreatePageProperty inside the
NET_2_0 block to eliminate warnings.
2007-01-20 Miguel de Icaza <[email protected]>
* HandlerFactoryConfiguration.cs (LoadType): remove unused
variable.
(ctor): do not assign parent, we do not use it, keep the code for
reference.
2007-01-20 Miguel de Icaza <[email protected]>
* ApplicationManager.cs: Remove unused variable.
(ShutdownAll) remove unused variables.
* ApplicationHost.cs: Protect create_dir lock
2007-01-20 Miguel de Icaza <[email protected]>
* SqlRoleProvider.cs: comment out unused code.
* SqlMembershipProvider.cs: Removed unused variables.
Remove unused variable.
* AnonymousIdentificationModule.cs (ClearAnonymousIdentifier):
remove unused variable. This might be a real bug.
2007-01-20 Miguel de Icaza <[email protected]>
* SessionStateModule.cs: Removed unused variables.
2007-01-20 Miguel de Icaza <[email protected]>
* SessionDictionary.cs: Removed unused variable (dirty).
2007-01-20 Miguel de Icaza <[email protected]>
* XhtmlTextWriter.cs: comment out unused code.
* ThemeProvider.cs: comment out unused code.
* DataSourceView.cs: Comment unused variable.
* ClientScriptManager.cs: Put the expandoAttributes inside the 2.0
code
* Control.cs: Put _templateControl inside the NET_2_0 ifdef
2007-01-20 Miguel de Icaza <[email protected]>
* HtmlHead.cs: comment out unused code, in particular metadata is
commented out because nothing could have triggered its creation.
* HtmlButton.cs: Move declaration of `csm' inside the 1.1 case.
2007-01-20 Miguel de Icaza <[email protected]>
* DataControlFieldCollection.cs (RemoveAt): remove unused
variable.
* RoleGroupCollection.cs (OnValidate): Flag as protected, as it
should not show up.
* RadioButton.cs (RaisePostDataChangedEvent): This method was not
used in 1.0, so put the whole method in 2.0
2007-01-20 Miguel de Icaza <[email protected]>
* WebPart.cs: Remove
* PersonalizableAttribute.cs: Remove extra API that was wrong as well.
2006-11-28 Miguel de Icaza <[email protected]>
* WebPart.cs:
2007-01-20 Miguel de Icaza <[email protected]>
* FileUtils.cs (CreateTemporaryFile): Remove unused variable.
svn path=/trunk/mcs/; revision=71399
* WebEncoding.cs: rework this so we cache the section, and so we
swallow exceptions based on a broken configuration.
svn path=/trunk/mcs/; revision=56139
* UrlUtils.cs: removed 2 unused methods. IsRelativeUrl returns false if
there's a colon in the string, assuming it's the beginning of the ://
after the schema.
svn path=/trunk/mcs/; revision=49044
* UrlUtils.cs (Reduce): a more efficient impl that avoids an
arraylist, making an arraylist into an array, and a replace
operation.
svn path=/trunk/mcs/; revision=44292
* System.Web.SessionState/SessionStateModule.cs: set the path modifier
when using cookie-less sessions.
* System.Web/HttpResponse.cs: fixed ApplyAppPathModifier to insert the
session ID.
* System.Web.UI/Control.cs: fixed ResolveUrl for relative URLs when
using cookie-less sessions.
* System.Web.Util/UrlUtils.cs: made (Insert|Get|Remove)SessionId use
the appRoot + SessionID + vpath format.
Fixes the 3 issues reported in bug #66623.
svn path=/trunk/mcs/; revision=36818
* UrlUtils.cs:
(GetFile): not public, and fixed to really return just the file name.
(InsertSessionId): ensure that the directory ends with a "/". This
fixes cookieless sessions.
svn path=/trunk/mcs/; revision=28109