* 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-30 Marek Habersack <[email protected]>
* TraceManager.cs: Catch all the possible exceptions in the
constructor - the object MUST be created successfully (even if
there are errors).
* HttpRequest.cs: do not attempt to apply url mappings if the
configuration manager has errors.
* HttpRuntime.cs: handle static constructor exceptions later on,
during the first call to ReallyProcessRequest.
* QueueManager.cs: provide defaults for the parameters to be read
from the config file(s).
Catch all the possible exceptions in the constructor - the object
MUST be created successfully (even if there are errors).
svn path=/trunk/mcs/; revision=78208
* 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.
* ConfigurationLocationCollection.cs: for TARGET_JVM only:
location path is case-insensitive.
* PageMapper.cs: reverted r77353, 77321
make it case-insensitive
svn path=/trunk/mcs/; revision=77415
* WebConfigurationManager.cs:
make configurations synchronized.
added new internal method RemoveConfigurationFromCache.
* HttpApplication.cs:
prevent DOS attack: remove configuration from the cache in case
of invalid resource not exists
svn path=/trunk/mcs/; revision=77336
* HttpRequest.cs: MS.NET throws HttpException for invalid paths,
not ArgumentNullException.
* HttpException.cs: wrap GetHtmlErrorMessage internals in
try/catch to capture possible exceptions in HttpContext.
* HttpContext.cs: IsCustomErrorEnabled is used from within
HttpException, make sure it gets the section in a safe way and
resorts to the default settings.
* HttpResponse.cs: HeaderEncoding is used in the same context as
above. Take the same precautions.
2007-04-24 Marek Habersack <[email protected]>
* 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).
* WebConfigurationManager.cs: added two internal methods for safe
retrieval of config sections.
svn path=/trunk/mcs/; revision=76162
* 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
* Rationalize the user of MonoTODOs.
- Removed all the TODOs that were only overwritten methods
and had no further information.
- Methods that threw exceptions now have the message "Not
implemnted".
- Methods that return some constant are declared like
that.
- Removed a bunch of stale MonoTODOs that had not been
removed.
svn path=/trunk/mcs/; revision=68620
* WebConfigurationManager.cs: recent sys.config.dll changes on
ConfigurationManager.GetSection() which should call
GetRuntimeObject() should also apply here. Fixed monodoc web.
svn path=/trunk/mcs/; revision=60816
* 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.
svn path=/trunk/mcs/; revision=60415
[ 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.
svn path=/trunk/mcs/; revision=60275
* 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.
svn path=/trunk/mcs/; revision=56421
* 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.
svn path=/trunk/mcs/; revision=56311
* 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.
svn path=/trunk/mcs/; revision=56137
* 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?
svn path=/trunk/mcs/; revision=55650
* 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.
svn path=/trunk/mcs/; revision=54213