1 2010-04-02 Marek Habersack <mhabersack@novell.com>
3 * HttpException.cs: handle situations when current exception is an
4 instance of a class derived from HttpException and there's no
7 * HttpApplication.cs: ProcessError must call ClearError on the
8 current context after the handler returns without error. Fixes bug
11 2010-03-30 Gonzalo Paniagua Javier <gonzalo@novell.com>
13 * HttpResponseStream.cs: speed up short writes.
15 2010-03-20 Marek Habersack <mhabersack@novell.com>
17 * SiteMapNode.cs: avoid calling ChildNodes twice in HasChildNodes.
18 Cache child nodes in the ChildNodes property.
20 2010-03-06 Marek Habersack <mhabersack@novell.com>
22 * HttpRequest.cs: cache RawUrl value.
23 Added new internal property, PathNoValidation, which returns
24 request path without validating it.
25 Implemented 4.0 extensible validation.
27 * HttpApplication.cs: Pipeline () validates the request path, if
28 new validation mode is enabled, before doing anything else.
29 Added a generic LoadType overload which checks whether the loaded
30 type, if any, derives from the type specified in the method's
33 * HttpUtility.cs: decode entities which use hexadecimal
34 encoding. Fixes bug #585992. Patch from Sebastien Morin
35 <smsisko@gmail.com>, thanks!
37 2010-03-04 Marek Habersack <mhabersack@novell.com>
39 * HttpRuntime.cs: do less work in the static constructor. Most of
40 the code was moved to System.Web.Util.RuntimeHelpers. Properties
41 which have been moved: MonoVersion, RunningOnWindows,
42 CaseInsensitive, IsDebuggingEnabled
44 2010-02-27 Marek Habersack <mhabersack@novell.com>
46 * HttpRuntime.cs: added internal property DomainUnloading.
48 * HttpApplication.cs: when app domain is unloading, catch
49 ThreadAbortExceptions and reset the abort.
51 2010-02-03 Marek Habersack <mhabersack@novell.com>
53 * HttpApplication.cs: GetOutputCacheProviderName returns the value
54 of OutputCache.DefaultProviderName
56 * HttpRuntime.cs: internal cache is used to hold the dependencies
59 2010-01-20 Marek Habersack <mhabersack@novell.com>
61 * HttpContext.cs: implemented the 4.0 SetSessionStateBehavior
64 * HttpCacheVaryByContentEncodings.cs, HttpCacheVaryByHeaders.cs,
65 HttpCacheVaryByParams.cs : parameterless constructors are public
68 * HttpApplication.cs: implemented the 4.0
69 GetOutputCacheProviderName method
71 2010-01-19 Marek Habersack <mhabersack@novell.com>
73 * StaticSiteMapProvider.cs: AddNode checks the url of node
74 returned by FindSiteMapNode to see if it indeed was a
75 duplicate. It is necessary if application derives from
76 StaticSiteMapProvider and overrides FindSiteMapNode to return
77 RootNode if rawUrl doesn't match any existing node. Fixes bug
80 2010-01-09 Marek Habersack <mhabersack@novell.com>
82 * VirtualPathUtility.cs: small optimizations for GetDirectory
84 2009-11-23 Marek Habersack <mhabersack@novell.com>
86 * HttpRequest.cs: PathInfo returns an empty string when worker
87 request is absent or its GetPathInfo method returns a null. Patch
88 from Tiaan <tagdev@gmail.com>, thanks!
90 2009-11-19 Marek Habersack <mhabersack@novell.com>
92 * VirtualPathUtility.cs: made Normalize internal
94 2009-11-16 Marek Habersack <mhabersack@novell.com>
96 * HttpContext.cs: RewritePath now treats non-rooted and
97 app-relative paths correctly - the former are formed by
98 concatenating base virtual path with the passed file path and the
99 latter by calling VirtualPathUtility.ToAbsolute. Rooted and
100 absolute paths are left unmodified. Fixes bug #550103
102 2009-11-13 Marek Habersack <mhabersack@novell.com>
104 * HttpResponse.cs: added parameter checks to Redirect ().
105 If the passed url starts with http:, https:, file: or ftp: then it
106 is treated as a fully qualified one and no attempt to rewrite the
107 url to the fully qualified form (if system.web/httpRuntime
108 UseFullyQualifiedRedirectUrl is true) is made.
110 2009-11-09 Marek Habersack <mhabersack@novell.com>
112 * HttpCookie.cs: made HttpCookie.CookieNVC serializable. Patch
113 from Sean Foy <sean.foy+novell@gmail.com>, thanks! Fixes bug
116 * HttpCookieCollection.cs: Add allows for duplicate cookie
117 names. Fixes bug #553150
119 2009-10-30 Marek Habersack <mhabersack@novell.com>
121 * HttpRequest.cs: added internal property ClientFilePath, which
122 may have a different value than FilePath when virtual path has
123 been rewritten, but the caller specified that the client paths
124 should still be constructed using the original url.
126 * HttpContext.cs: RewritePath always sets Request.FilePath,
127 Request.ClientFilePath is set only when setClientFilePath is
128 true. This makes client urls work correctly when url rewriting is
131 2009-10-20 Marek Habersack <mhabersack@novell.com>
133 * HttpResponse.cs: implemented the WriteSubstitution method,
134 thus enabling post-cache substitution.
136 2009-10-12 Marek Habersack <mhabersack@novell.com>
138 * HttpResponse.cs: actually _use_ the url passed to Redirect when
139 fully qualified redirect url is requested, doh. Fixes bug #542846
141 2009-10-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
143 * StaticFileHandler.cs: it's the last flush even when a VPP is used.
145 2009-10-07 Marek Habersack <mhabersack@novell.com>
147 * TraceData.cs: make long execution times stand out.
149 2009-09-29 Miguel de Icaza <miguel@novell.com>
151 * HttpUtility.cs: Do not use CAS Attributes when using MonoTouch.
153 Remove unnecesasry using clause.
155 2009-09-29 Marek Habersack <mhabersack@novell.com>
157 * HttpResponse.cs: use full url in redirect if
158 UseFullyQualifiedRedirectUrl is set to true in httpRuntime
159 configuration section. Patch from Brett Kiefer
160 <brett@fogcreek.com>, thanks! Fixes bug #542846
162 2009-09-28 Marek Habersack <mhabersack@novell.com>
164 * HttpContext.cs: GetResourceProvider - renamed the 'key' argument
165 to 'virtualPath' in order to reflects its purpose better. Local
166 resource providers are created for the passed virtualPath and not
167 for the current request's path. Fixes bug #542484
169 2009-09-25 Marek Habersack <mhabersack@novell.com>
171 * StaticSiteMapProvider.cs: MapUrl must normalize paths. Fixes bug
174 * XmlSiteMapProvider.cs: siteMapFile parameter must be mapped in
175 Initialize. Fixes bug #541969
177 2009-09-24 Marek Habersack <mhabersack@novell.com>
179 * XmlSiteMapProvider.cs: added "securityTrimmingEnabled" to the
180 list of supported attributes in Initialize. Fixes bug #541607
182 2009-09-07 Marek Habersack <mhabersack@novell.com>
184 * HttpContext.cs: when creating local resource provider, pass the
185 current file's virtual path to CreateLocalResourceProvider. Fixes
188 * XmlSiteMapProvider.cs: do not allow the provider to be
189 intialized more than once.
190 Initialize throws if it finds unknown attributes in the
191 'attributes' collection.
192 AddNode checks its arguments and throws if they are null or aren't
193 from the same provider.
194 FindStartingNode throws exceptions in several erroneous situations
196 Added private method GetConfigDocument which performs several
197 checks on the source .sitemap file and throws exceptions if it
199 BuildSiteMap clears provider state before building the map.
200 BuildSiteMapRecursive correctly deals with custom providers. Fixes
202 FindSiteMapNode maps url before searching. Fixes bug #465696
204 * VirtualPathUtility.cs: Combine a bit more efficient
206 * StaticSiteMapProvider.cs: FindSiteMap node checks if rawUrl is
207 relative to application root and if yes, makes it absolute.
208 MapUrl converts both rooted and not rooted urls to absolute.
210 * SiteMapProvider.cs: check if HttpContext.Request exists before
211 using it in FindSiteMapnode
213 * SiteMap.cs: Providers collection must be read-only.
215 2009-09-04 Marek Habersack <mhabersack@novell.com>
217 * HttpRuntime.cs: retrieve real Mono version from the runtime and
218 store it in the MonoVersion internal static property.
220 * HttpException.cs: report real Mono version when backtrace is
223 2009-08-24 Marek Habersack <mhabersack@novell.com>
225 * VirtualPath.cs: Added new constructor which takes virtual and
226 physical paths as well as a boolean marking the instance as
227 referring to a fake location. Part of fix for bug #463813
229 2009-07-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
231 * HttpApplicationFactory.cs: allow subclasses of EventHandler for
232 event handlers in global.asax.
235 2009-07-23 Marek Habersack <mhabersack@novell.com>
237 * HttpException.cs: if an exception is processed which refers to
238 internal "files", don't show the internal name.
240 2009-07-18 Marek Habersack <mhabersack@novell.com>
242 * HttpContext.cs: GetGlobalResourceObject must look for resources
243 in the 'Resources' "namespace" - it was a regression from the
244 previous change to that method.
246 2009-07-15 Marek Habersack <mhabersack@novell.com>
248 * HttpApplicationFactory.cs: added internal methods to
249 enable/disable specific watchers. Part of fix for bug #522017
251 2009-07-14 Gonzalo Paniagua Javier <gonzalo@novell.com>
253 * ApplicationShutdownReason.cs: add new 3.5 value.
254 * ParserErrorCollection.cs: add setter for ParserError.
255 Patch from Daniel Gagne.
257 2009-07-14 Marek Habersack <mhabersack@novell.com>
259 * HttpApplicationFactory.cs: OnFileChanged doesn't reload
260 application if reload suppression is active.
262 2009-07-13 Marek Habersack <mhabersack@novell.com>
264 * HttpApplication.cs: LoadType - wrap call to LoadTypeFromBin in
265 try/catch so that we can decide whether or not to throw
266 exceptions. LoadTypeFromBin - ignore the FileLoadException and
267 BadImageException exceptions as they don't matter in this
270 2009-07-13 Gert Driesen <drieseng@users.sourceforge.net>
272 * HttpResponseStream.cs: Added argument checks to Write. Modified
273 methods/properties that requires a readable stream to throw
274 NotSupportedException instead of InvalidOperationException for
275 compatibility with MS.
277 2009-07-09 Gonzalo Paniagua Javier <gonzalo@novell.com>
279 * HttpApplication.cs: use GetSection instead of
280 OpenWebConfiguration+GetSection.
282 2009-07-09 Marek Habersack <mhabersack@novell.com>
284 * HttpContext.cs: fall back to default resource provider factory
285 if the factory provided by user doesn't have the required object
286 in Get{Global,Local}ResourceObject. Fixes bug #520397
287 Refactored the GetResourceObject method and the
288 ResourceManagerCacheKey class to DefaultResourceProvider.
290 2009-07-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
292 * ParserError.cs: add 3 missing setters. Patch from Daniel Gagne.
294 2009-06-15 Marek Habersack <mhabersack@novell.com>
296 * HttpCachePolicy.cs: SetHeaders adds max-age when MaxAge is set
297 to TimeSpan.Zero by calling SetMaxAge. Fixes bug #513000
299 2009-06-05 Marek Habersack <mhabersack@novell.com>
301 * VirtualPathUtility.cs: IsValidVirtualPath no longer uses
302 WebConfigurationManager.GetSection to retrieve the verification
303 setting. Instead, the setting is retrieved in the static
306 * HttpRequest.cs: ApplyUrlMapping must not use
307 WebConfigurationManager.GetSection as it would cause a recursive
308 call loop. Code to detect whether url mappings are in effect has
309 been moved to a static constructor.
311 2009-06-04 Marek Habersack <mhabersack@novell.com>
313 * HttpResponse.cs: version header configuration is read lazily
316 * HttpException.cs: do not show version info if custom errors are
317 in effect. Fixes bug #509092
318 Don't generate trace for 403. Fixes bug #509092
320 * HttpApplicationFactory.cs: OnFileChanged ignores the directory
321 part of the file triggering the event. Fixes bug #509998
323 2009-06-03 Marek Habersack <mhabersack@novell.com>
325 * VirtualPathUtility.cs: IsValidVirtualPath now checks the value
327 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\VerificationCompatibility
328 registry key when running on Windows and also consults the
329 mono-specific system.web/monoSettings configuration section to see
330 what is the verificationCompatibility property set to. If either
331 of the two is set to 1, Mono will not verify the validity of
332 the current request's path. Fixes bug #509163
334 * HttpApplicationFactory.cs: OnFileChanged must check whether the
335 modified location is a directory before it decides to ignore it
336 when watcher's filter is "?eb.?config". Fixes bug #509450 (see
339 * HttpForbiddenHandler.cs: updated the error message to match
340 .NET, added requested path and description. Fixes bug #509092
342 * HttpException.cs: if trace is not requested, don't output <!--
343 following the version information in WriteFileBottom. Fixes bug
345 GetDefaultErrorMessage appends trace only if showTrace is
346 true. Fixes bug #509092
348 2009-06-02 Marek Habersack <mhabersack@novell.com>
350 * HttpApplication.cs: LocateHandler needs to pass current request
351 path and filepath to WebConfigurationManager when retrieving
352 system.web/httpHandlers section as only this will guarantee that
353 any <location> elements relating to the current request's which
354 contain system.web/httpHandlers section will be correctly read and
355 used. Also fixes reading httpHandlers section if it's found in
356 web.config located in a subdirectory. Fixes bug #509069
358 * HttpException.cs: 403 errors get same treatment as 404
359 below. Fixes bug #509092
361 2009-06-01 Marek Habersack <mhabersack@novell.com>
363 * HttpException.cs: if custom errors are enabled and the error
364 code is 404 show the "standard" 404 error message instead of the
365 default custom error mode one. Fixes bug #508649
367 2009-05-28 Marek Habersack <mhabersack@novell.com>
369 * HttpUtility.cs: fixed UrlDecode for encoded strings which
370 should be converted to byte sequences longer than 2 bytes. Fixes
373 2009-05-14 Marek Habersack <mhabersack@novell.com>
375 * HttpApplication.cs: LocateHandler won't cache if a default
376 handler was returned.
378 2009-05-07 Gonzalo Paniagua Javier <gonzalo@novell.com>
380 * MimeTypes.cs: add silverlight related types.
382 2009-04-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
385 * HttpWorkerRequest.cs:
386 * HttpRuntime.cs: if other parts of the system are using the
387 threadpool and we queue requests, once the threadpool is free we
388 might still not get back to use it to the maximum extent possible.
389 Adding a few more calls to QueuePendingRequest ensures that does not
392 2009-04-24 Marek Habersack <mhabersack@novell.com>
394 * HtmlizedException.cs: make HtmlException derive from
395 HttpException. System.Web.Mvc relies upon compile and parse
396 exception being descendants of HttpException or otherwise it will
397 catch and ignore compilation/parsing errors.
399 2009-04-16 Marek Habersack <mhabersack@novell.com>
401 * HttpContext.cs: local resources code now uses the custom
402 resource provider factory, just like the global resources
403 code. Fixes bug #493263
405 2009-04-15 Marek Habersack <mhabersack@novell.com>
407 * HttpApplicationFactory.cs: if a notification is received from a
408 FileSystemWatcher which was configured to watch for
409 subdirectories, uses a filter (currently we have just one such
410 watcher - waiting for changes to '?eb.?onfig') and the event
411 doesn't match the filter, ignore the event. Fixes bug #495011
413 2009-04-13 Gonzalo Paniagua Javier <gonzalo@novell.com>
415 * HttpUtility.cs: the collection returned from ParseQueryString knows
416 how to convert the key/value pairs to a string.
418 2009-04-10 Gonzalo Paniagua Javier <gonzalo@novell.com>
420 * HttpResponseStream.cs: use the unsafe version when copying buffers.
422 2009-04-06 Marek Habersack <mhabersack@novell.com>
424 * HttpRuntime.cs: added a new internal static property
427 * HttpContext.cs: IsDebuggingEnabled now calls
428 HttpRuntime.IsDebuggingEnabled
430 2009-04-03 Gert Driesen <drieseng@users.sourceforge.net>
432 * HttpRuntime.cs: Avoid ANE on Windows when HttpRuntime is used
433 outside of ASP.NET. Fixed compiler warning by setting
434 assemblyMappingEnabled.
436 2009-04-02 Marek Habersack <mhabersack@novell.com>
438 * HttpException.cs: if there are more lines with errors, display
441 2009-03-31 Marek Habersack <mhabersack@novell.com>
443 * HttpApplicationFactory.cs: use glob patterns to watch for
444 changes to global.asax and web.config files.
445 Set up recursive watch on web.config in a separate thread, to
446 minimize application startup delay. Fixes bug #490497
448 * VirtualPath.cs: added code to detect whether the VirtualPath
449 instance represents a fake virtual path (IsFake property).
450 Added new property DirectoryNoNormalize which returns
451 non-normalized directory for the VirtualPath instance.
452 Made ToString () a bit more friendly and well-behaved.
454 2009-03-26 Marek Habersack <mhabersack@novell.com>
456 * HttpWorkerRequest.cs: use a generic dictionary to keep header
458 GetKnown{Request,Response}HeaderIndex doesn't use the switch
461 * HttpResponse.cs: WriteHeaders now checks whether a header to be
462 sent is a known one or not and uses the appropriate method to send
463 that header. Partial fix for bug #488702
465 2009-03-25 Gonzalo Paniagua Javier <gonzalo@novell.com>
467 * HttpResponse.cs: ClearHeaders() also resets cacheability.
470 2009-03-21 Marek Habersack <mhabersack@novell.com>
472 * HttpResponse.cs: added two missing 3.0+ properties -
473 SubStatusCode and TrySkipIisCustomErrors.
475 2009-03-04 Marek Habersack <mhabersack@novell.com>
477 * HttpRuntime.cs: do not clean the dynamic base directory in
478 DoUnload, it can cause race conditions.
480 2009-03-03 Marek Habersack <mhabersack@novell.com>
482 * HttpResponse.cs: fully implemented the Headers property.
483 It is also used in the 1.1 profile, but is internal.
485 * HttpCookie.cs: GetCookieHeader renamed to GetCookieHeaderValue -
486 now returns a string with the header value.
488 * HttpCacheVaryByParams.cs: GetResponseHeader renamed to
489 GetResponseHeaderValue - now returns a string with the header
492 * HttpCachePolicy.cs: SetHeaders now takes a NameValueCollection
493 instead of an ArrayList
495 * HttpRequest.cs: avoid calculating the same value twice in
498 2009-03-02 Everaldo Canuto <ecanuto@novell.com>
500 * HttpResponse.cs: Headers property implementation.
502 2009-02-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
504 * Web/HttpResponseHeader.cs:
505 * Web/HttpResponse.cs:
506 * Web/QueueManager.cs:
507 * Web/HttpRequest.cs:
508 * Web/TraceManager.cs:
509 * Web/HttpServerUtility.cs:
510 * Web/HttpApplication.cs: use GetWebApplication
511 instead of GetSection for application level configuration.
513 2009-02-26 Marek Habersack <mhabersack@novell.com>
515 * HttpResponse.cs: added DisableKernelCache and TransmitFile
518 * IisTraceListener.cs: added + implemented
520 2009-02-25 Marek Habersack <mhabersack@novell.com>
522 * HttpApplication.cs: let the current context known that
523 MapRequestHandler is done.
525 * HttpContext.cs: implemented RemapHandler
527 2009-02-24 Marek Habersack <mhabersack@novell.com>
529 * TempFileStream.cs: the class is internal
531 * VirtualPathUtility.cs: ToAbsolute (string, string, bool) is
534 * HttpException.cs: made the HttpException (int httpCode, string
535 message, Exception innerException, string resourceName) internal.
537 2009-02-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
539 * HttpServerUtility.cs: allow Transfer to static files too.
541 2009-02-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
543 * HttpWriter.cs: new Response property and WriteUTF8Ptr
545 * HttpResponseStream.cs: added support for writing from an
546 IntPtr. copied the memcpy method from String.cs.
548 2009-02-18 Gonzalo Paniagua Javier <gonzalo@novell.com>
550 * HttpApplicationFactory.cs: check of global.asax was precompiled.
552 2009-01-29 Gonzalo Paniagua Javier <gonzalo@novell.com>
554 * HttpApplicationFactory.cs: fix check that avoids lock. Keep one
555 HttpApplication instance ready to be returned in an instance variable
556 to avoid a few locks.
558 2009-01-29 Marek Habersack <mhabersack@novell.com>
560 * HttpApplicationFactory.cs: optimize lock usage.
562 2009-01-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
564 * HttpResponse.cs: make sure config is not null here.
565 * HttpApplication.cs: add a timer (-d:PIPELINE_TIMER) for the pipeline.
566 Handle timeouts for OutputPage() too.
568 2009-01-23 Gonzalo Paniagua Javier <gonzalo@novell.com>
570 * HttpApplicationFactory.cs: set/reset the context for the application
571 when creating/disposing. Dispose() out of the lock.
573 2009-01-24 Marek Habersack <mhabersack@novell.com>
575 * XmlSiteMapProvider.cs: if a nested sitemap is used (via the
576 siteMapFile node attribute) watch the named file for
577 changes. Fixes bug #465693
579 2009-01-19 Christian Hergert <christian.hergert@gmail.com>
581 * QueueManager.cs: Implement requests queued performance counter.
582 * HttpRuntime.cs: Implement requests total counter.
583 * HttpApplication.cs: Implement requests total counter.
585 2009-01-13 Dean Brettle <dean@brettle.com>
587 * HttpApplicationFactory.cs: if there are any *.browser files in
588 App_Data/Mono_Machine_Browsers/, use those instead of the default
589 machine browser files. This allows app developers to workaround
590 limitations with Mono's default browser files without causing
591 incompatibilities with MS's implementation.
593 2009-01-09 Marek Habersack <mhabersack@novell.com>
595 * HttpContext.cs: RewritePath now treats relative and absolute
596 file paths with more care. If a path is of the ~/file.aspx form,
597 then the ~/ part is removed and the rest is combined with the base
598 virtual path. If the file path is of the ~ or /file.aspx forms,
599 then it is combined verbatim with the base virtual path. Fixes bug
601 Make sure the path returned from HttpRequest.BaseVirtualPath
602 contains the trailing slash before combining. Fixes bug #463964
604 2008-12-25 Gonzalo Paniagua Javier <gonzalo@novell.com>
606 * ServerVariablesCollection.cs: use IndexOf (char).
608 2008-12-24 Marek Habersack <mhabersack@novell.com>
610 * HttpApplicationFactory.cs: watch for changes to web.config also
611 in the subdirectories.
613 2008-12-20 Marek Habersack <mhabersack@novell.com>
615 * HttpResponse.cs: the code in TransmitFile (VirtualFile, bool)
616 was an abomination - dear children, don't do this at home (never,
617 ever, allocate a buffer to load entire file). I will wear a brown
618 paper bag every 2nd Sunday in the next 6 months for writing the
619 old version of this code.
620 New code optimizes the write when DefaultVirtualFile is used (as
621 it refers to a physical file on disk) and reads/writes other
622 virtual files in chunks.
624 2008-12-16 Marek Habersack <mhabersack@novell.com>
626 * StaticFileHandler.cs: use HttpRuntime.RunningOnWindows instead
627 of checking the platform directly.
629 2008-12-09 Marek Habersack <mhabersack@novell.com>
631 * HttpServerUtility.cs: when Execute finishes, clear
632 Request.QueryStringRaw. Backport of r121010 by Vladimir Krasnov.
634 2008-12-03 Gert Driesen <drieseng@users.sourceforge.net>
636 * NoParamsInvoker.cs:
637 * HttpApplicationFactory.cs: Fixed support for static eventhandlers.
639 2008-11-25 Gonzalo Paniagua Javier <gonzalo@novell.com>
641 * HttpContext.cs: MS does not throw. They just return null.
643 2008-11-24 Marek Habersack <mhabersack@novell.com>
645 * HttpRuntime.cs: take PlatformID.MacOSX into account when
646 determining whether we're running on Windows or not. Possible fix
649 2008-11-21 Marek Habersack <mhabersack@novell.com>
651 * HttpParseException.cs, HtmlizedException.cs: added
652 deserialization constructor.
654 2008-10-31 Marek Habersack <mhabersack@novell.com>
656 * HttpContext.cs: RewritePath correctly rewrites paths for cases
657 when application is running under a virtual directory different to
658 '/'. Fixes bug #371581
659 RewritePath checks the passed virtual path for validity.
661 * HttpRequest.cs: MapPath now uses
662 VirtualPathUtility.IsValidVirtualPath.
664 * VirtualPathUtility.cs: made Canonize () internal.
665 Added a new method - IsValidVirtualPath () which checks whether a
666 passed path contains only characters allowed for virtual paths.
668 2008-10-22 Marek Habersack <mhabersack@novell.com>
670 * HttpApplicationFactory.cs: use only the first matching method in
671 GetApplicationTypeEvents, since it will be the one coming from the
672 topmost type. Partial fix for bug #437691
674 2008-10-21 Marek Habersack <mhabersack@novell.com>
676 * HttpApplication.cs: if context.Session is null in get_Session,
677 throw an exception. Fixes bug #437289
679 * CapabilitiesLoader.cs: seal BrowserData.
680 Seal CapabilitiesLoader.
681 Do not lock on typeof (CapabilitiesLoader) in GetCapabilities ().
683 2008-10-16 Marek Habersack <mhabersack@novell.com>
685 * HttpApplicationFactory.cs: when looking up application type
686 event handlers (the Application_* methods), look deep in the
687 parent chain - we must support private handler methods in base
690 2008-10-15 Marek Habersack <mhabersack@novell.com>
692 * HttpResponse.cs: CacheabilityUpdatedEvent is no longer
693 used. cached_response is allocated only when the IsCached property
694 is assigned the 'true' value.
696 * HttpCachePolicy.cs: CacheabilityUpdatedEvent is no longer used,
697 removed all the traces of it. SetCacheability should not switch
700 2008-10-12 Gert Driesen <drieseng@users.sourceforge.net>
702 * HttpResponse.cs: Simplify code for outputting ASP.NET version, as
703 version header cannot be configured. MS corrected this documenation
704 error in .NET 2.0 SDK.
706 2008-10-03 Gonzalo Paniagua Javier <gonzalo@novell.com>
708 * HttpApplication.cs: make sure we release the resources used by the
709 request and/or the response at the end of the request.
712 2008-10-01 Marek Habersack <mhabersack@novell.com>
714 * BrowserCapabilities.cs: IsBrowser needs to compare browser names
717 2008-09-29 Marek Habersack <mhabersack@novell.com>
719 * HttpApplication.cs: do not assume the passed IAsyncResult is a
720 is a valid object in async_handler_complete_cb. Fixes bug #430488
722 2008-09-28 Sebastien Pouliot <sebastien@ximian.com>
724 * HttpRequest.cs: Make sure the result of the multiplications are
725 longs (not integers casted into longs since they could overflow).
726 [Found using Gendarme's ReviewCastOnIntegerMultiplicationRule]
728 2008-09-23 Marek Habersack <mhabersack@novell.com>
730 * HttpWorkerRequest.cs: implemented a SendCalculatedContentLength
731 overload. This method apparently does nothing in MS.NET.
733 2008-09-16 Juraj Skripsky <js@hotfeet.ch>
735 * HttpServerUtility.cs (UrlDecode, UrlEncode): Respect request/response
736 encoding. Fixes bug #426539.
738 2008-08-29 Marek Habersack <mhabersack@novell.com>
740 * HttpApplication.cs: do not cache handlers which aren't
743 2008-08-20 Marek Habersack <mhabersack@novell.com>
745 * HttpResponseHeader.cs: encode header values if
746 httpRuntime.enableHeaderChecking is true (default). Fixes bug
749 2008-08-13 Marek Habersack <mhabersack@novell.com>
751 * HttpException.cs: do not use StringBuilder.AppendFormat when
754 2008-08-08 Marek Habersack <mhabersack@novell.com>
756 * XmlSiteMapProvider.cs: a better bugfix for bug #412495.
757 Do not call RootNode within BuildSiteMap, as it induces
758 recursion. Fixes bug #415685.
760 2008-07-29 Marek Habersack <mhabersack@novell.com>
762 * HttpRequest.cs: if the FilePath contains embedded cookie-less
763 session identifier, remove it before computing the base virtual
764 directory. Fixes bug #397418
766 2008-07-28 Marek Habersack <mhabersack@novell.com>
768 * XmlSiteMapProvider.cs: set the base ResourceKey to the name of
769 our associated site map file, so that localization works
770 correctly. Fixes bug #412493
771 Do not add the root node retrieved from BuildSiteMapRecursive in
772 BuildMap, if the node is already the current root node. Fixes bug
775 2008-07-26 Gert Driesen <drieseng@users.sourceforge.net>
777 * HttpCachePolicy.cs: Only add Expires header if expire date is
778 actually set. Removed extra tabs and regions. Code formatting.
780 2008-07-23 Marek Habersack <mhabersack@novell.com>
782 * HttpApplication.cs: do not register handlers for
783 BeginRequest/EndRequest when called from within the
784 Application_Start handler. Fixes bug #411213
786 * HttpApplicationFactory.cs: let the application know we're
787 running the Application_Start handler so that it can suppress
788 registering some events from inside that handler (see bug
789 #381971). Fixes bug #411213
791 2008-06-30 Marek Habersack <mhabersack@novell.com>
793 * HttpRuntime.cs, HttpApplication.cs: hush the warnings
795 * HttpContext.cs: GetGlobalObjectFromFactory caches the
796 ResourceManager objects now. Patch from Zoltan Varga
797 <vargaz@gmail.com>, thanks!
798 The GetGlobalObjectFromFactory caches are thread local to avoid
800 GetResourceObject ResourceManager cache is now a thread local
801 Dictionary to avoid cloning.
804 2008-06-27 Robert Jordan <robertj@gmx.net>
806 * HttpCachePolicy.cs: map default HttpCacheability to
807 "Cache-control: private" for MS.NET compatibility.
808 Fixes bug #404083. Contributed by
809 Hubert FONGARNAND <informatique.internet@fiducial.fr>.
811 2008-06-21 Robert Jordan <robertj@gmx.net>
813 * HttpRuntime.cs (.cctor): Workaround for bug #402263.
815 2008-06-19 Marek Habersack <mhabersack@novell.com>
817 * MimeTypes.cs: added a mime type entry for .xpi files.
819 2008-06-18 Juraj Skripsky <js@hotfeet.ch>
821 * HttpResponse.cs (AddHeadersNoCache): Add "X-AspNet-Version" header if
824 2008-06-16 Noam Lampert <noaml@mainsoft.com>
826 * HttpContext.cs: improve support for RewritePath
828 2008-06-10 Marek Habersack <mhabersack@novell.com>
830 * HttpRuntime.cs: do not create a new thread to run the
831 application, reuse the thread from the hosting application (XSP's
832 thread comes from threadpool).
834 2008-06-06 Marek Habersack <mhabersack@novell.com>
836 * SiteMap.cs: FindCurrentNode is no longer needed. CurrentNode
837 uses Provider.CurrentNode to find the return value.
838 AddNode doesn't throw a duplicate key exception for nodes not
839 belonging to the current provider.
840 Check whether keys exist before removing entries from the
843 * XmlSiteMapProvider.cs: implemented support for child providers
844 (the AddProvider method). FindSiteMapNode* methods look for the
845 node also in the collection of child providers. Fixes bug #397040
847 2008-06-04 Marek Habersack <mhabersack@novell.com>
849 * HttpResponse.cs: correctly modify virtual path to include the
850 session ID in cookieless session mode. Fixes bug #396628.
852 * HttpServerUtility.cs: remove session hash from the URL if in the
853 cookieless mode. Fixes bug #396628.
855 * HttpRequest.cs: make sure that BaseVirtualDir always returns
858 2008-06-02 Miguel de Icaza <miguel@novell.com>
860 * HttpRuntime.cs: Thanks to Christian Hergert for finding this
863 Do not throw NIEX on IsOnUNCShare, instead compute the value.
865 2008-05-30 Marek Habersack <mhabersack@novell.com>
867 * HttpApplication.cs, HttpCachePolicy.cs, SiteMapProvider.cs,
868 TraceContext.cs: do not use synthetized event accessors (to avoid
871 2008-05-19 Noam Lampert <noaml@mainsoft.com>
873 * HttpServerUtility.cs: Fix bug in UrlPathEncode when URL contains '?'
875 2008-05-12 Noam Lampert <noaml@mainsoft.com>
877 * HttpApplication.cs: Fix regressions introduced by latest commit
879 2008-05-07 Gonzalo Panigua Javier <gonzalo.mono@gmail.com>
881 * HttpApplication.cs: create a fake context while loading the
882 modules on the first request so that the modules don't mess up
883 with the actual output of that request.
885 2008-05-07 Marek Habersack <mhabersack@novell.com>
887 * HttpRequest.cs: StripPath should handle UNC paths too. Fixes bug
888 #385870. Patch from Ivan Hamilton <ivan@chimerical.com.au>,
891 2008-05-06 Marek Habersack <mhabersack@novell.com>
893 * MimeTypes.cs: mime type keys might not exist in the dictionary,
894 in the 2.0 profile. Patch from Rolf Kvinge <rkvinge@novell.com>
895 and Jean-Baptiste Evain <jbevain@novell.com>, thanks! Fixes bug
898 2008-04-30 Marek Habersack <mhabersack@novell.com>
900 * HttpApplication.cs: when the Start method is called in a new
901 thread, the thread's culture and ui culture are set to their
902 defaults, thus ignoring whatever their values were in the parent
903 thread. This is now fixed by passing an array containing the
904 culture values to the Start method, so that the new thread can be
905 properly initialized. Fixes bug #323566
907 * SiteMapNode.cs: the implicitResourceKey parameter to one of the
908 constructors sets the value of the ResourceKey property.
909 GetImplicitResourceString uses the provider's ResourceKey as the
910 global resource object key and the node's ResourceKey to construct
911 the resource name. Fixes bug #323994
912 ResourceKey setter throws an InvalidOperationException now, when
913 the node is read-only.
915 2008-04-29 Marek Habersack <mhabersack@novell.com>
917 * HttpException.cs: safe guard against context being null in
920 2008-04-26 Marek Habersack <mhabersack@novell.com>
922 * VirtualPath.cs: added a new property, PhysicalPath.
924 2008-04-25 Gert Driesen <drieseng@users.sourceforge.net>
926 * HttpResponse.cs: Use double quotes in link to match MS.
928 2008-04-25 Marek Habersack <mhabersack@novell.com>
930 * HttpApplication.cs: use Request.CurrentExecutionFilePath when
931 querying for the handler. Makes requests work if request path was
932 rewritten without modifying the FilePath. Fixes bug #383652
934 * HttpContext.cs: set Request.FilePath in RewritePath only if
935 setClientFilePath is true. Fixes bug #383652
936 Revert the change in revision 100273 - the real bug was in a
937 different overload of RewritePath, fixed with the commit for the
940 2008-04-24 Marek Habersack <mhabersack@novell.com>
942 * HttpApplication.cs: added a new overload of GetHandler which
943 allows the caller to ignore the handler found in the context
944 passed to the method.
946 * HttpServerUtility.cs: have HttpApplication.GetHandler ignore the
947 handler found in the current context when Execute'ing another
948 page. Fixes bug #316166
950 2008-04-23 Marek Habersack <mhabersack@novell.com>
952 * VirtualPath.cs: introduced the CurrentRequestDirectory property,
953 which returns the virtual directory for the current request. The
954 information is taken from either current request's
955 CurrentExecutionFilePath property (if not null) or from the path
956 set externally (by setting the property or using the appropriate
957 VirtualPath constructor). The new property is used to construct
958 the correct absolute virtual path in the MakeRooted method. Fixes
961 * HttpApplication.cs: events registered from Application_Start are
962 silently ignored - any event registered after the one-time
963 application initialization is completed, is ignored. Fixes bug
966 * HttpApplicationFactory.cs: call app.DisposeInternal instead of
969 * HttpContext.cs: Fix bug #371581 for 1.1 as well.
971 2008-04-19 Marek Habersack <mhabersack@novell.com>
973 * HttpException.cs: don't write the stack trace inside html
974 comment if custom errors are enabled.
976 2008-04-15 Kornél Pál <kornelpal@gmail.com>
978 * HttpRuntime.cs: Don't add Date header for error pages either. Fixes bug
981 2008-04-15 Marek Habersack <mhabersack@novell.com>
983 * HttpRequest.cs: dispose of streams the way it should
986 2008-04-14 Igor Zelmanovich <igorz@mainsoft.com>
988 * HttpRuntime.cs: refactoring.
990 2008-04-14 Marek Habersack <mhabersack@novell.com>
992 * XmlSiteMapProvider.cs: FindStartingNode throws an exception when
993 it is passed a file which ends in an extension other than
995 Fixed a check for the siteMapFile attribute presence. Fixes bug
998 * SiteMap.cs: FindCurrent node uses the default provider
999 exclusively. Fixes bug #379566
1001 2008-04-10 Marek Habersack <mhabersack@novell.com>
1003 * HttpApplicationFactory.cs: compile web references before
1004 App_Code. Fixes bug #377934
1006 * MimeTypes.cs: added some missing MIME types. New entries
1007 contributed by Albert Ritmeester
1008 <aritmeester@vitalhealthsoftware.nl>, thanks! Fixes bug #372290
1010 2008-04-09 Marek Habersack <mhabersack@novell.com>
1012 * HttpContext.cs: make RewritePath work correctly in the 2.0
1013 profile, fixes bug #371581
1015 * HttpApplicationFactory.cs: compile web references. Fixes bug
1018 * VirtualPath.cs: added a method to convert a physical path into a
1019 virtual one, if the physical path is under the application root.
1021 2008-04-08 Dean Brettle <dean@brettle.com>
1023 * HttpApplicationFactory.cs (CapabilitiesProcessor): changed to
1024 use etc/mono/2.0/Browser/*.browser files in addition to
1025 ~/App_Browsers/*.browser files.
1027 2008-04-07 Marek Habersack <mhabersack@novell.com>
1029 * VirtualPath.cs: added
1031 2008-04-02 Marek Habersack <mhabersack@novell.com>
1033 * HttpRequest.cs: make sure QueryStringRaw is always returned with
1034 a leading '?' and that we return something meaningful even if the
1035 url components weren't collected before. Fixes bug #376352
1037 2008-04-01 Marek Habersack <mhabersack@novell.com>
1039 * HttpApplication.cs: set context.Handler to the detected handler
1040 object before firing application events. Fixes bug #372897
1042 2008-03-31 Marek Habersack <mhabersack@novell.com>
1044 * StaticFileHandler.cs: added code to use custom
1045 VirtualPathProvider, if present, to serve files from virtual
1048 * HttpResponse.cs: added two internal TransmitFile overloads which
1049 take a VirtualFile as a parameter.
1051 2008-03-27 Marek Habersack <mhabersack@novell.com>
1053 * HttpRequest.cs: make UrlComponents internal.
1055 * HttpContext.cs: added support for resource provider factories.
1057 2008-03-13 Marek Habersack <mhabersack@novell.com>
1059 * HttpApplicationFactory.cs: use HttpApplication.BinDirs to
1060 create watchers for binary application directories.
1062 * HttpApplication.cs: use HttpRuntime.CaseInsensitive instead of
1063 own IsRunningOnWindows.
1064 Remove the BinDirectories enumerator property, replaced with a
1065 BinDirectory one returning a string with path to the binary
1068 * HttpRuntime.cs: introduce two static properties -
1069 CaseInsensitive (set to true whenever the environment is
1070 case-insensitive - i.e. MONO_IOMAP="all" or MONO_IOMAP="case", or
1071 running on Windows) and RunningOnWindows.
1073 2008-03-12 Marek Habersack <mhabersack@novell.com>
1075 * HttpApplication.cs: HttpContext.Handler may be set by a module
1076 in any of the event handlers between acquiring the initial handler
1077 and processing the request. Honor the setting and use
1078 HttpContext.Handler instead of the matched one if set.
1080 2008-03-10 Marek Habersack <mhabersack@novell.com>
1082 * HttpApplication.cs: synchronize Modules and Dispose with
1083 InitOnce. Should prevent firing module events before the modules
1084 are fully initialized.
1086 2008-03-09 Dean Brettle <dean@brettle.com>
1088 * HttpApplicationFactory.cs: Added support for detecting
1089 App_Browsers/*.browser files and using them to determine capabilities.
1090 Also restart the app if the App_Browsers, App_Code, or App_GlobalResources
1091 directories are created.
1093 * BrowserCapabilities.cs (TagWriter): get value via internal virtual
1094 GetTagWriter() method, which is overridden in nBrowser.Result.
1096 * HttpRequest.cs (BrowserMightHaveSpecialWriter, BrowserMightHaveAdapters):
1097 internal properties added to allow Page and Control methods to avoid
1098 accessing Request.Browser to get browser-specific HtmlTextWriters or
1099 ControlAdapters. Those things only exist when there are App_Browsers
1102 2008-03-09 Marek Habersack <mhabersack@novell.com>
1104 * HttpUtility.cs: HTML-decode the query string prior to parsing
1107 2008-03-01 Marek Habersack <mhabersack@novell.com>
1109 * HttpRuntime.cs: SettingsMappingManager has been moved to
1112 2008-02-28 Marek Habersack <mhabersack@novell.com>
1114 * HttpParamsCollection.cs: restore the GetValues overrides only to
1115 make sure the collections are merged before invoking the base
1117 Remove code that's no longer needed.
1119 2008-02-27 Marek Habersack <mhabersack@novell.com>
1121 * HttpException.cs: error message output format changes.
1123 2008-02-26 Kornél Pál <kornelpal@gmail.com>
1125 * HttpResponse.cs: Don't add Date header because servers usually add
1126 a Date header that would result in duplicate Date header sent to the
1127 client. Fixes bug #363404.
1129 2008-02-25 Marek Habersack <mhabersack@novell.com>
1131 * HttpException.cs: fix a buglet with unfoldable hidden divs which
1132 contain the full compiler output and the full source code.
1134 * HttpContext.cs: correctly set the timeout if the user has
1135 specified a timeout which, when converted to milliseconds yields a
1136 value larger than one allowed by Timer.Change. This can happen,
1137 for instance, when HttpServerUtility.ScriptTimeout is set to
1138 Int32.MaxValue. Previously, when something like that happened, the
1139 value was converted to 0ms, giving an instantenous timer
1140 expiration and, what follows, a request "timeout".
1142 2008-02-19 Marek Habersack <mhabersack@novell.com>
1144 * HttpParamsCollection.cs: do not override the NVC behavior for
1145 GetValues - values from different sources (Form, Query, Cookies,
1146 ServerVariables) must be kept separate for this purpose. This is
1147 also the behavior of MS.NET. Fixes bug #362189
1149 2008-02-18 Marek Habersack <mhabersack@novell.com>
1151 * HttpRuntime.cs: When app is offline, send status code 503
1152 instead of 200. Fixes bug #357565
1154 2008-02-10 Gert Driesen <drieseng@users.sourceforge.net>
1156 * HttpException.cs: Avoid IndexOutOfRangeException when there are no
1159 2008-02-07 Gert Driesen <drieseng@users.sourceforge.net>
1161 * HttpException.cs: Removed CWL.
1163 2008-02-07 Marek Habersack <mhabersack@novell.com>
1165 * HttpException.cs: more exception output compatibility changes to
1168 2008-02-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1170 * HttpContext.jvm.cs: added CurrentHandlerInternal property
1172 2008-02-07 Marek Habersack <mhabersack@novell.com>
1174 * HttpException.cs: moved several strings to constants, for easier
1176 Added 3 new constructors which let the caller to set the exception
1178 The Description property is now settable.
1179 The stack trace at the bottom of the file is written after the
1180 terminating </html>, inside a HTML comment. Format changed to
1182 Error 404 is handled in a special way, to match the output with
1185 * HttpContext.cs, StaticFileHandler.cs, HttpApplication.cs: use
1186 the new HttpException constructor for 404.
1188 2008-02-07 Vladimir Krasnov <vladimirk@mainsoft.com>
1190 * HttpResponse.cs: fixed AddHeadersNoCache, removed date_header since
1191 java app server adds it, under TARGET_J2EE.
1193 2008-02-06 Marek Habersack <mhabersack@novell.com>
1195 * HttpApplicationFactory.cs: in FireOnAppEnd, set app_type to null
1196 after the event has been fired.
1198 * HttpRuntime.cs: when switching to offline mode fire the
1199 shutdown events. Fixes bug #357565.
1200 Watch for Created event in the FileSystemWatcher for the
1201 app_offline.htm files.
1203 2008-01-29 Vladimir Krasnov <vladimirk@mainsoft.com>
1205 * HttpRequest.cs: performance optimization of QueryStringRaw
1207 2008-01-27 Igor Zelmanovich <igorz@mainsoft.com>
1209 * HttpResponse.cs: rise PreSendRequestHeaders befire headers_sent
1210 initialization to allow set additional headers or status code at
1211 PreSendRequestHeaders event handlers.
1213 2008-01-24 Marek Habersack <mhabersack@novell.com>
1215 * HttpApplicationFactory.cs: use BuildManager.GetCompiledType to
1216 build the application (global.asax) file.
1218 2008-01-22 Konstantin Triger <kostat@mainsoft.com>
1220 * HttpResponse.cs: move headers_sent initialization up to prevent additional
1221 trial to send headers if an exception is thrown.
1223 2008-01-21 Konstantin Triger <kostat@mainsoft.com>
1225 * HttpRequest.cs: Form validation: ensure the collection is accessible after
1228 2008-01-16 Juraj Skripsky <js@hotfeet.ch>
1230 * HttpRequest.cs (get_UrlReferrer): Handle case when headers contain
1231 invalid Url for referer.
1233 2008-01-16 Juraj Skripsky <js@hotfeet.ch>
1235 * HttpCookieCollection.cs (AllKeys): Use Keys.CopyTo().
1237 2008-01-14 Sebastien Pouliot <sebastien@ximian.com>
1239 * HttpCookie.cs: Fix HttpOnly setter. Found using Gendarme.
1241 2008-01-02 Vladimir Krasnov <vladimirk@mainsoft.com>
1243 * HttpContext.cs: added resource manager caching in GetResourceObject
1244 * HttpContext.jvm.cs: added resourceManagerCache storing in appdomain
1246 2007-12-31 Vladimir Krasnov <vladimirk@mainsoft.com>
1248 * HttpContext.cs: added HasError method
1249 * HttpApplication.cs: refactored thread abort handling
1251 2007-12-31 Vladimir Krasnov <vladimirk@mainsoft.com>
1253 * HttpRuntime.cs: fixed HttpRuntime, added Cache.DependencyCache
1256 2007-12-26 Igor Zelmanovich <igorz@mainsoft.com>
1260 make trace considers control state info.
1262 2007-12-25 Igor Zelmanovich <igorz@mainsoft.com>
1264 * HttpApplication.cs: initialize culture each request.
1265 makes it consider culture settings from nested web.config
1267 2007-12-19 Juraj Skripsky <js@hotfeet.ch>
1269 * HttpContext.cs, HttpApplication.cs: Move timeout tracking from
1270 TimeoutManager into HttpContext. Replace periodic timeout checks with
1271 separate per-context timeout timers.
1272 * HttpRuntime.cs: remove TimeoutManager.
1274 2007-12-18 Miguel de Icaza <miguel@novell.com>
1276 * HttpCookieCollection.cs (Get): implement using the indexer to
1277 share some code. Should fix #349564.
1279 2007-12-16 Igor Zelmanovich <igorz@mainsoft.com>
1281 * HttpContext.cs: added IsProcessingInclude property.
1282 * HttpServerUtility.cs: set IsProcessingInclude value within Execute.
1284 2007-12-13 Marek Habersack <mhabersack@novell.com>
1286 * HttpRequest.cs, HttpResponse.cs, SiteMapNode.cs, HttpRuntime.cs,
1287 HttpResponseStream.cs, HttpApplication.cs, HttpCachePolicy.cs:
1288 speed optimization - use String.Concat instead of String.Format in
1291 2007-12-13 Igor Zelmanovich <igorz@mainsoft.com>
1293 * HttpApplication.cs:
1296 * HttpServerUtility.cs:
1297 - When Transfer/Execute is called with preserveForm=true, transferred
1298 page is not processed as PostBack but form collection is preserved.
1299 - When Execute is called more than once, PreviousPage property is set
1302 2007-12-09 Vladimir Krasnov <vladimirk@mainsoft.com>
1304 * HttpApplication.cs: added TARGET_JVM to LoadType method
1306 2007-12-08 Marek Habersack <mhabersack@novell.com>
1308 * HttpRuntime.cs: initialize the Settings Mapping Manager once per
1309 application, just after initalizing the WebConfigurationManager.
1311 2007-11-28 Marek Habersack <mhabersack@novell.com>
1313 * HttpApplication.cs: peform the check of whether we're running on
1314 Windows from within a static constructor.
1316 2007-11-23 Marek Habersack <mhabersack@novell.com>
1318 * RequestNotificationStatus.cs: fix the order of enum members.
1320 * RequestNotification.cs: assign correct values to the enum
1323 * StaticSiteMapProvider.cs: change visibility of the constructor.
1325 * HttpRequest.cs: added missing property LogonUserIdentity.
1327 * HttpCacheVaryByContentEncodings.cs: this constructor should not
1330 2007-11-23 Daniel Nauck <dna@mono-project.de>
1332 * TraceContextRecord.cs: implemented
1334 2007-11-23 Marek Habersack <mhabersack@novell.com>
1336 * BrowserCapabilities.cs: the JavaScript property is obsolete in
1339 2007-11-22 Daniel Nauck <dna@mono-project.de>
1341 * IPartitionResolver.cs: implemented
1343 2007-11-22 Daniel Nauck <dna@mono-project.de>
1345 * WebPageTraceListener.cs: implemented
1347 2007-11-22 Marek Habersack <mhabersack@novell.com>
1349 * RequestNotificationStatus.cs: added
1351 * RequestNotification.cs: added
1353 * HttpCacheVaryByContentEncodings.cs: added
1355 * HttpCachePolicy.cs: added the HttpCacheVaryByContentEncodings
1358 * HttpApplication.cs: added 3 new events to the pipeline (for
1359 compatibility with the 2.0sp1/3.5 version of System.Web)
1361 2007-11-22 Daniel Nauck <dna@mono-project.de>
1363 * WebPageTraceListener.cs: initial checkin (stubs).
1365 2007-11-17 Marek Habersack <mhabersack@novell.com>
1367 * HttpResponse.cs: make sure fileDependencies is not null before
1368 attempting to use it. Fixes bug #342511.
1370 2007-11-07 Igor Zelmanovich <igorz@mainsoft.com>
1373 * TraceData.cs: implemented TraceMode feature.
1375 2007-11-07 Igor Zelmanovich <igorz@mainsoft.com>
1377 * BaseParamsCollection.cs:
1378 ensure collection will not be changed during enumeration.
1380 2007-11-06 Marek Habersack <mhabersack@novell.com>
1382 * HttpResponse.cs: trigger the PreSendRequestHeaders event before
1383 setting the output headers. Fixes bugs #334521, #339538
1385 * TraceData.cs: do not use DataTable for trace data storage
1386 anymore. Instead, a set of classes is used to hold data and a
1387 Queue container (generic version in 2.0) is used to hold the data
1388 rows. Fixes bug #325267.
1390 2007-11-05 Marek Habersack <mhabersack@novell.com>
1392 * HttpRequest.cs: cope with UriBuilder.Query being null.
1394 2007-11-03 Gert Driesen <drieseng@users.sourceforge.net>
1396 * HttpRuntime.cs: Always return a path with trailing directory
1397 separator character. Spaces to tabs.
1399 2007-11-03 Marek Habersack <mhabersack@novell.com>
1401 * HttpApplication.cs: removed unused internal PrivateBinPath
1404 * HttpRuntime.cs: BinDirectory returns a path that ends with the
1405 directory separator character.
1407 2007-11-02 Marek Habersack <mhabersack@novell.com>
1409 * HttpServerUtility.cs: in 2.0, Transfer is allowed only from
1410 pages. Fixes bug #334931
1411 Also, according to MSDN docs, transfer in 2.0+ is possible only to
1414 * HttpRuntime.cs: BinDirectory returns a full path to the actual
1415 bin directory in the application root. If no bin directory is
1416 found, it defaults to returning <applicationPath>/bin. Fixes bug
1419 * HttpApplication.cs: introduced HTTP handler cache to save time
1420 on repetitive handler collection traversals. On busy sites the
1421 traversal of the default 26 handlers may account for thousands of
1422 unnecessary calls to configsystem.LocateHandler method, which may
1423 also involve executing a regex. The cache is cleared whenever the
1424 HTTP handler collection is modified.
1426 2007-10-30 Igor Zelmanovich <igorz@mainsoft.com>
1428 * HttpUtility.cs: fixed HtmlEncode for TARGET_JVM.
1430 2007-10-30 Igor Zelmanovich <igorz@mainsoft.com>
1432 * HttpUtility.cs: fixed UrlPathEncode.
1434 2007-10-24 Gert Driesen <drieseng@users.sourceforge.net>
1436 * StaticFileHandler.cs: Modified 404 message to match MS.
1438 2007-10-24 Marek Habersack <mhabersack@novell.com>
1440 * HttpUtility.cs: MS.NET does not support the ';' query parameter
1441 separator. Fixes bug #335615
1443 2007-10-18 Juraj Skripsky <js@hotfeet.ch>
1445 * StaticSiteMapProvider.cs: Replace Hashtables by Dictionaries,
1446 don't allocate them on-demand, there will never be many
1447 Provider instances around.
1448 AddNode(): Check for duplicate keys before adding any item to
1450 RemoveNode(): Use fact that Hashtable.Remove() never throws,
1451 remove item from keyToNode as well, make symmetric to AddNode().
1452 MapUrl(): Use VirtualPathUtility, allow for full urls
1453 (e.g. http://www.google.com).
1455 2007-10-17 Marek Habersack <mhabersack@novell.com>
1457 * StaticFileHandler.cs: fixed an bug with Mono running under
1458 Windows operating systems which caused XSP to return source of the
1459 requested page if the file name used in the request ended in any
1460 number of spaces or dots. The problem lies in the way the Win32
1461 subsystem treats such file names - it ignores the trailing
1462 characters and allows the calling application to open a file on
1463 disk even when its name does not contain the trailing characters
1464 used in the open request. Such file names may be supported by the
1465 underlying filesystem (e.g. NTFS) but they are not supported by
1466 the I/O Win32 subsystem. The security issue is reported in
1467 CVE security report CVE-2007-5473. Fixes bug #332401
1469 2007-10-17 Igor Zelmanovich <igorz@mainsoft.com>
1472 response status is sent after PreSendRequestHeaders invoked.
1473 Redirect method set RedirectLocation property
1476 2007-10-15 Marek Habersack <mhabersack@novell.com>
1478 * HttpApplication.cs: do not return a non-existing bin directory
1479 from BinDirectories. Patch from Atsushi Enomoto
1480 <atsushi@ximian.com>, thanks! Fixes bug #332434.
1482 2007-10-04 Marek Habersack <mhabersack@novell.com>
1484 * HttpApplication.cs: call the Init method after loading the
1485 modules and hooking up application events. Fixes bug #330416.
1487 2007-10-01 Marek Habersack <mhabersack@novell.com>
1489 * HttpServerUtility.cs: set a flag when transferring control to
1492 * HttpContext.cs: added an internal InTransit property to carry
1493 information that HttpServerUtility.Transfer has been used, over to
1496 2007-09-12 Juraj Skripsky <js@hotfeet.ch>
1498 * StaticSiteMapProvider.cs (AddNode): Add message text to
1499 InvalidOperationException (duplicate url case).
1501 2007-09-06 Marek Habersack <mhabersack@novell.com>
1503 * HttpCachePolicy.cs: implemented setting the ETag and
1504 Last-Modified headers from file dependencies.
1506 * HttpResponse.cs: implemented file dependency methods.
1508 2007-09-01 Marek Habersack <mhabersack@novell.com>
1510 * HttpRuntime.cs: rewrote the app_offline.htm support. It now uses
1511 filesystem watchers instead of checking for existence of the
1512 file(s) at the beginning of every request. No performance penalty
1515 2007-08-31 Marek Habersack <mhabersack@novell.com>
1517 * HttpApplicationFactory.cs: added methods to enable/disable
1520 * HttpRuntime.cs: implemented handling of app_offline.htm file in
1521 the application root directory. Fixes bug #81127.
1523 * HttpResponse.cs: make sure neither context or
1524 context.ApplicationInstance are null in End ().
1526 2007-08-27 Marek Habersack <mhabersack@novell.com>
1528 * HttpCookie.cs: make sure a key is output even if it has no
1529 values set. Fixes bug #81333.
1531 2007-08-23 Marek Habersack <mhabersack@novell.com>
1533 * HttpApplication.cs: added a static array BinDirs which contains
1534 the common bin directory names we can encounter.
1535 Added internal static property IsRunningOnWindows.
1536 Added internal enumerable property BinDirectories to iterate over
1537 the full paths of the available binary directories.
1538 Added internal enumerable property BinDirectoryAssemblies to
1539 iterate over .dll files in the bin directories.
1540 LoadTypeFromPrivateBin renamed to LoadTypeFromBin.
1541 LoadTypeFromBin uses BinDirectoryAssemblies.
1543 * HttpApplicationFactory.cs: use HttpApplication.BinDirectories to
1544 interate over the list of bin dirs.
1546 2007-08-21 Marek Habersack <mhabersack@novell.com>
1548 * HttpApplicationFactory.cs: watch for changes in all the
1549 private binary directories for the current application domain.
1551 * HttpApplication.cs: turn the PrivateBinPath property into an
1552 internal enumerable, so that code throughout the assembly can
1553 iterate over the list of private bin directories configured for
1554 the application domain.
1555 Added a new internal method LoadTypeFromPrivateBin, for sharing
1556 with other parts of the assembly.
1558 2007-08-18 Juraj Skripsky <js@hotfeet.ch>
1560 * HttpRequest.cs (StripPath): Fix off-by-one error, make static.
1562 2007-08-18 Marek Habersack <mhabersack@novell.com>
1564 * HttpRequest.cs: IE sends the full input file path when uploading
1565 a file via the upload input control. Detect the situation and
1566 strip the leading path. Fixes bug #82059.
1568 * HttpServerUtility.cs: set the current context's path(s) to the
1569 Transfer/Execute target only to retrieve the new handler, and
1570 restore them immediately afterwards. It has a two-fold effect:
1571 first it avoids an extra round trip to the original page which
1572 called Transfer/Execute, second it makes FilePath etc. return
1573 information about the original page (that is the one which called
1574 Transfer/Execute). Fixes bug #82439.
1576 2007-08-14 Marek Habersack <mhabersack@novell.com>
1578 * XmlSiteMapProvider.cs: do not hide this_lock.
1580 2007-08-09 Marek Habersack <mhabersack@novell.com>
1582 * HttpApplicationFactory.cs: unconditionally watch for changes
1583 (including creation) to Global.asax, global.asax, Web.config,
1584 web.config and Web.Config. This makes the application restart once
1585 any of those is created. Patch from Juraj Skripsky
1586 <juraj@hotfeet.ch>, thanks! Fixes bug #82380.
1588 2007-08-08 Marek Habersack <mhabersack@novell.com>
1590 * StaticSiteMapProvider.cs, HttpApplicationFactory.cs,
1591 HttpStaticObjectsCollection.cs, SiteMapProvider.cs,
1592 XmlSiteMapProvider.cs, HttpApplication.cs, CapabilitiesLoader.cs,
1593 TimeoutManager.cs: do not use lock (this), replace it with lock
1594 (this_object), where this_object is an instance variable. Prevents
1595 deadlocks in situation when external code locks on the class
1598 2007-08-05 Vladimir Krasnov <vladimirk@mainsoft.com>
1600 * HttpUtility.cs: performance refactoring, optimized UrlEncode
1602 2007-08-05 Igor Zelmanovich <igorz@mainsoft.com>
1604 * SiteMapNode.cs: refactoring + typo fix:
1605 variable is declared in scope where is used.
1607 2007-07-31 Vladimir Krasnov <vladimirk@mainsoft.com>
1609 * VirtualPathUtility.cs: refactored GetDirectory, ToAbsolute, added
1610 internal api to skip path normalizing
1612 2007-07-30 Vladimir Krasnov <vladimirk@mainsoft.com>
1614 * HttpResponseStream.jvm.cs: optimized CharBucket
1616 2007-07-22 Vladimir Krasnov <vladimirk@mainsoft.com>
1618 * HttpServerUtility.cs: fixed Execute, SetCurrentExePath should be
1619 called after ApplicationInstance.GetHandler call in case of GetHandler
1620 fails for some reason
1622 2007-07-21 Marek Habersack <mhabersack@novell.com>
1624 * HttpRuntime.cs: clean up the dynamic base directory on domain
1627 2007-07-10 Vladimir Krasnov <vladimirk@mainsoft.com>
1629 * HttpUtility.cs: optimized HtmlEncode and HtmlAttributeEncode methods
1631 2007-07-05 Miguel de Icaza <miguel@novell.com>
1633 * HttpApplication.cs (AsyncRequestState.Complete): Add the
1634 try/catch for the callback here to ensure that we only call
1635 complete_event.Set once.
1637 (PipelineDone): This is where the core of the bug fix is: do not
1638 call Complete() or call done.Set() (depending on the invocation
1639 case) until we are actually done cleaning up the request.
1641 The problem was that we signaled that we were done, but we had not
1642 completed the shut down, so another thread could have been
1643 scheduled on the same HttpApplication and had its variables be
1644 modified as we completed the shutdown on the first thread.
1646 This fixes #81400 which was a very long standing bug.
1648 (Tick): Remove the pipeline check against null, this is not
1649 necessary and it will help us find problems like this one in the
1652 Reverts patch r66072 which was a described as:
1654 band-aid patch to help debugging hang running 2.0
1657 2007-07-02 Marek Habersack <mhabersack@novell.com>
1659 * CapabilitiesLoader.cs: provide default capability values for all
1660 the 2.0+ capabilities which are not defined in our
1661 browscap.ini. The default values have been assigned as per
1662 MSDN. Fixes bug #81927
1664 2007-06-28 Vladimir Krasnov <vladimirk@mainsoft.com>
1666 * HttpResponse.cs: fixed AddHeadersNoCache, removed content-length
1667 header for TARGET_JVM
1668 * HttpWorkerRequest.cs: made this class partial, moved TARGET_JVM stuff
1670 * HttpWriter.cs: fixed write methods, output_stream can write char[]
1671 and string in TARGET_JVM
1672 added HttpWorkerRequest.jvm.cs, HttpResponseStream.jvm.cs
1674 2007-06-25 Juraj Skripsky <js@hotfeet.ch>
1676 * HttpRuntime.cs (ShutdownAppDomain): Re-introduce call to
1677 "Cache.InvokePrivateCallbacks".
1679 2007-06-24 Vladimir Krasnov <vladimirk@mainsoft.com>
1681 * HttpUtility.cs: fixed HtmlAttributeEncode, performance improvement
1683 2007-06-20 Marek Habersack <mhabersack@novell.com>
1685 * HttpRuntime.cs: added new internal property, InternalCache, to
1686 keep all the internal cache entries instead of mixing them with
1687 the public cache ones.
1688 Do not invoke Cache.InvokePrivateCallbacks - this method no longer
1691 * HttpResponse.cs: private entries are now kept in
1692 Context.InternalCache.
1694 * HttpContext.cs: added new internal property, InternalCache,
1695 which returns the HttpRuntime.InternalCache value.
1697 * HttpApplication.cs: check all the loaded assemblies for the type
1698 being looked up. Patch from Juraj Skripsky <juraj@hotfeet.ch>,
1699 thanks! Fixes bug #81697.
1701 2007-06-18 Igor Zelmanovich <igorz@mainsoft.com>
1703 * HttpUtility.cs: refactoring:
1704 removed constants to another class.
1706 2007-06-18 Igor Zelmanovich <igorz@mainsoft.com>
1708 * AssemblyResourceLoader.cs: refactoring:
1709 make the code reusable in System.Web.Extenssions.
1711 2007-05-31 Marek Habersack <mhabersack@novell.com>
1713 * SiteMapProvider.cs: implemented proper logic of authorizing
1714 user's access to a sitemap node, as per MSDN2 docs. Patch from
1715 Dumitru Ban <dban@dako.ro>, thanks!
1717 2007-05-30 Marek Habersack <mhabersack@novell.com>
1719 * TraceManager.cs: Catch all the possible exceptions in the
1720 constructor - the object MUST be created successfully (even if
1723 * HttpRequest.cs: do not attempt to apply url mappings if the
1724 configuration manager has errors.
1726 * HttpRuntime.cs: handle static constructor exceptions later on,
1727 during the first call to ReallyProcessRequest.
1729 * QueueManager.cs: provide defaults for the parameters to be read
1730 from the config file(s).
1731 Catch all the possible exceptions in the constructor - the object
1732 MUST be created successfully (even if there are errors).
1734 2007-05-29 Marek Habersack <mhabersack@novell.com>
1736 * SiteMapProvider.cs: updated the node accessibility comments.
1737 If Roles not null and user is not in at least one of the
1738 specified roles, return false.
1739 If there Url is null or empty, return false.
1741 2007-05-28 Marek Habersack <mhabersack@novell.com>
1743 * HttpRequest.cs: since Path is used from within
1744 WebConfigurationManager, under some conditions it may lead to
1745 endless recursion if the UrlComponents is not instantiated when
1748 2007-05-21 Vladimir Krasnov <vladimirk@mainsoft.com>
1750 * HttpContext.cs: added ProfileInitialized boolean property
1752 2007-05-16 Vladimir Krasnov <vladimirk@mainsoft.com>
1754 * VirtualPathUtility.cs: Normalize method check more carefully if need
1755 to normalize, performance fix
1757 2007-05-16 Konstantin Triger <kostat@mainsoft.com>
1759 * HttpContext.cs: correctly check for request locality.
1761 2007-05-15 Marek Habersack <mhabersack@novell.com>
1763 * HttpApplication.cs: refactoring - moved LoadType from
1764 WebConfigurationHost here and made it internal static, in order to
1765 make the code avaliable from all the places where extended type
1766 loading is required.
1768 2007-05-14 Marek Habersack <mhabersack@novell.com>
1770 * HttpUtility.cs: when parsing query strings, skip the leading ?
1771 for the first parameter name.
1773 * HttpRequest.cs: added support for mapping urls, as defined in
1774 the system.web/urlMappings section.
1776 2007-05-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1778 * HttpWriter.cs: GetMaxByteCount was used in Write and WriteString
1779 methods to improve performance of HttpWriter
1781 2007-05-14 Igor Zelmanovich <igorz@mainsoft.com>
1783 * HttpApplication.cs:
1784 prevent DOS attack: remove configuration from the cache in case
1785 of invalid resource not exists
1787 2007-05-14 Vladimir Krasnov <vladimirk@mainsoft.com>
1789 * TraceContext.cs: refactoring, cached TraceManager
1791 2007-05-03 Igor Zelmanovich <igorz@mainsoft.com>
1793 * HttpApplication.cs:
1795 handling exceptions occurred if <system.web/customError>
1796 section is not valid.
1798 2007-05-08 Vladimir Krasnov <vladimirk@mainsoft.com>
1800 * BaseParamsCollection.cs: fixed Get(string) property, fixed collection
1803 2007-05-07 Marek Habersack <mhabersack@novell.com>
1805 * HttpResponseStream.cs: use BufferOutput
1807 * HttpResponse.cs: support Buffer, but use BufferOutput
1809 2007-05-03 Igor Zelmanovich <igorz@mainsoft.com>
1811 * BrowserCapabilities.cs:
1814 2007-04-30 Igor Zelmanovich <igorz@mainsoft.com>
1816 * HttpApplication.cs: reverted r74717.
1818 2007-04-29 Igor Zelmanovich <igorz@mainsoft.com>
1820 * HttpContext.jvm.cs: Response.End() must abort thread if not async.
1822 2007-04-29 Igor Zelmanovich <igorz@mainsoft.com>
1824 * HttpApplication.cs: doesn't cache httpHandlersSection in instance,
1825 that allows to consider httpHandlers section in nested web.config.
1827 2007-04-27 Marek Habersack <mhabersack@novell.com>
1829 * XmlSiteMapProvider.cs: add support for siteMapFile attribute.
1831 2007-04-24 Marek Habersack <mhabersack@novell.com>
1833 * CapabilitiesLoader.cs: Hashtables used as property containers
1834 should not be case-insensitive as we now preload the property
1835 hashes with default properties, to make the code work in case
1836 browscap.ini is broken or missing. Instead, the keys are
1837 lower-cased and trimmed before indexing the Hashtable.
1838 Added all the missing capabilities to the defaultCaps Hashtable.
1839 The returned Hashtable is not reversed in GetCapabilities anymore
1840 - it might make the code faster, but it also makes it mismatch
1841 browsers (e.g. Firefox 2.0 is mismatched for Mozilla 1.8).
1842 All of the above fixes bug #81437.
1844 * HttpRequest.cs: MS.NET throws HttpException for invalid paths,
1845 not ArgumentNullException.
1847 * HttpException.cs: wrap GetHtmlErrorMessage internals in
1848 try/catch to capture possible exceptions in HttpContext.
1850 * HttpContext.cs: IsCustomErrorEnabled is used from within
1851 HttpException, make sure it gets the section in a safe way and
1852 resorts to the default settings.
1854 * HttpResponse.cs: HeaderEncoding is used in the same context as
1855 above. Take the same precautions.
1857 2007-04-22 Joshua Tauberer <jit@occams.info>
1859 * HttpParamsCollection.cs: Fix IndexOutOfRangeException.
1861 2007-04-19 Miguel de Icaza <miguel@novell.com>
1863 * BaseParamsCollection.cs (Get (string)): Call LoadInfo here to
1866 2007-04-17 Igor Zelmanovich <igorz@mainsoft.com>
1868 * HttpException.cs: used GetBaseException() instead InnerException.
1870 2007-04-17 Igor Zelmanovich <igorz@mainsoft.com>
1872 * HttpException.cs: shows message of InnerException in head of Page.
1874 2007-04-17 Igor Zelmanovich <igorz@mainsoft.com>
1876 * HttpException.cs: fixed generated HTML formating.
1878 2007-04-17 Igor Zelmanovich <igorz@mainsoft.com>
1880 * HttpContext.cs: GetGlobalResourceObject, GetLocalResourceObject
1881 use case-insensitive ResourceManager
1883 2007-04-15 Marek Habersack <mhabersack@novell.com>
1885 * VirtualPathUtility.cs: converted to LF line endings and set the
1886 svn:eol-style property to 'native'
1888 2007-04-13 Marek Habersack <mhabersack@novell.com>
1890 * SiteMap.cs: try to look up the current map node in providers
1891 other than the current one. Patch from Mike Morano
1892 <mmorano@mikeandwan.us>. Fixes bug #81366.
1894 2007-04-12 Vladimir Krasnov <vladimirk@mainsoft.com>
1896 * HttpRequest.cs: fixed Params property to be lazy initialzation
1898 * added HttpParamsCollection.cs
1900 2007-04-11 Konstantin Triger <kostat@mainsoft.com>
1902 * HttpRequest.cs: IsLocal should return true for loopback addresses.
1904 2007-04-10 Marek Habersack <mhabersack@novell.com>
1906 * HttpCookie.cs: format the output of HttpCookie.Values.ToString()
1907 in the same way MS.NET does. Fixes bug #81333. Patch from Mike
1908 Morano <mmorano@mikeandwan.us>.
1910 * XmlSiteMapProvider.cs: add the NotifyFilters.Size to the
1911 watcher flags, so that we watch for modifications to a file when
1912 using Linux inotify.
1914 * HttpApplicationFactory.cs: add the NotifyFilters.Size to the
1915 watcher flags, so that we watch for modifications to a file when
1916 using Linux inotify.
1917 App_Code, App_Browsers and App_GlobalResources watchers must watch
1918 for events with the '*' mask so that they can notice events
1919 related to subdirectory creation/deletion.
1920 Watch for subdirectory events with the App_Code watcher.
1922 2007-04-07 Marek Habersack <mhabersack@novell.com>
1924 * HttpException.cs: show a default custom error message if custom
1926 Cleaned up the errors HTML, made it XHTML-compliant. Generated
1927 HTML now uses inline CSS styles.
1929 2007-04-06 Marek Habersack <mhabersack@novell.com>
1931 * HttpUtility.cs: added a constant that contains the default query
1932 parameter character.
1933 ParseQueryString supports queries with both '&' and ';' parameter
1936 2007-04-05 Marek Habersack <mhabersack@novell.com>
1938 * CapabilitiesLoader.cs: Make sure that the capability names
1939 (keys) are stored in lowercase.
1941 2007-04-05 Igor Zelmanovich <igorz@mainsoft.com>
1943 * XmlSiteMapProvider.cs:
1944 custom attributes of siteMapNode are loaded properly.
1946 2007-04-05 Marek Habersack <mhabersack@novell.com>
1948 * CapabilitiesLoader.cs: add a full default set of capabilities
1949 for cases when browscap.ini is broken, missing or doesn't contain
1950 definition for the client's User-Agent. Makes it possible to surf
1951 asp.net sites from unsupported clients.
1953 2007-04-04 Juraj Skripsky <js@hotfeet.ch>
1955 * HttpApplicationFactory.cs: Make sure an web application is
1956 shutdown only once (and Application_End in global.asax is called
1957 only once as well). This is necessary because FileSystemWatcher
1958 emits multiple events when e.g. global.asax is changed.
1960 2007-04-01 Vladimir Krasnov <vladimirk@mainsoft.com>
1962 * HttpRequest.cs: fixed Headers property to use optimized
1964 * WebROCollection.cs: used StringComparer.OrdinalIgnoreCase for
1966 * ServerVariablesCollection.cs: used lazy collection fill optimization
1967 * added: HeadersCollection.cs, BaseParamsCollection.cs
1969 2007-04-01 Konstantin Triger <kostat@mainsoft.com>
1972 GetLocalResourceObject - should not prefix resources with 'Resources.'.
1974 2007-04-01 Konstantin Triger <kostat@mainsoft.com>
1976 * BrowserCapabilities.cs: Default Browser (userAgent) property to 'Unknown'.
1978 2007-03-29 Vladimir Krasnov <vladimirk@mainsoft.com>
1980 * HttpContext.cs: timeout methods removed from TARGET_J2EE compilation
1981 * HttpContext.jvm.cs: added stubs for timeout methods
1983 2007-03-28 Igor Zelmanovich <igorz@mainsoft.com>
1985 * StaticSiteMapProvider.cs:
1986 GetChildNodes does not return null but SiteMapNodeCollection.EmptyCollection.
1988 2007-03-28 Konstantin Triger <kostat@mainsoft.com>
1990 * BrowserCapabilities.cs:
1992 2. Break recoursion in case 'browser' capability is not found.
1994 2007-03-28 Igor Zelmanovich <igorz@mainsoft.com>
1996 * SiteMapNode.cs: fixed GetAllNodes method.
1998 2007-03-27 Igor Zelmanovich <igorz@mainsoft.com>
2000 * XmlSiteMapProvider.cs: fixed:
2001 resolve app-relative path from config such siteMapFile="~/Web.sitemap".
2003 2007-03-27 Igor Zelmanovich <igorz@mainsoft.com>
2006 * XmlSiteMapProvider.cs: fixed: Localize Site-Map Data.
2008 2007-03-26 Konstantin Triger <kostat@mainsoft.com>
2010 * HttpRequest.cs: correctly handle null and empty virtual pathes in MapPath.
2012 2007-03-25 Vladimir Krasnov <vladimirk@mainsoft.com>
2014 * HttpContext.cs: AppGlobalResourcesAssembly static member stored in
2015 AppDomain for TARGET_JVM
2017 2007-03-24 Marek Habersack <mhabersack@novell.com>
2019 * HttpRuntime.cs: use ICalls.GetMachineConfigPath instead of
2020 opening the machine.config file and getting its path.
2022 * CapabilitiesLoader.cs: use HttpRuntime.MachineConfigurationDirectory
2023 instead of opening the machine config file and getting its path.
2025 2007-03-23 Konstantin Triger <kostat@mainsoft.com>
2027 * HttpApplication.cs: complete the pipeline in case of exception during
2028 InitOnce() to avoid a deadlock.
2030 2007-03-22 Adar Wesley <adarw@mainsoft.com>
2032 * BrowserCapabilities.cs: Added implementation for all capabilities.
2033 changed implementation to throw when capability is not defined in browscaps.ini.
2035 * CapabilitiesLoader.cs: fixed parent resultion bug. added internal support for
2036 browser and browsers capabilities.
2038 2007-03-21 Vladimir Krasnov <vladimirk@mainsoft.com>
2040 * HttpContext.jvm.cs, HttpRuntime.cs: cached instance of HttpRuntime
2041 in context in addition to AppDomain
2043 2007-03-21 Vladimir Krasnov <vladimirk@mainsoft.com>
2045 * HttpCookie.cs, HttpCookieCollection.cs: used OrdinalIgnoreCase
2046 StringComparer for cookies and values collections
2048 2007-03-21 Vladimir Krasnov <vladimirk@mainsoft.com>
2050 * HttpApplication.cs: refactred handlers configuration section as
2053 2007-03-20 Marek Habersack <mhabersack@novell.com>
2055 * HttpRequest.cs: implement AppRelativeCurrentExecutionFilePath.
2057 2007-03-18 Igor Zelmanovich <igorz@mainsoft.com>
2059 * VirtualPathUtility.cs: fixed GetFileName(), GetExtension() methods.
2061 2007-03-18 Igor Zelmanovich <igorz@mainsoft.com>
2063 * VirtualPathUtility.cs: fixed GetDirectory() method.
2065 2007-03-15 Marek Habersack <mhabersack@novell.com>
2067 * XmlSiteMapProvider.cs: handle cases with no default for the
2070 2007-03-15 Igor Zelmanovich <igorz@mainsoft.com>
2072 * HttpRequest.cs: fixed MapPath () method.
2074 2007-03-15 Igor Zelmanovich <igorz@mainsoft.com>
2076 * VirtualPathUtility.cs: fixed ToAbsolute() method.
2078 2007-03-15 Igor Zelmanovich <igorz@mainsoft.com>
2080 * VirtualPathUtility.cs: refactoring: class is shared with 1.x.
2082 2007-03-15 Marek Habersack <mhabersack@novell.com>
2084 * XmlSiteMapProvider.cs: add support for the enableLocalization
2085 <siteMap> attribute and handle per-node localization resource
2086 strings for explicit localization as well as the resourceKey
2087 attribute to <siteMapNode> for implicit localization (closes bug
2090 * SiteMapNode.cs: add support for the resource keys and foreign
2092 Implement GetImplicitResourceString.
2093 Add support for translation of the Title and Description
2094 attributes (closes bug #81103) as well as foreign attributes.
2096 2007-03-15 Igor Zelmanovich <igorz@mainsoft.com>
2098 * VirtualPathUtility.cs: fixed: works properly with appRelative path.
2100 2007-03-13 Marek Habersack <mhabersack@novell.com>
2102 * HttpApplicationFactory.cs: resources compiler no longer accepts
2103 a boolean parameter.
2105 * HttpRuntime.cs: Do not compile local resources here anymore.
2107 * HttpContext.cs: if App_LocalResources assembly corresponding to
2108 the virtual path is not found, compile it here.
2109 Look up resources in the "Resources." class path.
2111 2007-03-13 Igor Zelmanovich <igorz@mainsoft.com>
2113 * HttpUtility.cs: fixed HttpUtillity.HtmlAttributeEncode
2114 '<' char must be encoded.
2116 2007-03-12 Vladimir Krasnov <vladimirk@mainsoft.com>
2118 * CapabilitiesLoader.cs: added TARGET_JVM part of static members,
2119 added caching to GetCapabilities method for performance improvement
2121 2007-03-12 Marek Habersack <mhabersack@novell.com>
2123 * XmlSiteMapProvider.cs: support custom site map providers. Fixes
2126 2007-03-06 Vladimir Krasnov <vladimirk@mainsoft.com>
2128 * StaticFileHandler.cs: fixed ProcessRequest TARGET_JVM path,
2129 if_modified_since fixed in WAR mode
2131 2007-02-25 Vladimir Krasnov <vladimirk@mainsoft.com>
2133 * HttpRequest.jvm.cs: fixed LoadWwwForm, should distinguish between
2134 query string and form values
2136 2007-02-21 Marek Habersack <grendello@gmail.com>
2138 * HttpRuntime.cs: BinDirectory returns the bin directory
2139 determined by the application host on the application startup.
2141 * HttpApplicationFactory.cs: Watch the bin directory determined by
2142 the application host on the application startup.
2144 2007-02-20 Vladimir Krasnov <vladimirk@mainsoft.com>
2146 * HttpRequest.cs: fixed MapPath, removed TARGET_J2EE block that checks
2149 2007-02-19 Marek Habersack <grendello@gmail.com>
2151 * HttpContext.cs: Make sure all the global resource objects are
2152 sought in the Resources. namespace.
2154 2007-02-18 Eyal Alaluf <eyala@mainsoft.com>
2156 * HttpContext.jvm.cs, HttpRequest.jvm.cs: Adapt for tunning under test
2157 harness where we don't have a SevletRequest/Response.
2159 2007-02-13 Vladimir Krasnov <vladimirk@mainsoft.com>
2161 * HttpApplication.cs: fixed InitOnce, httpModules section is global and
2162 taken from the root web.config
2164 2007-02-12 Robert Jordan <robertj@gmx.net>
2166 * HttpResponseStream.cs (BlockManager.EnsureCapacity):
2167 don't call Marshal.ReAllocHGlobal on NULL because, unlike
2168 realloc(3) and g_realloc, it doesn't support this semantic.
2169 Fixes a part of bug #77075.
2171 2007-02-12 Marek Habersack <grendello@gmail.com>
2173 * HttpRuntime.cs: support for preservation (.compiled) assembly
2176 2007-02-11 Vladimir Krasnov <vladimirk@mainsoft.com>
2178 * HttpApplication.cs: added exception pass through from processAction
2181 2007-02-02 Marek Habersack <grendello@gmail.com>
2183 * HttpApplicationFactory.cs: make code a bit more compact.
2185 2007-01-30 Vladimir Krasnov <vladimirk@mainsoft.com>
2187 * HttpResponse.cs: fixed TARGET_J2EE part of Redirect for portlet
2189 2007-01-30 Adar Wesley <adarw@mainsoft.com>
2191 * VirtualPathUtility.cs: fixed exceptions thrown from Combine
2192 so they are compatible with MS.
2194 2007-01-25 Marek Habersack <grendello@gmail.com>
2196 * HttpApplication.cs: Make sure that a specific culture is used
2197 when setting the current thread culture.
2199 2007-01-21 Gonzalo Paniagua Javier <gonzalo.mono@gmail.com>
2201 * HttpServerUtility.cs: implement Execute/Transfer overloads that take
2202 an IHttpHandler. Still missing the documented check for page IsCallback.
2203 Also, on MS when i derive from Page for my IHttpHandler, it works fine,
2204 but if I just implement IHttpHandler, an exception is thrown. This needs
2205 to be researched but, by now, the IHttpHandler version works on mono
2208 2007-01-20 Miguel de Icaza <miguel@novell.com>
2210 * SiteMapNode.cs (GetExplicitResourceString): implement.
2212 * HttpContext.cs (GetGlobalResourceObject): remove unused variable.
2214 * StaticFileHandler.cs (ProcessRequest): remove unused variable.
2216 * HttpApplication.cs (ProcessError): Remove unused variable.
2218 * HttpServerUtility.cs (Execute): Add new overload and rename
2219 parameter to match MS (as they are normative).
2221 2007-01-17 Marek Habersack <grendello@gmail.com>
2223 * HttpApplicationFactory.cs: Implement code and framework to
2224 enable automatic application restarts on changes to folders/files
2225 in a generic way. Patch from Damien Churchill
2226 <damien.churchill@ukplc.net>, thanks!
2227 Make sure the top-level assemblies (App_Code, resources) are not
2228 referenced twice should a compilation error occur.
2230 2007-01-16 Atsushi Enomoto <atsushi@ximian.com>
2232 * TraceData.cs : page could be null. Fixed bug #80480.
2234 2007-01-15 Ilya Kharmatsky <ilya -at- decode-systems.com>
2236 * VirtualPathUtility.cs: fixed bugs in methods - GetDirectory and
2237 GetExtension, according to the VirtualPathUtilityTest
2239 2007-01-15 Vladimir Krasnov <vladimirk@mainsoft.com>
2241 * SiteMapProvider.cs: fixed IsAccessibleToUser, true if
2242 SecurityTrimmingEnabled not enabled, true if Roles exists on node and
2245 2007-01-14 Eyal Alaluf <eyala@mainsoft.com>
2247 * HttpRequest.jvm.cs, HttpContext.jvm.cs: Added TARGET_J2EE specific files.
2248 * HttpContext.cs, HttpResponse.cs, HttpRequest.cs, HttpCookie.cs:
2249 Add J2EE Portal support for TARGET_J2EE.
2251 2007-01-04 Vladimir Krasnov <vladimirk@mainsoft.com>
2253 * HttpRequest.cs: fixed IsLocal, should check all ip addresses of host
2255 2007-01-05 Marek Habersack <grendello@gmail.com>
2257 * HttpApplicationFactory.cs: Use the new app resources compiler.
2259 * HttpRuntime.cs: Use the new app resources compiler.
2261 * HttpContext.cs: Reimplement the GetGlobalResourceObject
2262 methods, implement the GetLocalResourceObject methods.
2264 * HttpResponse.cs: Implement the HeaderEncoding property.
2266 2007-01-04 Andreia Gaita <avidigal@novell.com>
2268 * HttpRuntime.cs: Add check for NET_2_0 when initializing
2269 WebConfigurationManager, build failing on 1.1 profile
2271 2007-01-04 Vladimir Krasnov <vladimirk@mainsoft.com>
2273 * HttpApplicationFactory.cs, HttpRuntime.cs: WebConfigurationManager
2274 should be initializaed before any possible access to it
2276 2007-01-04 Vladimir Krasnov <vladimirk@mainsoft.com>
2278 * HttpRequest.cs: fixed Path property, add call of
2279 Uri.UnescapeDataString in net_2_0
2281 2007-01-04 Vladimir Krasnov <vladimirk@mainsoft.com>
2283 * HttpApplication.cs: fixed PreStart, should not set thread culture
2286 2007-01-03 Vladimir Krasnov <vladimirk@mainsoft.com>
2288 * HttpRequest.cs: fixed jvm version of MakeInputStream, should not
2289 throw exception on zero content length
2291 2007-01-03 Vladimir Krasnov <vladimirk@mainsoft.com>
2293 * SiteMap.cs, SiteMapNodeCollection.cs: TARGET_JVM of static members
2295 2006-12-20 Marek Habersack <grendello@gmail.com>
2297 * HttpContext.cs: add internal setter for the Profile property.
2299 * HttpApplicationFactory.cs: Added a shortcut version of
2300 InvokeSessionEnd for use from the 2.0 SessionState code.
2302 2006-12-18 Vladimir Krasnov <vladimirk@mainsoft.com>
2304 * HttpRequest.cs: fixed Path property, returns unescaped url
2306 2006-12-16 Marek Habersack <grendello@gmail.com>
2308 * HttpRequest.cs: Fix for http exception during first visit to an
2309 application when the visit path is not the app's virtual root.
2311 2006-12-12 Igor Zelmanovich <igorz@mainsoft.com>
2313 * SiteMapProvider.cs.cs:
2314 * XmlSiteMapProvider.cs: fixed: because more then one node with empty url
2315 is allowed unique key is generated for each node.
2317 2006-12-12 Igor Zelmanovich <igorz@mainsoft.com>
2319 * SiteMapProvider.cs.cs: fixed: IsAccessibleToUser resolvs relative url.
2320 * StaticSiteMapProvider.cs: fixed: RemoveNode
2322 2006-12-12 Igor Zelmanovich <igorz@mainsoft.com>
2324 * VirtualPathUtility.cs: fixed: Combine(), ToAbsolute() methods.
2326 2006-12-12 Igor Zelmanovich <igorz@mainsoft.com>
2328 * VirtualPathUtility.cs: fixed: IsAppRelative() method.
2330 2006-12-07 Vladimir Krasnov <vladimirk@mainsoft.com>
2332 * BrowserCapabilities.cs: fixed MSDomVersion property
2334 2006-12-05 Igor Zelmanovich <igorz@mainsoft.com>
2336 * VirtualPathUtility.cs: fixed: ToAbsolute() method.
2338 2006-12-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2340 * HttpRequest.cs: call MapPath on the HttpWorkerRequest so that if
2341 FilePath is changed we get the new physical path, not the one of the
2342 original request. Fixes bug #80152.
2344 2006-12-03 Igor Zelmanovich <igorz@mainsoft.com>
2346 * HttpWriter.cs: reverted r38835.
2348 2006-12-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2350 * HttpWriter.cs: remove unused WriteBytes method.
2352 2006-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2354 * HttpRequest.cs: physical path comes from GetFilePathTranslated to
2355 avoid trimming in HttpRequest.MapPath.
2357 2006-11-29 Marek Habersack <grendello@gmail.com>
2359 * HttpApplication.cs: Make use of the handler stack implemented
2362 * HttpCacheVaryByHeaders.cs: Optionally omit the vary:* header
2363 value in the 2.0 profile.
2365 * HttpServerUtility.cs: Make use of the handler stack implemented
2367 Implemented the UrlToken{Encode,Decode} 2.0 methods.
2369 * HttpResponse.cs: Implemented the IsRequestBeingRedirected
2372 * HttpContext.cs: Implemented the CurrentHandler and PreviousHandler
2373 methods, together with helper functions to handle the handler
2375 GetSection(string) should be present only in the 2.0 profile.
2377 * HttpCachePolicy.cs: implement the SetNoServerCaching,
2378 SetNoStore, SetNoTransforms, SetValidUntilExpires and
2379 SetOmitVaryStar methods.
2380 Added code to set the no-store and no-transform options of the
2381 Cache-Control header.
2383 2006-11-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2385 * HttpServerUtility.cs: don't prepend extra '?' when the original url
2386 already has a query string. Fixes bug #80042.
2388 2006-11-24 Miguel de Icaza <miguel@novell.com>
2390 * HttpApplicationFactory.cs (InitType): Also look for "Web.Config"
2393 2006-11-20 Marek Habersack <grendello@gmail.com>
2395 * HttpApplication.cs: Added support for automatic detection of
2396 user's preferred language.
2398 2006-11-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2400 * HttpApplication.cs: don't leak the directory name for non-local
2403 2006-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2405 * CapabilitiesLoader.cs: made the hasstable that contains the properties
2406 for the brower case insensitive. Fixes bug #79795.
2408 2006-11-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2410 * HttpResponse.cs: fix typo that prevented Server.Execute from restoring
2411 the initial output stream used. Closes bug #79916.
2413 2006-11-12 Marek Habersack <grendello@gmail.com>
2415 * HttpContext.cs: Implemented the 2.0 RewritePath overloads.
2417 2006-11-08 Marek Habersack <grendello@gmail.com>
2419 * HttpRuntime.cs: Moved the resource compiler results handling to
2420 the resource compiler itself.
2422 * HttpApplicationFactory.cs: Add invocation of the App_Code
2423 compiler. Moved the resource compiler results handling to the
2424 resource compiler itself. Removed compilation of the local
2425 resources from here - it should be done only when a request
2426 determines that the App_LocalResources directory exists.
2429 2006-11-07 Andrew Skiba <andrews@mainsoft.com>
2431 * HttpRuntime.cs: TARGET_JVM ifdef
2433 2006-11-05 Andrew Skiba <andrews@mainsoft.com>
2435 * SiteMapProvider.cs: don't iterate through Roles when they are null.
2437 2006-11-05 Vladimir Krasnov <vladimirk@mainsoft.com>
2439 * HttpContext.cs: implemented Profile property
2441 2006-11-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2443 * HttpApplication.cs: the unexpected 'tick' exceptions can be an abort
2444 exception due to timeout or end of the request.
2446 2006-10-18 Marek Habersack <grendello@gmail.com>
2448 * HttpRuntime.cs: add support for compilation of local resources
2449 at the start of request.
2451 * HttpContext.cs: implement the GetGlobalResourceObject APIs
2453 * HttpApplicationFactory.cs: include the bootstrap code for the
2454 global/local resources compiler.
2456 2006-10-09 Marek Habersack <grendello@gmail.com>
2458 * HttpApplication.cs: change the pipeline order for ASP.NET 2.0 to
2459 comply with the Microsoft documentation.
2461 2006-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2463 * HttpApplication.cs: this makes the test run successfully. Still need
2464 to figure out why that is null.
2466 2006-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2468 * HttpApplication.cs: band-aid patch to help debugging hang running 2.0
2471 2006-09-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2473 * HttpServerUtility.cs: 1.1 Execute(s) preserves the query string.
2474 Thanks to Hubert Fongarnand. Fixes bug #79506.
2476 2006-09-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2478 * QueueManager.cs: if disposed, always return null for next request.
2479 * HttpRuntime.cs: dispose the queue manager when shutting down the
2480 domain. This will close pending requests with a 503.
2481 * HttpApplication.cs: release the handler before marking the request
2482 as completed. If in PipelineDone context is null, use
2483 HttpContext.Current. Fixes some of those "Tick detected an unhandled
2484 exception" errors printed out.
2486 2006-09-11 Andrew Skiba <andrews@mainsoft.com>
2488 * XmlSiteMapProvider.cs: ifdef TARGET_JVM
2490 2006-09-11 Vladimir Krasnov <vladimirk@mainsoft.com>
2492 * HttpWriter.cs: fixed WriteLine to work correctly in utf-16 encoding
2494 2006-09-08 Robert Jordan <robertj@gmx.net>
2496 * TraceData.cs: fixed NRE if `sizes' is null, which may happen
2497 if a page was unable to save its viewstate and size.
2499 2006-09-07 Andrew Skiba <andrews@mainsoft.com>
2501 * HttpApplicationFactory.cs: ifdef the previous fix with TARGET_JVM to
2504 2006-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2506 * HttpApplicationFactory.cs: watch web.config too. Fixes bug #78356.
2508 2006-09-05 Konstantin Triger <kostat@mainsoft.com>
2510 * SiteMapProvider.cs: consider authorization section for access decision.
2512 2006-09-04 Igor Zelmanovich <igorz@mainsoft.com>
2514 * HttpUtility.cs: fixed UrlPathEncode method.
2516 2006-08-31 Boris Kirzner <borisk@mainsoft.com>
2518 * VirtualPathUtility.cs : pass parameters in correct order.
2520 2006-08-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2522 * HttpApplicationFactory.cs: handle the 'renamed' event too.
2524 2006-08-08 Vladimir Krasnov <vladimirk@mainsoft.com>
2526 * HttpApplication.cs: fixed BeginProcessRequest, TARGET_JVM part
2529 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2531 * HttpApplication.cs: don't leak local path names when a file is not
2534 2006-06-21 Konstantin Triger <kostat@mainsoft.com>
2536 * XmlSiteMapProvider.cs: if the url is relative, make it relative to the
2539 2006-06-07 Juraj Skripsky <js@hotfeet.ch>
2541 * HttpException.cs (GetHtmlizedErrorMessage): Beautify compilation error
2542 page by showing multiple errors on separate lines.
2544 2006-06-05 Juraj Skripsky <js@hotfeet.ch>
2546 * HttpRequest.cs: simplify code around uri_builder (and rename
2547 to url_components). Move storage of query_string into
2548 uri_builder.Query and initialize it lazily using
2549 worker_request.GetQueryStringRawBytes() or GetQueryString().
2550 (QueryString): Use HttpUtility.ParseQueryString instead of
2551 duplicating its functionality.
2553 2006-06-05 Juraj Skripsky <js@hotfeet.ch>
2555 * HttpUtility.cs (ParseQueryString): move core of
2556 ParseQueryString into internal method to make it available to
2559 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2561 * HttpApplication.cs: assign the context when run from a thread not in
2562 the threadpool. Patch by Andrew Skiba. Fixes bug #78583.
2564 2006-05-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2566 * HttpApplication.cs: context.Handler does not change for
2567 HttpServerUtility.Execute, so moved setting it into the pipeline instead
2570 2006-05-17 Kazuki Oikawa <kazuki@panicode.com>
2572 * HttpUtility.cs: implemented ParseQueryString
2574 2006-05-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2576 * HttpUtility.cs: get rid of TryParseHexa.
2578 2006-04-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2580 * HttpApplicationFactory.cs: make sure that the application start event
2581 is run before any request is processed.
2583 2006-04-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2585 * HttpServerUtility.cs: don't reset the query string in Execute() when
2586 the path does not contain it and we have one from the previous request.
2589 2006-04-20 Andrew Skiba <andrews@mainsoft.com>
2591 * SiteMapNode.cs: fix few null reference exceptions
2593 2006-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2596 (TransmitFile): make sure we can read the file before buffering it.
2598 2006-04-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2600 * HttpApplicationFactory.cs: don't fail on events that are not
2601 EventHandlers. Patch by Matthew Metnetsky.
2603 2006-04-11 Andrew Skiba <andrews@mainsoft.com>
2605 * HttpRequest.cs: remove code duplication (see UrlUtils.Combine)
2607 2006-04-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2609 * HttpUtility.cs: allow "%%" as a escape for '%' and ignore invalid
2610 hexadecimal characters. Based on a patch by Vladimir Krasnov.
2612 2006-04-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2614 * HttpWriter.cs: only keep the byte buffer around if its size is less
2615 than or equals to 32K.
2617 2006-04-08 Miguel de Icaza <miguel@novell.com>
2619 * HttpWriter.cs (Write): Added missing check for null string as
2620 something is now calling it like that.
2622 2006-03-27 Joshua Tauberer <tauberer@for.net>
2624 * HttpWriter.cs: Avoid creation of a byte[] on each Write()
2625 by reusing and resizing a private array.
2627 2006-04-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2629 * HttpRequest.cs: the field content_length can be < 0 and then we try to
2630 read when there's no data and block.
2632 2006-04-05 Andrew Skiba <andrews@mainsoft.com>
2634 * HttpUtility: UrlEncode and UrlEncodeUnicode logic unified, behaviour
2635 fixed to match dotnet and http://rfc.net/rfc1738.html
2637 2006-03-30 Konstantin Triger <kostat@mainsoft.com>
2639 * HttpApplicationFactory.cs: refactoring: remove static modifier from session_end field.
2640 Does not check the behavior as HttpApplicationFactory is a singleton.
2642 2006-03-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2644 * HttpUtility.cs: UrlDecode does not throw if an hexadecimal sequence
2645 fails to parse as an integer. Fixes bug #77931.
2647 2006-03-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2649 * HttpResponse.cs: more fixes for CacheControl: MS allows to set it to
2650 null and "" and the getter value does not completely depend on Cache.
2652 * HttpRequest.cs: fail validating the request input if there's a control
2653 character after a '<'. Fixes XSS_Null test.
2655 All System.Web tests pass again.
2656 2006-03-22 Robert Jordan <robertj@gmx.net>
2658 * HttpCachePolicy.cs: fix the Cache-control header. Fixes bug #77826.
2660 2006-03-22 Chris Toshok <toshok@ximian.com>
2662 * HttpApplication.cs: fix typo - AuthenticateRequest =>
2663 PostAuthenticateRequest.
2665 2006-03-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2668 * HttpRequest.cs: revert part of r58229.
2670 2006-03-21 Vladimir Krasnov <vladimirk@mainsoft.com>
2672 * ServerVariablesCollection.cs: fixed "URL" variable, it should not
2675 2006-03-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2678 (CheckString): style and don't index the string twice per iteration.
2680 2006-03-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2682 * TempFileStream.cs: a FileStream that removes the file once
2684 * HttpRequest.cs: support for writing request data to on-disk
2685 files if the request is longer than the threshold specified in the
2686 configuration files. In mono this will work for 1.x and 2.0, while with
2687 MS this only works for 2.0.
2689 2006-03-18 Robert Jordan <robertj@gmx.net>
2691 * HttpCachePolicy.cs: expose the validation callbacks.
2694 2006-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2696 * HttpApplication.cs: fix upper bound when iterating through the module
2699 2006-03-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2701 * HttpRequest.cs: use the provided content encoding to decode the file
2702 name. Fixes bug #77714.
2704 2006-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2706 * HttpResponse.cs: allow setting a Cache-Control header through
2707 AppendHeader. Fixes bug #77775.
2709 2006-03-15 Chris Toshok <toshok@ximian.com>
2711 * XmlSiteMapProvider.cs (RemoveProvider): oops, no override.
2713 * StaticSiteMapProvider.cs (AddNode): call MapUrl.
2714 (FindSiteMapNode): same.
2716 2006-03-15 Chris Toshok <toshok@ximian.com>
2718 * SiteMapProvider.cs (ReturnNodeIfAccessible): new function,
2719 either return the node or throw InvalidOperationException.
2720 (get_RootNode): use ReturnNodeIfAccessible.
2721 (IsAccessibleToUser): flesh this out a bit, and add comments on
2722 how the rest of the implementation should be written.
2723 (FindSiteMapNodeFromKey): implement to match MS behavior, docs be
2726 * XmlSiteMapProvider.cs: corcompare work.
2728 * StaticSiteMapProvider.cs (AddNode): Add a check to see if node
2729 == RootNode. Not sure if this is actually correct, but it's
2730 required given our implementation of XmlSiteMapProvider. without
2731 this check, we end up assigning RootNode.ParentNode == RootNode,
2732 which makes for an infinite loop when we traverse up the tree.
2734 2006-03-15 Vladimir Krasnov <vladimirk@mainsoft.com>
2736 * HttpRequest.cs: fixed MakeInputStream method under TARGET_JVM,
2737 fixed if content lenght value is less that byte received
2739 2006-03-10 Chris Toshok <toshok@ximian.com>
2741 * StaticSiteMapProvider.cs (UrlToNode): this entire file is #if
2742 NET_2_0, no need to embed another #if NET_2_0.
2744 * SiteMapProvider.cs (AddNode): throw NotImplementedException.
2745 (FindSiteMapNode): with null context, return null. don't throw
2746 ArgumentNullException.
2747 (RemoveNode): throw NotImplementedException.
2748 (IsAccessibleToUser): check arguments to make test pass. still
2749 lacking the method's actual functionality.
2750 (ResourceKey): add missing property.
2752 2006-03-10 Chris Toshok <toshok@ximian.com>
2754 * HttpRequest.cs (CheckString): add back in the check for \xff1c
2755 that i took out. oops.
2757 2006-03-10 Chris Toshok <toshok@ximian.com>
2759 * HttpRequest.cs (CheckString): implement as described in
2760 Shackow's "Professional ASP.NET 2.0 Security, Membership, and Role
2761 Management", page 310.
2763 2006-03-08 Chris Toshok <toshok@ximian.com>
2765 * SiteMap.cs: clean this up a bunch. use the SiteMapSection to
2766 initialize the provider collection, and don't add a provider.
2767 web.config handles that for us. Also, don't always return true
2770 2006-02-28 Chris Toshok <toshok@ximian.com>
2772 * HttpCookieMode.cs: corcompare work.
2774 * ProcessShutdownReason.cs: same.
2776 * SiteMapNodeCollection.cs: same.
2778 * SiteMapNode.cs: same.
2780 * SiteMapProvider.cs: same.
2782 * HttpCacheRevalidation.cs: same.
2784 * HttpCacheability.cs: same.
2786 * StaticSiteMapProvider.cs: same.
2788 * HttpValidationStatus.cs: same.
2790 2006-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2792 * DefaultHttpHandler.cs: New file.
2794 2006-02-01 Chris Toshok <toshok@ximian.com>
2796 * SiteMap.cs: use GetSection instead of GetWebApplicationSection.
2798 2006-02-01 Chris Toshok <toshok@ximian.com>
2800 * HttpApplication.cs: CONFIGURATION_2_0 => NET_2_0, and use
2801 GetSection instead of GetWebApplicationSection.
2803 * HttpApplication.jvm.cs: same.
2805 * HttpApplicationFactory.cs: same.
2807 * HttpContext.cs: same.
2809 * CapabilitiesLoader.cs: same.
2811 * QueueManager.cs: same.
2813 * HttpRuntime.cs: same.
2815 * TraceManager.cs: same.
2817 * HttpRequest.cs: same.
2819 2006-01-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2821 * HttpApplication.cs: keep any exception that happens during
2824 2006-01-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2826 * HttpDataTransferMode.cs: Removed file.
2827 * HttpRequestPriority.cs: Removed file.
2828 * ApplicationShutdownReason.cs:
2831 * HttpApplication.cs: minor class status fixes.
2833 2006-01-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2835 * VirtualPathUtility.cs: done with all the not implemented methods.
2837 2006-01-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2839 * HttpResponse.cs: use UInt64.Parse for content length. In AppendHeader,
2840 set cache_control through the property to update the cachebility
2841 accordingly. When using the cached headers, don't add again all the
2842 headers to that collection.
2843 * HttpCacheVaryByParams.cs: if there are no params, return null.
2844 Otherwise we get an empty 'Vary' header.
2846 2006-01-25 Chris Toshok <toshok@ximian.com>
2848 * HttpApplication.cs (Start): wrap InitOnce in a try/catch block,
2849 and if there's a configuration error, output it and end things
2852 2006-01-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2854 * HttpRequest.cs: fixed the file path when RewritePath is used. Also
2855 add the PathInfo to the Url. Fixes bug #77291.
2857 2006-01-22 Chris Toshok <toshok@ximian.com>
2859 * HttpRequest.cs (ReadBoundary): remove two unused variables to
2861 (IsBoundary): remove unused method.
2863 * MimeTypes.cs (.cctor): use a 2.0 friendly form of the Hashtable
2864 ctor to silence a warning.
2866 * HttpCacheVaryByHeaders.cs (.ctor): same.
2868 * HttpCacheVaryByParams.cs (.ctor): same.
2870 * StaticSiteMapProvider.cs (UrlToNode): same.
2872 2006-01-22 Konstantin Triger <kostat@mainsoft.com>
2874 * HttpWorkerRequest.cs: ensure case insensitivity in header search.
2876 2006-01-19 Konstantin Triger <kostat@mainsoft.com>
2878 * HttpApplication.jvm.cs: merge HttpApplication.cs changes.
2880 2006-01-17 Chris Toshok <toshok@ximian.com>
2882 * CapabilitiesLoader.cs (Init): use WebConfigurationManager in the
2883 CONFIGURATION_2_0 case.
2885 * HttpRuntime.cs (MachineConfigurationDirectory): same.
2887 2006-01-16 Chris Toshok <toshok@ximian.com>
2889 * HttpApplicationFactory.cs: call WebConfigurationManager.Init in
2890 the CONFIGURATION_2_0 case.
2892 2006-01-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2894 * HttpWriter.cs: made Write (char) less memory hungry. Thanks to Mike
2895 Glenn for pointing this out.
2897 2006-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2899 * HttpApplicationFactory.cs: fix condition for ContextAvailable.
2901 2006-01-11 Vladimir Krasnov <vladimirk@mainsoft.com>
2903 * HttpResponse.cs: removed TARGET_JVM block from End
2904 * GetJavaTextReader: Merged TARGET_JVM block from LoadFile
2905 to GetJavaTextReader
2907 2006-01-11 Vladimir Krasnov <vladimirk@mainsoft.com>
2909 * HttpRequest.cs: removed TARGET_JVM block from MapPath
2911 2006-01-11 Vladimir Krasnov <vladimirk@mainsoft.com>
2913 * HttpRequest.cs: little fix in MapPath(), virtualPath.Replace
2914 return value wasnt stored.
2916 2006-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2918 * HttpResponse.cs: typo in comment.
2920 * HttpApplicationFactory.cs:
2921 * HttpApplication.cs: don't discard the application used for running the
2922 Application_Start event to allow for Redirect/Transfer to be used. Fail
2923 to get the request/response from the application object as MS does (it
2924 can still be retrieved through HttpContext.Current.blah). Fixes
2927 2006-01-09 Vladimir Krasnov <vladimirk@mainsoft.com>
2929 * CapabilitiesLoader.cs: Merged TARGET_JVM parts in LoadFile
2931 * HttpException.cs: Merged TARGET_JVM parts in GetHtmlizedErrorMessage
2933 * HttpRequest.cs: Merged TARGET_JVM parts in MapPath from /main/29
2934 * HttpResponse.cs: Merged TARGET_JVM parts in End() from /main/30
2935 * StaticFileHandler.cs: Merged TARGET_JVM parts in ProcessRequest
2938 2006-01-08 Konstantin Triger <kostat@mainsoft.com>
2940 * BrowserCapabilities.cs, HttpBrowserCapabilities.cs,
2941 HttpResponseStream.cs: TARGET_JVM changes to let the compilation
2944 2006-01-04 Chris Toshok <toshok@ximian.com>
2946 * HttpContext.cs (IsCustomErrorEnabled): add CONFIGURATION_2_0
2947 code. use a nasty 'using' hack to map the 2.0 CustomErrorsMode to
2948 the 1.x CustomErrorMode name.
2949 (IsDebuggingEnabled): add CONFIGURATION_2_0 code.
2950 (ConfigTimeout): add CONFIGURATION_2_0 code.
2952 * HttpRequest.cs (MakeInputStream): add CONFIGURATION_2_0 code.
2954 * HttpApplication.cs (RedirectCustomError): add CONFIGURATION_2_0
2957 * SiteMap.c (Init): use
2958 WebConfigurationManager.GetWebApplicationSection.
2960 2005-12-21 Miguel de Icaza <miguel@novell.com>
2962 * HttpUtility.cs (UrlEncodeUnicode): The generated encoding of
2963 unicode values must be in %XXXX format, not %XX sometimes.
2965 2005-12-08 Robert Jordan <robertj@gmx.net>
2967 * MimeTypes.cs: added entry for "jpg".
2969 2005-12-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2971 * HttpRequest.cs: only read up to content-length when provided. Patch
2974 2005-12-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2976 * HttpCookie.cs: fixed the set_Secure. Closes bug #76906.
2978 2005-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
2980 * HttpResponseStream.cs: flush the filter stream before closing.
2981 Patch by Geir Bergum that fixes bug #76753.
2983 2005-11-28 Chris Toshok <toshok@ximian.com>
2985 * HttpContext.cs (Profile): remove the #if false from around this,
2986 as we now have the ProfileBase type.
2987 (GetConfig): add CONFIGURATION_2_0 version.
2988 (GetSection): add CONFIGURATION_2_0 version.
2990 2005-11-28 Chris Toshok <toshok@ximian.com>
2992 * TraceManager.cs (..ctor): CONFIGURATION_2_0 work.
2994 * QueueManager.cs (..ctor): CONFIGURATION_2_0 work.
2996 * HttpRequest.cs (AnonymousID): add 2.0 property.
2997 (MakeInputStream): CONFIGURATION_2_0 work.
2999 * HttpApplication.cs (InitOnce): change around the
3000 CONFIGURATION_2_0 stuff since we need additional Culture foo for
3003 2005-11-27 Chris Toshok <toshok@ximian.com>
3005 * HttpApplication.cs (InitOnce): add Configuration_2.0 code.
3008 2005-11-26 Miguel de Icaza <miguel@novell.com>
3010 * HttpResponseStream.cs: Do not try to write zero bytes.
3012 2005-11-24 Miguel de Icaza <miguel@novell.com>
3014 * WebROCollection.cs: Do not add an empty "=" to the query string
3015 if the key is empty or null.
3017 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3019 * WebROCollection.cs: override ToString and generate a query string from
3020 the key/value pairs. Fixes bug #76779.
3022 2005-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3024 * HttpServerUtility.cs: prevent possible nullref in GetLastError().
3026 2005-11-07 Jason Diamond <jason@diamond.name>
3028 * HttpRequest.cs: Don't throw exception when Content-Length doesn't
3029 match length of POSTed data. Also, allow charset parameter on
3030 Content-Type header when type is "application/x-www-form-urlencoded".
3032 2005-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3034 * WebROCollection.cs: add an ID for the collection. Page needs it.
3036 2005-11-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3038 * HttpRequest.cs: no need to allocate the buffer when all the content
3041 2005-11-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3043 * HttpApplication.cs: ignore TAE in ProcesssError. The Error event might
3044 redirect or transfer and that causes a TAE to be thrown. Fixes
3047 2005-11-01 Chris Toshok <toshok@ximian.com>
3049 * VirtualPathUtility.cs: new (partial implementation) to get some
3050 MS provider examples compiling.
3052 2005-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3054 * HttpContext.cs: added a new internal overload for ClearError.
3056 2005-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3058 * HttpRuntime.cs: invoke callbacks on private items in the cache before
3059 calling disposing the app. factory. This way we get notifications of
3060 removal for all sessions stored in the cache (InProc only).
3062 2005-10-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3064 * HttpResponseStream.cs: reworked buffering so that adjacents blocks are
3065 written at once. Also fix bug #76460.
3067 2005-10-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3069 * HttpResponseStream.cs: when allocating a chunk larger than the
3070 default chunk size, mark all the blocks as taken. Fixes bug
3073 2005-10-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3075 * HttpResponse.cs: use HaveFilter instead of Filter.
3076 * HttpResponseStream.cs: allocate chunks of the requested size
3077 when it's > 32KB. Fixes bug #76460.
3079 2005-10-14 Sebastien Pouliot <sebastien@ximian.com>
3081 * ServerVariablesCollection.cs: Added a demand for
3082 SerializationFormatter on GetObjectData method (even if it's not
3083 really required in this case as it remove warnings from gendarme.
3085 2005-10-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3088 * HttpRequest.cs: buglets in error checking in Filter.
3090 2005-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3092 * OutputFilterStream.cs: proxy class for response filters.
3093 * HttpResponse.cs: moved all the actual write operations into the
3094 response stream. Handle response filtering. When caching, get the
3095 actual length of the data, not the buffer length.
3096 * HttpApplication.cs: if there's no error, invoke the filters before
3097 updating the request cache.
3098 * HttpResponseStream.cs: new Filter property. SendChunkSize is moved
3099 here and now supports writing the final chunk. New method ApplyFilter
3100 that filters the existing buckets and replaces them with the filtered
3101 ones. Modified Write to deal with buffering and filtering.
3103 2005-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3105 * HttpResponseStream.cs: allow for writes of more than 32K at once.
3107 2005-10-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3109 * InputFilterStream.cs proxy stream for use by filters.
3110 * HttpRequest.cs: implement input filtering.
3112 2005-10-02 Eyal Alaluf <eyala@mainsoft.com>
3113 * HttpApplication.jvm.cs - Workaround for use of yield in
3114 HttpApplication.cs HttpRuntime.cs: AppDomain.Unload is not supported
3117 2005-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3119 * HttpResponseStream.cs: remove dead code.
3121 2005-09-29 Sebastien Pouliot <sebastien@ximian.com>
3123 * HttpClientCertificate.cs: Remove last TODO on IsValid. This now
3124 works when using XSP. Now use flags to determine valid/presence.
3126 2005-09-26 Chris Toshok <toshok@ximian.com>
3128 * HttpApplicationFactory.cs (OnAppFileChanged): add null checks
3129 for bin_watcher and app_file_watcher so we don't get NRE's here.
3131 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3133 * BrowserCapabilities.cs: don't rely on the win32 attribute to be there.
3134 Just use the platform to determine whether Win32 is true or not. Fixes
3137 2005-09-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3139 * HttpApplication.cs: fixed typo when setting UI culture. Closes bug
3142 2005-09-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3144 * HttpRequest.cs: new SetFilePath() that does not conflict with
3145 SetCurrentExePath. Now when transfering from a page to another,
3146 CurrentExecutionFilePath and FilePath are correct.
3148 2005-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3150 * TraceContext.cs: add new method to store size of controls.
3151 * TraceData.cs: render control size.
3152 * HttpResponse.cs: new internal method to get the number of bytes of
3154 * HttpResponseStream.cs: added Length property to the Buckets and new
3157 2005-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3159 * TraceData.cs: we have to change the method of getting a control render
3160 size. MS does not do this or otherwise would run into the same bug
3161 (#76051) that this patch fixes. This is temporarily setting the size
3164 2005-09-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3166 * HttpResponseStream.cs: implemented Send(stream) for files. Fixes bug
3169 2005-09-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3171 * HttpRuntime.cs: catch errors when compiling global.asax and
3172 initializing the application. Fixes bug #76090.
3174 2005-09-14 Sebastien Pouliot <sebastien@ximian.com>
3176 * BrowserCapabilities.cs: Fixed changes (in 2.0) with versions. Fixed
3177 compare with "True" (culture and case sensitivity).
3178 * HttpApplicationState.cs: Added LinkDemand for Minimal. Use the
3179 internal HttpStaticObjectsCollection ctor to avoid the UnmanagedCode
3181 * HttpContext.cs: Added LinkDemand for Minimal. Added 2.0 properties
3182 and methods to test CAS on them.
3183 * HttpRequest.cs: Added LinkDemand for Minimal. Ensure we return
3184 proper values when worker_request is null.
3185 * HttpResponse.cs: Added LinkDemand for Minimal. Ensure we return
3186 proper values when context or WorkerRequest is null. Added 2.0
3187 properties and methods to test CAS on them.
3188 * HttpRuntime.cs: Added LinkDemand for Minimal. Added PathDiscovery
3189 demands for properties returning directories. Added demand for High
3190 level on AppDomainAppId and AppDomainId properties, Low level on
3191 IsOnUNCShare, Medium level on ProcessRequest and a demand for
3192 UnmanagedCode on UnloadAppDomain method. Constructor also has a
3193 UnmanagedCode demand for 1.x.
3194 * HttpStaticObjectsCollection.cs: Added LinkDemand for Minimal. Added
3195 a UnmanagedCode demand to public ctor. Added internal ctor without the
3196 demand. Changed Serialize and Deserialize methods to public for 2.0.
3198 2005-09-14 Sebastien Pouliot <sebastien@ximian.com>
3200 * HttpWorkerRequest.cs: Removed TODO for 2.0 APIs and return the
3201 default values for them.
3203 2005-09-13 Sebastien Pouliot <sebastien@ximian.com>
3205 * HttpApplication.cs: : Added LinkDemand and InheritanceDemand (class)
3206 for Minimal. Changed AssemblyLocation to a property (so it doesn't
3207 require special permission, PathDiscovery) to create an instance.
3208 Protected Modules property with a Demand for High level. Added some
3209 missing HttpException for null context.
3210 * HttpServerUtility.cs: Added LinkDemand for Minimal. Added demands
3211 for UnmanagedCode on all CreateObject* methods. Added demand for
3212 Medium level on MachineName and ScriptTimeout properties. Added new
3213 overloaded Transfer method (2.0) to test CAS on it.
3214 * HttpUtility.cs: Added LinkDemand for Minimal. Added [Obsolete] to
3215 ctor (2.0). Changed some return values when 'count' is 0. Added
3216 ParseQueryString (overload) methods for 2.0 (to enabled CAS testing on
3218 * HttpWorkerRequest.cs: Added LinkDemand and InheritanceDemand (class)
3219 for Minimal. Added RequestTraceIdentifier and RootWebConfigPath (2.0)
3220 properties, GetPreloadedEntityBody, GetPreloadedEntityBodyLength,
3221 GetTotalEntityBodyLength and ReadEntityBody (2.0) methods to test CAS
3222 on them. Fixed SendResponseFromMemory to ignore IntPtr.Zero (used in
3223 tests without failures).
3224 * ServerVariablesCollection.cs: Fixed loadServerVariablesCollection
3225 when HttpWorkerRequest is null.
3226 * TraceContext.cs: Added LinkDemand for Minimal. Fixed default Mode
3227 (SortByTime). Added new (2.0) TraceFinished event to test CAS on it.
3229 2005-09-13 Sebastien Pouliot <sebastien@ximian.com>
3231 * HttpBrowserCapabilities.cs: Added LinkDemand and InheritanceDemand
3232 (class) for Minimal. Note that current MCS has problem compiling
3233 security attributes on partial class (bug #75969).
3234 * HttpCachePolicy.cs: Added LinkDemand for Minimal. Added 2.0 methods
3235 (stub) to enable CAS tests on them.
3236 * HttpCacheVaryByHeaders.cs: Added LinkDemand for Minimal.
3237 * HttpCacheVaryByParams.cs: Added LinkDemand for Minimal.
3238 * HttpClientCertificate.cs: Added LinkDemand and InheritanceDemand
3239 (class) for Minimal.
3240 * HttpCookie.cs: Added LinkDemand for Minimal.
3241 * HttpCookieCollection.cs: Added LinkDemand for Minimal.
3242 * HttpFileCollection.cs: Added LinkDemand for Minimal.
3243 * HttpModuleCollection.cs: Added LinkDemand for Minimal.
3244 * HttpPostedFile.cs: Added LinkDemand for Minimal.
3245 * HttpRequestPriority.cs: Fix enum values.
3246 * HttpWriter.cs: Added LinkDemand for Minimal.
3248 2005-09-13 Sebastien Pouliot <sebastien@ximian.com>
3250 * ProcessInfo.cs: Added LinkDemand and InheritanceDemand (class) for
3252 * ProcessModelInfo.cs: Added LinkDemand and InheritanceDemand (class)
3253 for Minimal. Methods GetCurrentProcessInfo and GetHistory are also
3254 protected by Demand for High level.
3256 2005-09-13 Sebastien Pouliot <sebastien@ximian.com>
3258 * HttpCompileException.cs: Added new public ctors and [Serializable]
3259 to 2.0. Added new Message property and GetObjectData (protected by a
3260 demand for SerializationFormatter) for 2.0. Fixed line-ending.
3261 * HttpException.cs: Added LinkDemand and InheritanceDemand (class) for
3262 Minimal. Renamed parameters to match documentation.
3263 * HttpParseException.cs: Added LinkDemand (class) for Minimal. Added
3264 demand for SerializationFormatter on GetObjectData method. Fixed
3266 * HttpRequestValidationException.cs: Added new public ctors and
3267 [Serializable] to 2.0. Added LinkDemand for Minimal.
3268 * HttpUnhandledException.cs: Added new public ctors and [Serializable]
3269 to 2.0. Removed unused internal ctor. Added LinkDemand for Minimal.
3272 2005-09-13 Sebastien Pouliot <sebastien@ximian.com>
3274 * HttpResponseSubstitutionCallback.cs: New. 2.0 delegate.
3275 * TraceContextEventArgs.cs: New. 2.0 class.
3276 * TraceContextEventHandler.cs: New. 2.0 delegate.
3278 2005-09-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3280 * HttpRequest.cs: use GetServerName instead of GetLocalAddress when
3283 2005-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3285 * HttpRequest.cs: fix the indexer.
3287 2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3289 * HttpPostedFile.cs: fixes in Seek and Position.
3291 2005-09-08 Sebastien Pouliot <sebastien@ximian.com>
3293 * HttpRequest.cs: Make sure the MemoryStream created have their
3294 contents marked as public - or else you can't call GetBuffer on them!
3296 2005-09-08 Miguel de Icaza <miguel@novell.com>
3298 * HttpRequest.cs: Patch from Juraj Skripsky <js@hotfeet.ch> that
3301 2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3303 * HttpPostedFile.cs: Make this class actually work. Every time we read,
3304 we have to position the underlying stream.
3306 2005-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3308 * HttpRequest.cs: reading multipart/form-data works again.
3310 2005-09-08 Eyal Alaluf <eyala@mainsoft.com>
3311 * HttpRequest.cs: Under TARGET_JVM the input stream must allow GetBuffer.
3313 2005-09-08 Eyal Alaluf <eyala@mainsoft.com>
3314 * HttpApplicationFactory.cs: TARGET_J2EE/JVM fix.
3316 2005-09-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3318 * HttpRequest.cs: correctly detect multipart/form-data.
3320 2005-09-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3322 * HttpApplicationFactory.cs: recycle after invoking session_end.
3324 2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3326 * HttpRuntime.cs: remove Console.
3328 * HttpApplicationFactory.cs: don't hook Session_End, but keep
3329 the MethodInfo around for later invocation if needed. Don't call
3330 GetMethods() for every HttpApplication (or derived class) instances.
3331 Added a method, used by SessionStateModule, that will create use an
3332 application without context to invoke Session_End. Keep a pool of
3333 applications that are meant to be used by this method only.
3335 * HttpApplication.cs: add a SetSession method and do not
3336 attach all the events if the application is for Session_End only.
3338 2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3340 * HttpRuntime.cs: actually unload the domain when requested. Reformatted
3341 FinishUnavailable() and removed the 'Location' header form the error.
3343 * HttpApplicationFactory.cs: set up the watcher for the bin directory.
3344 This also prevents a nullref when global.asax is changed.
3346 2005-09-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3348 * HttpApplication.cs: fixed bug introduced when moving GetHandler call
3349 around. Now we get error pages again.
3351 2005-09-06 Miguel de Icaza <miguel@novell.com>
3353 * HttpApplication.cs: Catch EndRequest errors as well.
3355 2005-09-05 Miguel de Icaza <miguel@novell.com>
3357 * HttpApplication.cs: Invoke EndRequest handler before OutputPage
3358 as FormsAuthentication will issue a Redirect from the EndRequest
3361 2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3363 * HttpApplication.cs: when writing an error message, catch the possible
3366 2005-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3368 * HttpResponseStream.cs: prevent invalid cast exception if the first
3369 thing written is a file.
3371 2005-09-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3373 * HttpApplication.cs: fix invalid cast exception (bug #75926).
3375 2005-09-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3377 * HttpApplicationFactory.cs: only trigger the Application_Start event
3378 once. It was being invoked more than once when several clients were
3379 hitting the server at the same time on startup.
3381 2005-09-01 Eyal Alaluf <eyala@mainsoft.com>
3383 * HttpContext.cs HttpResponse.cs HttpWorkerRequest.cs HttpRuntime.cs
3384 HttpApplicationFactory.cs HttpApplication.cs: TARGET_J2EE/JVM fixes.
3385 Mostly workaround limited AppModel in TARGET_J2EE.
3387 2005-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3389 * HttpResponse.cs: if the request method is HEAD, that's equivalent to
3390 SuppressContent. Added an internal TransmitFile that allows setting the
3392 * StaticFileHandler.cs: use the new internal TransmitFile and remove
3393 generation of Content-Length header, as now it's computed correctly.
3394 * HttpApplication.cs: remove debugging stuff.
3395 * HttpResponseStream.cs: suppress_content is checked in HttpResponse.
3397 2005-08-31 Miguel de Icaza <miguel@novell.com>
3399 Removed debugging info.
3401 * HttpApplication.cs: Add support for async handlers.
3403 Add extra 2.x methods.
3405 2005-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3407 * BrowserCapabilities.cs: removed extra 'using'.
3409 * HttpApplication.cs: use just the 'modcoll' to hold the collection of
3410 modules instead of having a separate 'modules' one.
3412 2005-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3414 * HttpApplication.cs: clone the module collection so that
3415 it's not shared between HttpApplications. Call GetHandler() in the
3418 2005-08-30 Miguel de Icaza <miguel@novell.com>
3420 * HttpApplication.cs: Add the new 2.x method overloads that take a
3423 (RunHooks): Pass the extra data instead of null.
3425 * HttpCookie.cs (HttpOnly): Add 2.x cookie header.
3427 * BrowserCapabilities.cs: Move the core of the capabilities into a
3428 separate file. Use partial classes to choose what version to
3431 * HttpBrowserCapabilities.cs: Update to move the code elsewhere.
3433 2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
3435 * HttpResponseStream.cs: Fix a bug introduced by last fix (thanks to
3438 2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
3440 * HttpResponseStream.cs: Compilation fixes for TARGET_JVM. TARGET_JVM
3441 does not support unsafe code. I localized all unsafe code within Chunk
3442 & Block and created a managed version of Chunk.
3444 2005-08-30 Eyal Alaluf <eyala@mainsoft.com>
3445 * HttpApplicationFactory.cs: Compilation fixes for TARGET_J2EE. Under
3446 TARGET_J2EE static fields are shared by all app domains. We handle
3447 this difference by explicitly getting/setting values from the app
3448 domain. Since HttpApplicationFactory has many static fields, I
3449 refactored it to have one static instance and moved the static fields
3450 into instance fields.
3452 2005-08-29 Eyal Alaluf <eyala@mainsoft.com>
3454 * HttpRequest.cs: Disable use of IntPtrStream for TARGET_JVM
3456 2005-08-29 Eyal Alaluf <eyala@mainsoft.com>
3458 * HttpContext.cs: Compilation fixes for TARGET_J2EE/JVM
3460 2005-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3462 * HttpResponse.cs: don't duplicate the 'charset=' and don't send a
3463 charset for unknown MIME types.
3464 * StaticFileHandler.cs: set the Content-Length header here.
3465 * HttpRequest.cs: prevent nullrefs when we have no 'charset='.
3467 2005-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3469 * StaticFileHandler.cs: use TransmitFile instead of WriteFile. This way
3470 xsp will use sendfile().
3472 2005-08-28 Chris Toshok <toshok@ximian.com>
3474 * SiteMapNode.cs: fix IHierarchyData.GetParent.
3476 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3479 * IntPtrStream.cs: now we only have a read-only MemoryStream or an
3480 IntPtrStream. The copy is moved into HttpRequest.
3482 2005-08-26 Sebastien Pouliot <sebastien@ximian.com>
3484 * WebCategoryAttribute.cs: New. Required internal attribute.
3485 * WebSysDescriptionAttribute.cs: New. Required internal attribute.
3487 2005-08-26 Jackson Harper <jackson@ximian.com>
3489 * HttpResponseStream.cs: Use GetBuffer so the memory isn't
3492 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3494 * HttpApplication.cs: GetHandler might return null when, for example,
3495 a web service fails, but that does not mean that returning a null
3496 handler should throw another exception, as the web service code
3497 serialized the error as a faultString. So if the handler is null, just
3498 don't call ProcessRequest and keep going.
3500 2005-08-26 Jackson Harper <jackson@ximian.com>
3502 * HttpResponse.cs: Send the cached headers if this is a cached
3503 response. Save the headers, date header, and page data. Fix a typo.
3504 * HttpResponseStream.cs: Add new accesor to get a byte [] of the
3507 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3509 * HttpWorkerRequest.cs: SetEndOfSendNotification is a noop. No matter
3510 what callback you use that never gets called. In XSP I actually
3511 implement something for this method.
3512 * HttpServerUtility.cs: unused variable.
3514 2005-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3516 * HttpInputStream.cs: new ctor that takes a byte [].
3517 * IntPtrStream.cs: make it work on a byte [] too.
3520 (ContentLength): return 0 for negative numbers or error parsing, but
3521 keep content_length negative in those cases.
3522 (MakeInputStream): when there's no content-length (or it's negative),
3523 we still read the request into a MemoryStream. Use
3524 IsEntireEntityIsPreloaded() as a fast path.
3526 2005-08-25 Sebastien Pouliot <sebastien@ximian.com>
3528 * HttpClientCertificate.cs: On 1.x the .ctor throws a
3529 ArgumentNullException (but 2.0 throws a NRE).
3531 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3533 * HttpRequest.cs: HttpMethod deserves its own field. Fix IsLocal.
3535 2005-08-25 Chris Toshok <toshok@ximian.com>
3537 * HttpApplication.cs (IsReusable): return true.
3538 (InitOnce): remove the initialization of handler_factory from
3540 (GetHandler) and move it here, so we make sure to load handlers
3541 from all needed web.config files.
3543 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3545 * HttpServerUtility.cs: use GetHandler().
3546 * HttpApplication.cs: remove obsolete method. Now Transfe/Execute work.
3548 2005-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3550 * HttpApplication.cs: no need for the local var. here.
3552 2005-08-25 Chris Toshok <toshok@ximian.com>
3554 * HttpApplication.cs (InitOnce): move the initialization of
3555 modules above the call to HttpApplicationFactory.AttachEvents,
3556 since that method accesses HttpApplication.Modules. Fixes
3558 (IsReusable): mark TODO.
3560 2005-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3562 * HttpResponseHeader.cs: removed obsolete class.
3563 * HttpResponse.cs: no more 'obsolete' warnings.
3565 2005-08-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3567 * HttpRuntime.cs: implemeted some missing properties.
3569 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3571 * HttpResponse.cs: implemented RemoveOutputCacheItem().
3573 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3575 * HttpApplication.cs: implemented GetVaryByCustomString().
3577 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3579 * HttpRequest.cs: implemented SetHeader (allows adding a header
3580 circumventing the read-only protection of the collection) and SetForm,
3581 which just assigns a value of the 'form' collection.
3582 * HttpServerUtility.cs: NameValueCollection -> WebROCollection.
3584 2005-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3587 * HttpRequest.cs: implemented RewritePath and supporting methods.
3589 2005-08-22 Sebastien Pouliot <sebastien@ximian.com>
3591 * HttpRequest.cs: Avoid NRE if work_request if null in the ctor.
3592 * HttpResponse.cs: Avoid NRE if work_request if null in the ctor.
3594 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3596 * HttpApplication.cs: if there's any exception thrown when getting the
3597 handler, don't add an extra error to the context, as we already have
3600 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3604 * HttpWorkerRequest.cs:
3605 * HttpApplication.cs: added mising attributes and enabled methods
3608 2005-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3610 * WebROCollection.cs: a collection that allows setting IsReadOnly.
3611 * HttpRequest.cs: implemented MapImageCoordinates(). Use WebROCollection
3612 instead of a NameValueCollection in Form, Headers, Params, QueryString.
3614 2005-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3616 * HttpInputStream.cs: new copy ctor.
3617 * IntPtrStream.cs: getters for base_address and size.
3618 * HttpRequest.cs: implemented SaveAs(). Use a wrapper on top of
3619 InputStream so that reading POST form or files does not modify the state
3620 if InputStream. Don't use uri_builder.Query in QueryStringRaw, as it
3623 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3625 * HttpRequest.cs: implemented UserLanguages and reuse code from
3628 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3630 * HttpRequest.cs: implemented AcceptTypes.
3632 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3634 * HttpRequest.cs: implemented this[] in terms of Params. Don't add the
3635 header collection in Params.
3637 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3639 * HttpRequest.cs: fix Files property.
3640 * HttpApplication.cs: invoke the default authentication event after all
3641 the other auth. modules.
3643 2005-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3645 * ServerVariablesCollection.cs: mark the collection as read-only except
3646 when we fill it. Add the HTTP_blah key/value pairs too.
3648 2005-08-18 Chris Toshok <toshok@ximian.com>
3650 * HttpRequest.cs (get_Params): implement.
3652 2005-08-17 Chris Toshok <toshok@ximian.com>
3654 * HttpResponse.cs: HttpResponse's Cookie's collection acts
3655 differently than HttpRequests in that it never returns null from
3656 the "this [string]" accessor.
3658 2005-08-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3660 * HttpRequest.cs: check length 0 case when reading a POST.
3662 2005-08-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3664 * HttpContext.cs: added security attributes for User and
3665 SkipAuthorization properties.
3666 * HttpApplicationFactory.cs: AttachEvents is now called form the
3667 application .ctor. Recycle instead of dispose.
3668 * HttpApplication.cs: attach events to the newly created application.
3670 2005-08-15 Jackson Harper <jackson@ximian.com>
3672 * ApplicationShutdownReason.cs: make build
3674 2005-08-15 Miguel de Icaza <miguel@novell.com>
3676 * HttpApplication.cs: Update comments
3678 * HttpPostedFile.cs: Use a substream to read from the uploaded
3681 * HttpRequest.cs: use new code to read the uploaded files.
3683 2005-08-12 Miguel de Icaza <miguel@novell.com>
3685 2.x API fixage and small additions:
3687 * HttpResponse.cs: Make constructor internal.
3689 * HttpRequest.cs (IsLocal): Expose if NET_2.x
3691 * HttpContext.cs: Remove internal routine.
3693 * HttpApplication.cs: Add 2.x events.
3695 * HttpRequest.cs: Another iFolder issue: I was not setting up the
3698 Fixes to get iFolder to work:
3700 * HttpApplicationFactory.cs: Set the context when we are initting
3703 * HttpApplication.cs (SetContext): helper routine.
3705 * HttpResponse.cs: Implement the various cache operations:n
3706 Expires, ExpiresAbsolute, CacheControl.
3708 Actually produce the Cache-Control header, the "Cache" property
3709 takes precedence over the compatibility settings (Expires,
3710 ExpiresAbsolutely and CacheControl).
3712 * HttpCachePolicy.cs: Fix style.
3714 Fix the generation of the headers, use lower-case values, do not
3715 add the max-value if the value is zero.
3717 Allow for all possible values in SetCacheability.
3719 * HttpRuntime.cs (ClrInstallDirectory): Implement.
3721 * HttpResponseStream.cs: Remove debugging stuff.
3723 2005-08-11 Miguel de Icaza <miguel@novell.com>
3725 Big chunked handling rewrite, and integration of Ben's unmanaged
3728 * HttpWriter.cs: Delegate chunked encoding writing to the
3731 * HttpResponse.cs: Rework the chunked encoding system, centralize
3734 * HttpResponseStream.cs: Deploy Ben's bucket-base unmanaged
3737 Changed the way that we handle chunked encoding, centralize it
3740 Remove a lot of manual handling of buffering turned off, and
3741 instead delegate it all to Flush, fixes several issues with the
3744 * HttpWorkerRequest.cs (SendResponseFromMemory (IntPtr, int)):
3745 Provide a default implementation since currently XSP does not have
3746 this method implemented.
3748 2005-08-11 Sebastien Pouliot <sebastien@ximian.com>
3750 * HttpClientCertificate.cs: Culture insensitive int parsing. Fixed
3753 2005-08-10 Miguel de Icaza <miguel@novell.com>
3755 * ServerVariablesCollection.cs: For Ben. Implement the header
3756 fetching here, do not implement it in HttpRequest.cs.
3758 2005-08-10 Sebastien Pouliot <sebastien@ximian.com>
3760 * HttpClientCertificate.cs: Changed IsPresent logic so that new unit
3761 tests will work as expected.
3763 2005-08-10 Sebastien Pouliot <sebastien@ximian.com>
3765 * HttpClientCertificate.cs: Implemented, except for validation. Note
3766 that the HttpWorkerRequest derived classes must be updated to supply
3767 the required informations.
3768 * HttpRequest.cs: Create an HttpClientCertificate on first call to
3771 2005-08-09 Miguel de Icaza <miguel@novell.com>
3773 * HttpRuntime.cs (AspInstallDirectory): Implement.
3775 2005-08-09 Sebastien Pouliot <sebastien@ximian.com>
3777 * HttpClientCertificate.cs: New. Stub. It won't be fun to test.
3779 2005-08-04 Ben Maurer <bmaurer@ximian.com>
3781 * HttpContext.cs: Kill a NIE.
3783 2005-08-04 Miguel de Icaza <miguel@novell.com>
3785 * HttpApplicationFactory.cs: Change "Start" event like the "End"
3786 event, and only do this once, when we init the type.
3788 Fire the "Application_Start" event after we create the type.
3790 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3792 * HttpApplication.cs: catch a ThreadAbort (coming from Response.End)
3795 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3797 * HttpResponse.cs: setting the Status property resets the
3798 StatusDescription (see the tests) and the default value for the
3799 description is the one provided by GetStatusDescription() in
3802 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3804 * HttpRequest.cs: s/boundry/boundary/ and fix typo in array creation.
3806 2005-08-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3808 * HttpApplication.cs: add call to EndOfRequest when everything is said
3811 2005-08-02 Miguel de Icaza <miguel@novell.com>
3813 * HttpResponse.cs: Stub for TransmitFile.
3815 * HttpRequest.cs (IsAuthenticated): Implement.
3817 2005-08-01 Miguel de Icaza <miguel@novell.com>
3819 * HttpRequest.cs: Cope with implementations of HttpWorkerRequest
3820 (unpatched xsp) that do not send back the PreloadedEntityBody.
3822 * HttpApplication.cs: keep track of the factory.
3823 (Dispose): Only dispose once, clean up other variables, release
3824 the ManualResetEvent.
3825 Release the handler to the factory.
3827 * HttpApplicationFactory.cs: Implement a stack to reuse the
3830 * HttpRequest.cs: On uploads, if the ContentLenght is zero, throw
3833 * HttpRuntime.cs: Recycle the application after using it.
3835 * HttpPostedFile.cs: Implement SaveAs.
3837 * HttpContext.cs: Return the "Server" property.
3839 2005-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3841 * HttpServerUtility.cs: implemented missing bits.
3843 2005-08-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
3845 * HttpRequest.cs: query string was getting a '?' as the start of the
3846 first variable name. This makes the asmx help page work again.
3848 2005-08-01 Miguel de Icaza <miguel@novell.com>
3850 * HttpRequest.cs (Cookies, Forms): Add validation.
3851 (Forms): Add application/x-www-form-urlencoded parsing and
3852 multipart/form-data parsing.
3854 (HttpMultiPart): Implement new class to load multi-part data from
3855 a stream since there is no longer a byte [] that holds the data
3856 (currently we have an unmanaged IntPtr buffer wrapped as a
3857 stream). Also the 2.x framework will add support for large
3858 uploads which are sent directly to disk, which will require the
3859 FileStream interface.
3861 (Path, PathInfo): Fill a couple more methods to avoid crashes.
3863 * HttpContext.cs: Fill another one to get web services summary
3864 page painting. The page does not work though.
3866 * HttpApplication.cs: Rework the pipeline to not depend on
3867 `finally', as `finally' would not be invoked if we choose not to
3868 call the pipeline again (which happens if the `stop' variable is
3871 Instead force the pipeline to go to the shutdown, and yield from
3872 there after all the release-state callbacks have been invoked.
3874 2005-07-31 Miguel de Icaza <miguel@novell.com>
3876 * HttpApplication.cs: Remove debugging messages since the compiler
3879 You must use at least mcs from revision 47879 for the application
3882 2005-07-30 Miguel de Icaza <miguel@novell.com>
3884 * HttpContext.cs: Error handling methods.
3886 * HttpResponse.cs: Trigger the last event.
3888 * HttpRuntime.cs: Add queueing of the next request.
3890 * HttpApplication.cs: Deploy the new yield-based application
3891 pipeline, add error handling to the pipeline.
3893 * HttpApplication.cs (AsyncRequestState): Just use the done event
3896 2005-07-29 Miguel de Icaza <miguel@novell.com>
3898 * HttpResponseStream.cs, HttpRequest.cs: Fix bugs found by nunit.
3900 * HttpApplication.cs: Fix a race condition.
3902 * HttpResponseStream.cs: Fix bug, send the size of the buffer that
3903 we have so far instead of the internal size of the buffer. This
3904 will need work later to ensure we enforce the Content-Length
3905 maximum output size if set.
3907 * ServerVariablesCollection.cs: This class now inherits from
3908 NameValueCollection, we should probably review what the middle
3909 class did, there are no dependencies on it.
3911 I need to write tests to investigate if something is missing or
3912 has changed in this implementation.
3914 2005-07-27 Miguel de Icaza <miguel@novell.com>
3916 * HttpRequest.cs: No happy replies here, send a 411.
3918 2005-07-27 Chris Toshok <toshok@ximian.com>
3920 * HttpResponseHeader.cs: remove spew.
3922 2005-07-27 Chris Toshok <toshok@ximian.com>
3924 * HttpResponseHeader.cs (HttpResponseHandler..ctor): use
3925 HttpWorkerRequest.GetKnownResponseHeaderName instead of
3926 GetKnownRequestHeaderName. Fixes Response.Redirect until miguel's
3927 new HttpReponse is online.
3929 2005-07-26 Miguel de Icaza <miguel@novell.com>
3931 * HttpResponse.cs: use_chunked is now a byte-array, if not null,
3932 we use it to hold the size of the chunked so we do not have to
3933 allocate many of these.
3934 (SendSize): Helper routine to send the chunked headers.
3935 (BinaryWrite): First user of the chunked writer.
3937 * HttpApplication.cs: Do not crash if they request a Server
3938 instance, but throw a NotImplementedException.
3940 * HttpRequest.cs: fix a few problems exposed by the regression
3943 * HttpRequest.cs (Cookies): use Chris' new constructor to get the
3946 : The big Uri rework: instead of using QueryString
3947 as the population mechanism, populate an UriBuilder from the
3948 various HttpWorkerRequest methods.
3950 * HttpWorkerRequest.cs (GetProtocol): Implement in terms of
3953 * HttpResponse.cs: Pointed by Ben, Write (null) is a nop instead
3956 * HttpContext.cs: Add a couple of properties to help the 2.x
3959 * HttpResponse.cs: Make ContentLength a long, add back support for
3960 session's app_path_mod.
3961 (ApplyAppPathmodifier): put back.
3962 (End): Pass a flag to abort so we can tell the exceptions appart
3964 (WriteHeaders): Send the HTTP status.
3965 (Redirect): Implement.
3966 (Write): Use the Output property to load writer when needed.
3968 * HttpRequest.cs (ctor): Temporary use of InitFromWR, will fix
3970 (MakeInputStream): check content-length size, use routines to load
3971 the preloaded data, handle incomplete transfers.
3972 (Query): Do not insert null keys into the collection.
3974 (UrlReferer): implement.
3976 * HttpApplication.cs (RunHooks): Catch Thread.Abort, and call
3977 Thread.ResetAbort after each step.
3979 Ensure that ReleaseState is called if we ever succeed in acquiring
3980 the state even if we have stopped the request pipeline.
3982 Report file not found, directory not found.
3984 2005-07-25 Miguel de Icaza <miguel@novell.com>
3986 * HttpCookieCollection.cs: Add expiration of the cookie.
3988 * HttpRequest.cs: Add check for ContentLength, use
3989 GetPreloadedEntityBody, correct number of bytes uploaded.
3991 2005-07-21 Miguel de Icaza <miguel@novell.com>
3993 * HttpResponseHeader.cs: Our implementation of HttpResponse only
3994 uses the text headers, does not use any constants as XSP would go
3995 through a slower code path anyways.
3997 2005-07-21 Chris Toshok <toshok@ximian.com>
3999 * HttpBrowserCapabilities.cs: enable support for the W3CDomVersion
4000 and EcmaScriptVersion properties.
4002 2005-07-21 Chris Toshok <toshok@ximian.com>
4004 * HttpResponseHeader.cs: hi, i'm stupid and missed String.Replace.
4006 2005-07-21 Chris Toshok <toshok@ximian.com>
4008 * HttpResponseHeader.cs: url encode just \r and \n if they're
4009 present in the value.
4011 2005-07-20 Chris Toshok <toshok@ximian.com>
4013 * HttpPostedFile.cs: add missing ContentLength property.
4015 2005-07-20 Chris Toshok <toshok@ximian.com>
4017 * HttpCookieCollection.cs: add a new ctor that takes a string (the
4018 contents of the Cookies: header).
4020 2005-07-20 Chris Toshok <toshok@ximian.com>
4022 * HttpCookieCollection.cs: add another ctor (internal, but not
4023 obsolete, so we aren't passing a stupid HttpResponse in in order
4024 to change the behavior of the collection.)
4026 * HttpCookie.cs: init this.values in the internal ctor.
4028 2005-07-20 Chris Toshok <toshok@ximian.com>
4030 * HttpCookieCollection.cs: use "auto-fill mode" when we're dealing
4031 with an HttpResponse's cookie collection. That is, create the
4032 cookie if the consumer looks it up.
4034 2005-07-20 Miguel de Icaza <miguel@novell.com>
4036 * HttpApplication.cs: Ongoing work on pipeline, I will need to
4039 2005-07-19 Miguel de Icaza <miguel@novell.com>
4041 * HttpContext.cs (GetService): Implement. Return all of the
4042 properties that we have access to. Make HttpWorkerRequest the
4043 first match as this is the only likely reason people need to use
4046 * IntPtrStream.cs: Bring from corlib.
4048 * MultiPartContentParser.cs: use a MemoryStream as HttpInputStream
4049 will now be using IntPtrStream.
4051 * HttpRequest.cs (MakeInputStream): move code that loads the
4053 (CloseInputStream): Helper method that we will call later to
4054 ensure that we dispose properly the malloced() block.
4055 (BinaryRead): Implemented.
4057 * HttpInputStream.cs: Rewrite to be a descendant of
4060 2005-07-18 Miguel de Icaza <miguel@novell.com>
4062 * HttpApplication.cs (Modules): Add modules support and
4065 2005-07-18 Chris Toshok <toshok@ximian.com>
4067 * HttpResponseHeader.cs: initial implementation.
4069 2005-07-18 Chris Toshok <toshok@ximian.com>
4071 * HttpModuleCollection.cs (HttpModuleCollection.GetKey): add
4074 * HttpFileCollection.cs: initial implementation.
4076 2005-07-18 Chris Toshok <toshok@ximian.com>
4078 * HttpModuleCollection.cs (HttpModuleCollection.CopyTo): implement
4081 2005-07-18 Chris Toshok <toshok@ximian.com>
4083 * HttpModuleCollection.cs: initial implementation.
4085 2005-07-18 Chris Toshok <toshok@ximian.com>
4087 * HttpCacheVaryByHeaders.cs: only add the header if it's not
4088 already in the hash.
4090 * HttpCacheVaryByParams.cs: only add the param if it's not already
4093 2005-07-18 Chris Toshok <toshok@ximian.com>
4095 * HttpCookie.cs (HttpCookie+CookieNVC.Set): new override to fix an
4098 2005-07-17 Miguel de Icaza <miguel@novell.com>
4100 * HttpRequest.cs (Headers, InputStream): implemented two more
4103 * HttpInputStream.cs: All we need is a MemoryStream with writable
4106 * HttpPostedFile.cs: Use a Stream.
4108 2005-07-16 Chris Toshok <toshok@ximian.com>
4110 * HttpCacheVaryByHeaders.cs: make sure we set vary_by_unspecified
4111 = false in the custom setter.
4113 2005-07-16 Chris Toshok <toshok@ximian.com>
4115 * HttpCacheVaryByParams.cs: initial implementation.
4117 2005-07-16 Chris Toshok <toshok@ximian.com>
4119 * HttpCacheVaryByHeaders.cs: initial implementation.
4121 2005-07-15 Chris Toshok <toshok@ximian.com>
4123 * HttpCookie.cs: one more time.
4125 2005-07-15 Chris Toshok <toshok@ximian.com>
4127 * HttpCookie.cs (HttpCookie.GetCookieHeader): use
4130 2005-07-15 Chris Toshok <toshok@ximian.com>
4132 * HttpCookie.cs (HttpCookie.GetCookieHeader): implement to fix
4135 2005-07-15 Chris Toshok <toshok@ximian.com>
4137 * HttpCookieCollection.cs: initial implementation (with a couple
4138 of labeled inefficiencies.)
4140 2005-07-15 Chris Toshok <toshok@ximian.com>
4142 * HttpCookie.cs (HttpCookie.get_HasKeys): use values.HasKeys()
4143 instead of trying to be smart about it ourselves.
4145 2005-07-15 Chris Toshok <toshok@ximian.com>
4147 * HttpCookie.cs: initial implementation. we fail one unit test,
4148 but it might be due to a bug in NameValueCollection.
4150 2005-07-15 Miguel de Icaza <miguel@novell.com>
4154 2005-07-14 Miguel de Icaza <miguel@novell.com>
4156 * HttpRuntime.cs: Return a few of the values from the AppDomain
4159 Put the application shutdown process.
4161 * HttpApplicationFactory.cs (AddEvent): Fixed bug when more than
4164 (FireEvent): Do not ignore errors.
4166 * HttpContext.cs (GetAppConfig, GetConfig): First success, use
4167 ConfigurationSettings.GetConfig to get the value that QueueManager
4170 2005-07-14 Dick Porter <dick@ximian.com>
4172 * HttpPostedFile.cs: New basic implementation; needs someone to
4173 figure out what a HttpRequestStream does
4175 2005-07-13 Miguel de Icaza <miguel@novell.com>
4177 * HttpRequest.cs: More work on this file
4179 * HttpRequest.cs, HttpApplication.cs, HttpContext.cs,
4180 HttpRuntime.cs: New from scratch implementation.
4182 2005-07-01 Lluis Sanchez Gual <lluis@novell.com>
4184 * SiteMap.cs: Read provider info from the configuration files.
4186 2005-06-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4188 * HttpResponseHeader.cs: URL encode \r and \n in header values. Fixes
4191 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4193 * HttpUtility.cs: fix another stupid buglet in htmldecode.
4195 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4199 * HttpRequest.cs: use StrUtils (invariant culture).
4201 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4203 * HttpRequest.cs: use StartsWith when looking for 'multipart/form-data'.
4204 File uploading was broken since a few commits ago.
4206 2005-06-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4208 * HttpResponse.cs: ensure that the last chunk ('0\r\n\r\n') is sent
4209 even if response.Close is called before a final flush. MS/IIS fails to
4212 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4214 * HttpRequest.cs: don't print anything for unknown content types in
4215 ParseFormData. Use lowercase compare.
4217 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4219 * HttpResponse.cs: invariant love.
4221 2005-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4223 * HttpResponse.cs: avoid 1 string concat.
4224 * HttpRequest.cs: fix BinaryRead. It was totally wrong.
4226 2005-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4228 * HttpUtility.cs: don't append an extra 0 when no digits seen. Fixes
4231 2005-06-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4233 * HttpUtility.cs: the lower limit for using &#xx; encoding is 160, not
4234 128. Reset number back to 0 after use. Fixes bug #75365.
4236 2005-06-19 Svetlana Zholkovsky <svetlanaz-at-mainsoft.com>
4237 * In following classes added TARGET_J2EE or/and TARGET_JVM
4242 - CapabilitiesLoader.cs
4243 - HttpApplication.cs
4244 - HttpApplicationFactory.cs
4248 * Added Mainsoft's specific files :
4249 - GhHttpAsyncResult.jvm.cs
4251 2005-06-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4253 * HttpRequest.cs: avoid one intermediate buffer when reading the request
4254 body and fail for over limit content length when the content type is
4255 not handled as form or multipart data.
4257 2005-06-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4259 * HttpResponse.cs: fix the check in Close() so that CloseConnection is
4260 called even if there has been no final Flush. Fixes bug #75176.
4262 2005-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4264 * HttpParseException.cs:
4266 * HttpApplication.cs: updates for 1.1 service pack.
4268 2005-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4270 * HttpUtility.cs: fix InvalidCastException.
4272 2005-06-05 Kornél Pál <kornelpal@hotmail.com>
4274 * HttpWriter.cs: Fixed: _OutputFilter.Close () was called twice.
4276 2005-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4278 * HttpUtility.cs: modified HtmlDecode so that it does not need to call
4279 Int32.Parse and handles improper &# sequences. Fixes bug #74907.
4281 2005-05-26 Lluis Sanchez Gual <lluis@novell.com>
4283 * SiteMapNodeCollection.cs: Implemented missing methods. The collection
4284 does not inherit from CollectionBase any more.
4285 * SiteMapNode.cs: Track api changes.
4286 * SiteMapProvider.cs: Moved several methods to the new
4287 StaticSiteMapProvider class. Other fixes.
4288 * XmlSiteMapProvider.cs: Watch changes in the xml files. Other fixes.
4289 * SiteMapProviderCollection.cs: Minor fixes.
4290 * SiteMap.cs: Added missing event. Avoid double check lock.
4291 * StaticSiteMapProvider.cs: New class that implements some of the
4292 funtionality of SiteMapProvider.
4294 2005-05-25 Ben Maurer <bmaurer@ximian.com>
4296 * MimeTypes.cs: Remove extra spaces, they were typos. Fixes 75049.
4298 2005-05-13 Atsushi Enomoto <atsishi@ximian.com>
4300 * HttpUtility.cs : UrlDecodeToBytes() incorrectly decoded escaped
4301 characters. Patch by Kazuki Oikawa.
4303 2005-05-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4305 * HttpRuntime.cs: PlatformID.Unix.
4307 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4309 * HttpResponse.cs: cleaned up the .ctors, fix IsClientConnected and just
4310 Clear the _Headers array instead of creating a new ArrayList in
4313 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4315 * HttpResponse.cs: we had 2 variables to track client connection status.
4316 Use only one. Increase the buffer size to 28KB when writing from a file.
4318 * StaticFileHandler.cs: set the Content-Type before writing the file.
4319 This allows flushing before all the content is written.
4321 * HttpApplication.cs: use the variable instead of the property when
4322 setting the Principal for the current process.
4324 2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4326 * ReusableMemoryStream.cs:
4327 * HttpWriter.cs: keep a pool of buffers to avoid allocations.
4329 2005-05-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4331 * HttpResponse.cs: no need to save/restore the thread culture when
4332 getting the Date header. According to Ben's profiling, this is a big
4333 deal in performance.
4335 * HttpRuntime.cs: ignore exceptions that might be thrown when unloading
4338 2005-05-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4340 * HttpApplicationFactory.cs: ignore any exception thrown when invoking
4341 an application event.
4343 2005-04-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4345 * HttpBrowserCapabilities.cs: fix Win32 property.
4347 2005-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4349 * HttpResponse.cs: only add the charset when explicitly set or for
4350 well-known content types.
4352 2005-04-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4354 * HttpCachePolicy.cs:
4355 * HttpAsyncResult.cs:
4356 * HttpClientCertificate.cs:
4359 * HttpCacheVaryByHeaders.cs:
4360 * HttpBrowserCapabilities.cs:
4362 * HttpCacheVaryByParams.cs: no more warnings.
4364 * QueueManager.cs: check for local connections with minLocalFreeThreads.
4366 2005-04-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4368 * ServerVariablesCollection.cs: shuffled variables, added missing ones
4369 and call a method in HttpRequest to set the HTTP_ variables.
4371 * HttpRequest.cs: new method to add HTTP_ variables to a collection.
4373 2005-04-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4375 * HttpRequest.cs: GetAllHeaders was returning the value twice instead
4376 of 'name: value'. When HTTP_ is requested on the output, don't include
4379 2005-03-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4381 * HttpCookieCollection.cs: when adding more than one cookie with the
4382 same name, the last one is the winner.
4384 2005-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4386 * HttpRequest.cs: correctly store the value cookies in Params. Fixes
4389 2005-02-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4391 * HttpRequest.cs: Path and FilePath also change when RewritePath is
4392 called. Fixes bug #73055.
4394 2005-02-23 Sebastien Pouliot <sebastien@ximian.com>
4396 * HttpRequest.cs: Make sure that any access after a ValidateInput
4397 throws an exception if the data isn't safe.
4399 2005-02-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4401 * CapabilitiesLoader.cs: fix the path, as machine.config is now in a
4402 x.x/ directory below $PREFIX/etc/mono.
4404 2005-02-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4406 * HttpRequest.cs: fail on unicode full-width '<' and '>' too. Fixes
4407 a security report (http://secunia.com/advisories/14325) that wan't
4408 reported to us before public disclosure.
4410 2005-02-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4412 * HttpResponse.cs: send the calculated content length even when it's 0.
4415 2005-02-04 Lluis Sanchez Gual <lluis@novell.com>
4417 * HttpContext.cs: Added internal property to keep a reference to
4418 the last accessed page. Page uses this to implement PreviousPage.
4420 2005-02-02 Lluis Sanchez Gual <lluis@novell.com>
4422 * ProcessModelInfo.cs: Fixed warning.
4424 2005-02-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4426 * TraceContext.cs: writing a message without any other argument is not
4427 a warniing. Fixes bug #72017.
4429 2005-01-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4431 * HttpApplication.cs: if there are no more handlers, finish the
4432 request and ensure we call Complete on it. Now FreeTextBox 3.0 works.
4434 2004-12-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4436 * HttpRequest.cs: honor the maxRequestSize limit from machine.config.
4438 2004-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4440 * HttpApplication.cs: reread application CultureInfo as web.config
4441 might have changed. Fixes bug #62539.
4443 2004-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4445 * HttpResponse.cs: fixed ApplyAppPathModifier to insert the session ID.
4447 2004-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4449 * HttpApplicationFactory.cs: monitor changes in global.asax and bin
4450 directory and shutdown the application when that happens. Fixes bug
4453 2004-11-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4455 * ReusableMemoryStream.cs: copied from System.IO.MemoryStream and
4456 slightly modified to allow expanding the buffer for cases on which the
4457 regular MemoryStream don't allow it.
4459 * HttpWriter.cs: use the new ReusableMemoryStream and fix bug #59841.
4460 Otherwise we would have to allocate a new MemoryStream...
4462 2004-11-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4464 * HttpApplication.cs: Create() is now GetInstance().
4466 2004-11-18 Lluis Sanchez Gual <lluis@novell.com>
4468 * SiteMapNodeCollection.cs: Added missing properties.
4469 * HttpParseException.cs: Added 2.0 methods and properties.
4470 * SiteMapNode.cs: Added missing methods and properties.
4471 * SiteMapProvider.cs, XmlSiteMapProvider.cs,
4472 SiteMapProviderCollection.cs: IProvider does not exist any
4473 more, it is now ProviderBase.
4474 * ISiteMapProvider.cs: Deleted.
4475 * ParserErrorCollection.cs, ParserError.cs, SiteMapResolveEventArgs.cs:
4477 * SiteMap.cs: Minor fixes.
4479 2004-11-15 Lluis Sanchez Gual <lluis@novell.com>
4481 * SiteMapProviderCollection.cs: Fixed warning.
4482 * HttpApplication.cs: Added new 2.0 events.
4484 2004-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4486 * HttpResponse.cs: added internl SetHeadersSent.
4487 * HttpRuntime.cs: don't throw the 'headers already sent' exception
4488 if we're sending a runtime error.
4490 2004-11-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4492 * HttpApplication.cs: undo the TimeoutManager.(Add|Remove) shuffling.
4493 It causes troubles under heavy load.
4495 2004-11-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4497 * SiteMap.cs: don't lock on Type.
4498 * CapabilitiesLoader.cs: avoid 2 locks when loading data.
4500 2004-11-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4502 * HttpRequest.cs: patch by Dennis Gervalle that fixes PhysicalPath in
4503 presence of rewriting.
4505 2004-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4507 * HttpApplication.cs: don't hang if a sync step is aborted. Fixes the
4508 system.web portion of bug #68270.
4510 2004-10-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4512 * TraceContext.cs: don't cast to Page is the handler it's
4515 2004-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4517 * HttpRequest.cs: CurrentExecutionFilePath is the one that
4518 changes when Transfer or Execute are used, not FilePath.
4520 * HttpServerUtility.cs: moved form saving/restoring from
4521 Transfer to Execute, as it's needed there too. the query string is
4522 correctly set now. Fixes bug #67388.
4524 * HttpContext.cs: use SetCurrentExePath instead of SetFilePath.
4526 2004-10-03 Ben Maurer <bmaurer@ximian.com>
4528 * HttpResponse.cs: use UtcNow
4530 2004-10-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4532 * HttpResponse.cs: SuppressContent does not throw and clears all the
4533 buffered output. Fixes bug #67213.
4535 2004-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4537 * HttpUtility.cs: UrlPathEncode is static. Fixes bug #67155.
4539 2004-09-29 Ben Maurer <bmaurer@ximian.com>
4541 * HttpContext.cs, TimeoutManager: Use DateTime.UtcNow.
4543 2004-09-25 Ben Maurer <bmaurer@ximian.com>
4545 * HttpApplication.cs: Make sure requests are removed from
4546 the timeout manager. Fixes a major leak. #66751.
4548 2004-09-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4550 * HttpApplicationFactory.cs:
4551 * HttpRuntime.cs: implemented UnloadAppDomain and be ready for domain
4554 2004-09-12 Ben Maurer <bmaurer@ximian.com>
4556 * HttpContext.cs: use CallContext. It is a little bit faster.
4558 2004-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4560 * HttpStaticObjectsCollection.cs: don't share static session objects
4561 declared in the application file across the application, but on a
4562 per-session basis. Fixes bug #65446.
4564 2004-09-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4566 * HttpServerUtility.cs: in Transfer(path), don't keep form data if
4567 the transfer is done from inside a page that received a postback.
4570 2004-09-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4572 * HttpValueCollection.cs: fixed signature of ToString (). Closes bug
4575 2004-09-06 Ben Maurer <bmaurer@users.sourceforge.net>
4577 * HttpWriter.cs (.ctor): Dont create teh StreamWriter twice
4578 (Clear): Don't recreate the MemoryStream and StreamWriter
4580 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4582 * HttpApplication.cs: only add/remove to/from the timeout
4583 manager when we're in a interruptible step.
4585 2004-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4587 * TraceContext.cs: when IsEnabled has not been set, return the value
4588 from the TraceManager. Fixes bug #63469.
4590 2004-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4592 * HttpRuntime.cs: initialize the response writer when finishing a
4593 request because it cannot be queued. Under heavy load we made new
4594 requests be processed before the ones that might be queued. This is
4597 * QueueManager.cs: instead of queueing/dequeuing separately, we now
4598 have a single method that does everything needed to decide which one
4599 will be the next request processed.
4601 2004-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4603 * HttpRuntime.cs: removed initializations to null in .cctor. Prevent
4604 other requests from avoiding the lock if they are received before the
4605 configuration system is inited. Ensure that the queue manager is not
4606 null before using it (it can be null while the first request is being
4609 2004-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4611 * HttpServerUtility.cs: ensure we have a full virtual path for the
4612 request being executed.
4614 2004-08-02 Duncan Mak <duncan@ximian.com>
4616 * ApplicationShutdownReason.cs: Fixed typos.
4618 * HttpCookieMode.cs:
4619 * HttpDataTransferMode.cs:
4620 * HttpRequestPriority.cs: Added [Serializable] attribute.
4622 2004-08-02 Duncan Mak <duncan@ximian.com>
4624 * ApplicationShutdownReason.cs:
4625 * HttpCookieMode.cs:
4626 * HttpDataTransferMode.cs:
4627 * HttpRequestPriority.cs: Added 2.0 enumerations.
4629 2004-07-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4631 * HttpApplication.cs: the file not found might be a dependency.
4633 2004-07-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4635 * HttpCookie.cs: use invariant when formatting expires date. Fixes bug
4638 2004-07-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4640 * HttpApplication.cs: don't keep the session around if we got it from
4641 the context. Fixes bug #61232.
4643 2004-07-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4645 * HttpUtility.cs: fixed stupid bug in UrlDecode from bytes. Closes bug
4648 2004-07-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4650 * TraceContext.cs: added internal HaveTrace property whose
4651 value is true when the page has a Trace attribute.
4653 2004-06-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4655 * TraceData.cs: fixed <br> output. Closes bug #60181.
4657 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4659 * HttpUtility.cs: check for control characters in the string to encode
4660 or decode and return the same string if there are none.
4662 2004-06-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4664 * HttpApplication.cs: change/restore the IPrincipal in their own methods
4665 and make them internal.
4667 2004-06-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4669 * HttpContext.cs: reverting Pedro's patch and sending mail with test
4672 2004-06-09 Pedro Martnez Juli <yoros@wanadoo.es>
4674 * HttpContext: User property returns its own "user" value because
4675 the context can walk through different Threads. When "User" property
4676 is changed, change "Thread.CurrentPrincipal" too.
4678 2004-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4680 * HttpRequest.cs: removed extra ^Ms and fixed style of last patch.
4682 2004-06-08 Alon Gazit <along@mainsoft.com>
4684 * HttpRequest.cs: Add a patch for HttpRequest.ServerVariables.
4686 2004-06-07 Sebastien Pouliot <sebastien@ximian.com>
4688 * HttpContext.cs: User property now get/set Thread.CurrentPrincipal.
4689 Fix (at least partially) #59683.
4691 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4693 * HttpRequest.cs: reverting patch from Alon Gazit. Uses the above file
4694 that doesn't compile.
4696 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4698 * TraceData.cs: fixes nullref in an application that relies on
4699 r ["Message"] not being null. Closes bug #59679.
4701 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4703 * HttpCachePolicy.cs: implemented SetAllowResponseInBrowserHistory.
4705 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4707 * HttpRuntime.cs: implemented a 5 simple properties that were TODOs.
4709 2004-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4711 * HttpBrowserCapabilities.cs: implemented ClrVersion and GetClrVersions.
4712 * HttpException.cs: removed MonoTODO.
4714 2004-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4716 * TraceContext.cs: don't check if HttpRuntime.TraceManager
4717 is enabled when writing.
4719 2004-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4721 * HttpRequest.cs: added ClientTarget internal property.
4723 2004-06-03 Lluis Sanchez Gual <lluis@ximian.com>
4725 * HttpApplication.cs: Clear the http handler list after releasing the
4728 2004-06-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4730 * TraceData.cs: html-encode the messages written to the trace. Fixes
4733 2004-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4735 * HttpWorkerRequest.cs: the hashtables are now case-insensitive. Thanks
4738 2004-05-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4740 * HttpRequest.cs: nullify _sRequestRootVirtualDir and baseVirtualDir
4741 when SetFilePath is called. This way the cached values are reset and
4742 get the right value in case someone (namely SessionStateModule +
4743 cookieless session) changes the FilePath after the property cached its
4744 value. Fixes bug #59364.
4746 2004-05-27 Patrik Torstensson <totte@hiddenpeaks.com>
4748 * HttpApplicationFactory.cs: Added SignalError (still todo)
4750 2004-05-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4752 * HttpResponse.cs: remove hardcoded "HTTP/1.0" version that kept
4753 chunked encoding disabled. Fixed chunked suffix and end. Send the
4754 'lastchunk' marked when in the final Flush even if the content length
4755 is 0. This makes mod-mono-server work fine with chunked encoding.
4757 * HttpRuntime.cs: Set the _firstRequest* variables to true
4758 earlier. TraceContext don't take any parameter now.
4760 * TraceManager.cs: don't need a context. Use GetAppConfig.
4762 2004-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4764 * HttpApplication.cs: set culture/uiculture from configuration and
4765 restore it after each step. Fixes bug #52851.
4767 2004-05-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4769 * HttpUtility.cs: use lower case in UrlEncode like MS does. Delay
4770 entities hashtable creation until it's really needed.
4772 2004-05-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4774 * HttpApplicationFactory.cs: if no module matches the name found for a
4775 possible event, ignore it. Fixes bug #58542.
4777 2004-05-16 Patrik Torstensson <totte@hiddenpeaks.com>
4779 * HttpRuntime (Init): Removed old todo
4780 * HttApplication : Implemented IHttpHandlerFactory recycling
4782 2004-04-28 Patrik Torstensson
4784 * HttpApplicationState.cs: Performance, usage of ReaderWriter lock,
4787 2004-04-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4789 * HttpUtility.cs: return null in HtmlDecode for null input instead of
4790 throwing an exception. Patch by Jan Jaros (bug #57083).
4792 2004-04-10 Vladimir Vukicevic <vladimir@pobox.com>
4794 * TimeoutManager.cs: Swap the order of initialization of contexts
4795 and the Timer, to avoid race condition of CheckTimeouts being called
4796 before contexts gets initialized.
4798 2004-03-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4800 * HttpRequestStream.cs: patch from Jan Jaros that fixes bug #56080.
4801 Now the posted file content does not have the boundaries and headers
4804 2004-03-25 Alon Gazit <along@mainsoft.com>
4806 * HttpRequest.cs: fix ValidateCookieCollection() to prevent
4807 InvalidCastException.
4809 2004-03-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4811 * HttpValueCollection.cs: don't UrlDecode cookies. Fixes bug #55254.
4813 2004-03-01 Larry Ewing <lewing@ximian.com>
4815 * HttpUtility.cs: fix UrlEncodeToBytes count check.
4817 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4819 * HttpServerUtility.cs:
4820 * HttpUtility.cs: added some checks for null. Fixed UrlPathEncode (bug
4823 2004-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4825 * HttpUtility.cs: fixed length check. Closes bug #54201.
4826 Thanks to Michal Moskal. Use MemoryStream instead of an ArrayList when
4829 2004-02-11 Jackson Harper <jackson@ximian.com>
4831 * TraceData.cs: Use ToString for cookie/header/var name values so
4832 null is handled properly.
4834 2004-02-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4836 * HttpApplication.cs: ApplicationState is inited by the factory so,
4837 return that value in the property. when we use the context Session,
4838 cache it in the instance field.
4840 * HttpApplicationFactory.cs: fixed target Type for the event when
4841 hooking application and module events. Initialize application
4842 and session scope objects. Fixes non-aplication events hook up.
4844 * HttpStaticObjectsCollection.cs: added StaticItem and delay the
4845 creation of the objects until they are requested.
4847 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4849 * HttpApplicationFactory.cs: fixlet for session events hook.
4851 2004-01-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4853 * HttpApplicationFactory.cs: attach all events from Type and BaseType
4854 at the same time. Fixes bug #53454.
4856 2004-01-27 Jackson Harper <jackson@ximian.com>
4858 * HttpCachePolicy.cs: varybyparams::GetResponseHeader can return
4859 null now, dont hadd the header if it does.
4860 * HttpCacheVaryByParams.cs: Return null if there are no items.
4862 2004-01-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4864 * HttpCachePolicy.cs: it's not public.
4865 * HttpRuntime.cs: wait for requests before disposing the queue.
4867 2004-01-15 Jackson Harper <jackson@ximian.com>
4869 * HttpCachePolicy.cs: Fix typo causing varyby params headers to be
4870 created when they shouldn't be.
4872 2004-01-14 Jackson Harper <jackson@ximian.com>
4874 * TraceData.cs: Fix some typos in the output text. Fix control
4875 position when adding controls recursively.
4877 2004-01-14 Jackson Harper <jackson@ximian.com>
4879 * HttpCachePolicy.cs: Expose duration and sliding properties.
4881 2004-01-14 Jackson Harper <jackson@ximian.com>
4883 * HttpCachePolicy.cs: Add an event that is fired when the
4884 cacheability is updated. The response uses this to determine
4885 whether or not it needs to cache itself.
4886 * HttpResponse.cs: When the cacheability is updated either create
4887 or dispose of the cached raw response based on whether or not we
4888 wil need it. This allows output caching to be controlled
4891 2004-01-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4893 * HttpContext.cs: add setter for ConfigTimeout.
4894 * HttpException.cs: added Description property and HTML encode some
4897 * HttpRequest.cs: support request validation.
4899 * HttpRequestValidationException.cs: added message and description.
4901 * HttpServerUtility.cs: implemented ScriptTimeout.
4903 2004-01-11 Jackson Harper <jackson@ximian.com>
4905 * TraceManager.cs: Dont crash if there is no trace config element.
4907 2004-01-11 Jackson Harper <jackson@ximian.com>
4909 * HttpRequest.cs: Add property for determining if the request is
4912 2004-01-10 Jackson Harper <jackson@ximian.com>
4914 * TraceContext.cs: Handle tracing when it is enabled in the config
4915 file but not on the page.
4916 * TraceManager.cs: Get settings from the configuration object.
4917 * HttpRuntime.cs: Create trace manager in the first request start
4918 so it can get configuration settings.
4920 2004-01-10 Jackson Harper <jackson@ximian.com>
4922 * TraceContext.cs: Save the request path in the trace data.
4923 * TraceData.cs: Add RequestPath property, make some rendering
4924 methods internal static so the TraceHandler can use them.
4925 * TraceManager.cs: Expose trace data, add a method for clearing
4928 2004-01-10 Jackson Harper <jackson@ximian.com>
4930 * HttpRuntime.cs: Add trace manager
4931 * TraceManager.cs: New class for handling trace configuration and
4932 storing trace data objects.
4933 * TraceContext.cs: Save trace data to the trace manager. Fix typo.
4935 2004-01-10 Jackson Harper <jackson@ximian.com>
4937 * TraceData.cs: New class for storing trace data. Data is stored
4938 here instead of the trace context so it can be saved and accessed
4939 from the trace handler.
4940 * TraceContext.cs: Save data in the TraceData object, let the
4941 trace data object handle the rendering.
4943 2004-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4945 * HttpRequest.cs: use ContentEncoding for QueryString. Fixes bug #52577.
4946 Thanks to Jan Jaros (mono-bug@jerryweb.info).
4948 * HttpRequestValidationException.cs: fix comment.
4950 2004-01-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4952 * HttpException.cs: default to error 500. Fixes bug #52623.
4954 2004-01-04 Jackson Harper <jackson@ximian.com>
4956 * TraceContext.cs: Store and render trace info times. Also render
4957 cookie sizes. Remove debug code.
4959 2004-01-04 Jackson Harper <jackson@ximian.com>
4961 * HttpResponse.cs: Set the cached response date header so it can
4963 * HttpResponseHeader.cs: Let values be set so we can update cached
4964 response header values.
4966 2004-01-04 Jackson Harper <jackson@ximian.com>
4968 * HttpResponse.cs: Implement RemoveOutputCacheItem.
4970 2004-01-04 Jackson Harper <jackson@ximian.com>
4972 * HttpCachePolicy.cs: Add internal method to get the vary by custom string
4973 * HttpCacheVaryByHeaders.cs: Add internal method to get the header names.
4975 2004-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4977 * HttpRuntime.cs: implemented MachineConfigurationDirectory,
4979 2004-1-1 Alon Gazit <along@mainsoft.com>
4980 * HttpWriter.cs: add check in Write() in order to prevent
4981 NullReferenceException.
4983 2004-1-1 Alon Gazit <along@mainsoft.com>
4984 * HttpResponse.cs: implemented ExpiresAbsolute and Expires.
4986 2003-12-18 Jackson Harper <jackson@ximian.com>
4988 * TraceContext.cs: Write () methods are not warnings.
4990 2003-12-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
4992 * HttpBrowserCapabilities.cs: added GetClrVersions ().
4993 * HttpCachePolicy.cs: added SetAllowResponseInBrowserHistory ().
4994 * HttpContext.cs: added set_Current and RewritePath (s, s, s) for 1.1.
4995 * HttpRequest.cs: added set_ContentType, SetPathInfo and ValidateInput.
4996 * HttpRequestValidationException.cs: new class for 1.1
4997 * HttpResponse.cs: added RedirectLocation.
4998 * HttpRuntime.cs: added UnloadAppDomain.
4999 * HttpServerUtility.cs: Execute (s, t, b) is internal for < 1.2
5000 * HttpUtility.cs: copied UrlPathEncode from HttpServerUtility.
5001 * HttpWorkerRequest.cs: added [ComVisible] and made the ctor public.
5003 2003-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5005 * HttpContext.cs: implemented IsCustomErrorEnabled and
5006 IsDebuggingEnabled. Added internal ErrorPage property.
5008 * HttpRuntime.cs: on error, check if we have a custom error page enabled
5009 to handle it and redirect.
5011 * HttpResponse.cs: added RedirectCustomError (), which actually does
5012 the redirection to the error page.
5014 2003-12-16 Jackson Harper <jackson@ximian.com>
5016 * TraceContext.cs: Render all the data, and the stylesheet.
5018 2003-12-16 Jackson Harper <jackson@ximian.com>
5020 * TraceContext.cs: Add incomplete render method.
5022 2003-12-16 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5024 * CapabilitiesLoader.cs: loads browser detection and capabilities data
5025 from browscap.ini file by Gary J. Keith.
5027 * HttpBrowserCapabilities.cs: removed almost all TODOs.
5029 * HttpRequest.cs: fixed Browser property.
5031 2003-12-15 Jackson Harper <jackson@ximian.com>
5033 * TraceContext.cs: Initial implementation of storing data.
5034 * HttpContext.cs: Create and expose a trace object.
5036 2003-12-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5038 * HttpApplication.cs: ThreadAbortException is ok on Redirect.
5039 * HttpContext.cs: added TimeoutPossible property.
5040 * HttpResponse.cs: throw ThreadAbortException if End () is called within
5041 a step in which is possible to timeout.
5045 2003-12-04 Jackson Harper <jackson@ximian.com>
5047 * HttpRequest.cs: Cleanup method.
5049 2003-12-04 Jackson Harper <jackson@ximian.com>
5051 * HttpValueCollection.cs: Allow blank value names. Posting
5052 <blank>=SomeValue is valid. And occurs if a radio button does
5053 not have its name set.
5055 2003-12-03 Jackson Harper <jackson@ximian.com>
5057 * HttpResponse.cs: Actually apply an app path modifier in
5058 ApplyAppPathModifer and add a method to set the app path modifier.
5059 * HttpRequest.cs: Add utility method for setting a request header.
5061 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5063 * HttpApplication.cs: handle FileNotFound and DirectoryNotFound
5064 exceptions when creating the handler to generate a better error page.
5066 * HttpException.cs: display the http_code if available. Changed all
5067 \n by \r\n to make the hidden stack trace readable.
5069 * StaticFileHandler.cs: don't send the real path in th eerror.
5071 2003-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5073 * HttpContext.cs: updated GetConfig and GetAppConfig to new API.
5075 * HttpResponse.cs: separate initialization of the HttpWriter, as it
5076 tries to read configuration settings while the config. system is not
5077 available (ie, before the first request).
5079 * HttpRuntime.cs: delayed queueManager and response writer
5080 initialization until the configuration system is working.
5082 2003-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5084 * HttpRuntime.cs: added request queue handling.
5086 * QueueManager.cs: simple request queue.
5088 * TimeoutManager.cs: added some locks to prevent the enumerator used in
5089 CheckTimeouts to be out of synch.
5091 2003-11-25 Jackson Harper <jackson@ximian.com>
5093 * HttpStaticObjectsCollection.cs: Add methods for serialization
5094 and conversion to/from byte arrays.
5096 2003-11-21 Jackson Harper <jackson@ximian.com>
5098 * HttpResponse.cs: When caching data set the content length in the
5099 cached repsonse so that only that amount will be written back to
5100 the client. Add method to write a range of binary data.
5101 * HttpCacheVaryByParams.cs: Add method to retrieve param names.
5103 2003-11-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5105 * HttpApplication.cs:
5107 * HttpRuntime.cs: add timeout handling.
5108 * TimeoutManager.cs: new class that takes care of aborting threads on
5111 2003-11-19 Jackson Harper <jackson@ximian.com>
5113 * HttpWriter.cs: Use a constant for the buffer size so the cache
5114 can get the buffer size. Add method to get the buffer.
5115 * HttpResponse.cs: Methods for getting data to cache, and setting
5116 vars from the cache.
5117 * HttpCachePolicy.cs: Expose a pages cache expire time.
5119 2003-11-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5122 * HttpWriter.cs: some fixes to allow closing a response stream without
5125 2003-11-13 Jackson Harper <jackson@ximian.com>
5127 * HttpCachePolicy.cs: Make sure cacheability and maxage get
5128 set. Add method to set Http response header data
5129 * HttpCacheVaryByParams.cs: Add method to create a response header.
5130 * HttpCacheability.cs: Add ServerAndPrivate and ServerAndNoCache.
5131 * HttpResponse.cs: Set cache headers.
5133 2003-11-11 Ben Maurer <bmaurer@users.sourceforge.net>
5135 * HttpModuleCollection.cs (GetKey): Recursion, again!
5137 2003-11-11 Ben Maurer <bmaurer@users.sourceforge.net>
5139 * HttpClientCertificate.cs (ValidUntil): recursion!
5141 2003-11-08 Ben Maurer <bmaurer@users.sourceforge.net>
5143 * SiteMapNode.cs (GetDataSourceView): Implement.
5144 * SiteMapProvider.cs: Typo fixing.
5145 * XmlSiteMapProvider.cs: We shouldnt resolve here.
5147 2003-11-08 Ben Maurer <bmaurer@users.sourceforge.net>
5149 * SiteMap.cs (Init): implement a hack that doesnt need the config
5150 stuff. Should do that later.
5151 * SiteMapNodeCollection (OnValidate): Fix recursion.
5152 * SiteMapProvider.cs: We dont implement some culture stuff work
5153 around it. Fix typo.
5154 * XmlSiteMapProvider.cs: Added.
5156 2003-11-07 Ben Maurer <bmaurer@users.sourceforge.net>
5158 * ISiteMapProvider.cs:
5161 * SiteMapNodeCollection.cs:
5162 * SiteMapProvider.cs:
5163 * SiteMapProviderCollection.cs: V2 sitemap related stuff.
5165 2003-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5167 * HttpRequest.cs: don't attempt to read more bytes than specified
5170 2003-11-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5175 * HttpValueCollection.cs: encoding fixes/updates.
5177 * HttpWriter.cs: when updating the encoding, flush the existing stream.
5180 2003-11-04 Ben Maurer <bmaurer@users.sourceforge.net>
5182 * HttpContext.cs (IsCustomErrorEnabled): dont throw exception, just
5183 return false (which makes sense, as the custom errors *arent* enabled;
5185 * HttpResponseStream.cs: you actually can write with len = 0
5187 2003-11-03 Jackson Harper <jackson@ximian.com>
5189 * HttpResponse.cs (ContentEncoding): Throw
5190 ArgumentNullException. Patch by Yaron Shkop.
5192 2003-10-30 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
5194 * HttpMultipartContentParser.cs : Quick fix for cygwin build.
5195 CSC complains that constant char cannot be casted as byte.
5197 2003-10-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5199 * HttpApplication.cs: added AssemblyLocation property.
5201 2003-10-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5203 * HttpApplicationFactory.cs: use NoParamsInvoker.
5204 * HttpRequest.cs: support request filters.
5205 * HttpRequestStream.cs: mono-stylized and added new Set method.
5207 * NoParamsInvoker.cs: proxy class to invoke user-provided methods
5208 without parameters that are invoked by EventHandlers.
5210 2003-10-13 Lluis Sanchez Gual <lluis@ximian.com>
5212 * HttpResponse.cs: Changed harcoded switch to en-US culture to a switch
5213 to invariant culture.
5215 2003-10-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5218 * HttpServerUtility.cs: change the response writer in Execute. Thanks
5219 to Rich Alimi <rich@velvetsea.net> for noticing this.
5221 2003-10-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5223 * HttpApplicationFactory.cs: support for wiring up events without
5226 2003-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5228 * HttpUtility.cs: small memory usage reduction.
5230 2003-10-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5232 * HttpApplication.cs: pass the Uri, not the file path to
5233 when looking for a handler.
5235 2003-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5237 * HttpRequest.cs: small fix needed when reading big POST data.
5239 2003-09-04 Lluis Sanchez Gual <lluis@ximian.com>
5241 * HttpRequest.cs: Url property: use GetLocalAddress() to get the address
5242 (this will get the address from the request headers).
5244 2003-09-04 Lluis Sanchez Gual <lluis@ximian.com>
5246 * HttpServerUtility.cs: In Transfer(), preserve the query string if
5249 2003-08-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5251 * HttpApplication.cs: ensure we do all the EndRequest steps. Don't
5252 filter the output on error.
5254 * HttpResponse.cs: modified DoFilter to allow bypassing filtering.
5256 2003-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5258 * HttpApplication.cs: when the request is completed or an
5259 error happens, execute all the delegates attached to EndRequest, not
5260 only the last one. This makes xsp/test/authtest work again.
5262 * HttpMethodNotAllowedHandler.cs: fixed description for http
5265 2003-08-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5267 * HttpRequest.cs: quick way of checking that the path is within the
5268 root for the application. Thanks to Johannes for reporting.
5270 * HttpRuntime.cs: use the status code from teh exception when it'ss a
5273 * StaticFileHandler.cs: forbidden is 403.
5275 2003-08-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5277 * HttpServerUtility.cs: fixed path and query. Path by Rich Alimi
5278 <rich@velvetsea.net>.
5280 2003-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5282 * HttpException.cs: make the unhandled error more like the MS one.
5283 * HttpRuntime.cs: set a 500 error code on unhandled exceptions.
5285 2003-08-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5287 * HttpResponse.cs: flush headers when the body length is 0.
5288 * StaticFileHandler.cs: added If-Modified-Since handling patch slightly
5289 modified from the original by Piers Haken <piersh@friskit.com>.
5291 2003-08-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5293 * HttpResponse.cs: another patch from totte and me. This one prevents
5294 writing output if the client have disconnected and filters the data
5295 when there's a non-final Flush in the middle of the process.
5297 2003-08-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5299 * HttpApplication.cs: fixed typos. Closes bug #44197.
5301 2003-08-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5303 * HttpApplication.cs:
5304 * HttpApplicationFactory.cs: fix duplicate application OnStart events.
5306 Patch by Patrik Torstensson.
5308 2003-08-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5310 * HttpApplicationFactory.cs: use the correct Delegate.CreateDelegate
5311 overload. The previous one only admits static methods.
5313 2003-08-01 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
5315 * ProcessModelInfo.cs: Fixed signature
5317 2003-07-30 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
5319 * WebCategoryAttribute.cs: Implemented localization
5320 * WebSysDescriptionAttribute.cs: Implemented localization
5322 2003-07-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5324 * HttpRuntime.cs: also clear the headers that may have been set upon
5325 error processing the request.
5327 2003-07-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5329 * HttpResponseStreamProxy.cs: reformatted. Fixed infinite recursion in
5332 * HttpWriter.cs: flush the filter after writing.
5334 2003-07-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5336 * HttpWriter.cs: avoid duplicating the MemoryStream byte buffer.
5338 2003-07-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5340 * HttpContext.cs: Session doesn't have a setter.
5342 * HttpResponse.cs: Request is private.
5344 2003-07-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5346 * HttpRequest.cs: fixed Headers property. It was getting known headers
5347 values instead of known headers names.
5349 2003-07-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5351 * HttpApplication.cs: prevent nullref if an error happens before context
5353 * HttpException.cs: small fix in the stack trace sent.
5354 * HttpUtility.cs: the lock is not needed.
5356 2003-06-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5358 * HttpRequest.cs: added REMOTE_PORT.
5359 * HttpValueCollection.cs: fixed bug #45490.
5361 2003-05-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5363 * HttpApplication.cs:
5364 * HttpApplicationFactory.cs: fire application start and session
5367 2003-05-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5369 * HttpException.cs: encode as HTML the inner exception that
5370 is appended as a comment at the end of error pages.
5372 2003-05-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5374 * HttpWriter.cs: don't do anything in Flush. Fixes #42249.
5376 2003-05-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5378 * HtmlizedException.cs: added more virtual methods.
5380 * HttpException.cs: some work on the output when there's a source
5383 2003-04-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5385 * HtmlizedException.cs: simplified to cope with the new interface.
5387 * HttpApplicationFactory.cs: use the application file parser to get the
5390 * HttpException.cs: small changes. Needs some more work on
5393 2003-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5395 * HttpRequest.cs: fixed Url property.
5397 2003-03-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5399 * HtmlizedException.cs:
5400 * HttpException.cs: display the correct line number in error messages.
5402 2003-03-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5404 * HttpCachePolicy.cs: implemented all TODOs.
5405 * HttpRequestStream.cs: make it internal.
5407 2003-03-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5409 * HttpContext.cs: implemented RewritePath in other way.
5410 * HttpRequest.cs: removed SetPhysicalPath and added SetForm.
5411 * HttpServerUtility.cs: implemented Transfer (string, bool).
5413 2003-03-16 Daniel Lopez Ridruejo <daniel @ rawbyte.com>
5414 * HttpContext.cs : Implemented RewritePath
5415 * HttpRequest.cs : Added internal function SetPhysicalPath
5417 2003-03-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5419 * HttpServerUtility.cs: implemented Transfer ().
5421 2003-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5423 * HttpRuntime.cs: Cache no longer have a Dispose method.
5425 * HttpServerUtility.cs: removed MonoTODO.
5427 2003-03-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5429 * HttpHelper.cs: store the values in an ArrayList to get them in correct
5432 2003-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5434 * HttpApplicationFactory.cs: Global.asax takes precedence over
5435 global.asax if it exists.
5437 * HttpRequest.cs: use allowCrossAppMapping in MapPath.
5439 2003-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5441 * HttpApplication.cs: CreateHttpHandler is now internal.
5443 * HttpRequest.cs: allow setting QueryStringRaw, which
5444 invalidates the data obtained from the previous value. Added internal
5447 * HttpServerUtility.cs: implemented Execute and GetLastError.
5449 2003-02-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5451 * HttpServerUtility.cs: style.
5453 2003-02-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5455 * HttpApplication.cs: only execute the EndRequest step on error
5456 condition or request marked as completed. This prevent page events from
5457 being called when, for example, the url authorization module forbids
5460 2003-02-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5462 * HttpRequest.cs: implemented the indexer.
5464 2003-02-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5466 * HtmlizedException.cs: base class for exceptions that makes it easy to
5467 generate error pages.
5469 * HttpException.cs: improved error displaying.
5471 * HttpRuntime.cs: removed debugging output.
5473 2003-02-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5475 * HttpApplication.cs: display the error instead of hanging when we get
5476 any error before the last step of the request.
5478 2003-02-04 Tim Haynes <thaynes@openlinksw.com>
5480 * HttpApplicationFactory.cs: fixed HttpRuntime.Close() to decrement
5483 2003-01-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5485 * HttpRequest.cs: added BaseVirtualDir property and use it in MapPath.
5487 2003-01-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5489 * HttpRequest.cs: implemented CurrentExecutionFilePath.
5491 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5493 * HttpApplication.cs: keep _lasterror if no context. Attach
5494 application events *after* modules initialization (if not, User is not
5495 set when the user handler is called).
5497 * HttpApplicationFactory.cs: made all methods related to
5498 AttachEvents static. I will fix OnStart/OnEnd for application and
5501 * HttpRequest.cs: don't initialize cookies twice.
5503 2003-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5506 (ApplyAppPathModifiers): return the root directory for "".
5508 2003-01-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5510 * HttpUtility.cs: fixed HtmlDecode to avoid ArgumentOutOfRangeException.
5512 2003-01-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5514 * HttpApplication.cs: added new state to handle default authentication.
5516 2003-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5518 * HttpContext.cs: removed hack to get the User.
5520 2003-01-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5522 * HttpUtility.cs: fixed bug #36038. Thanks to juancri@tagnet.org for
5523 reporting the bug and how to fix it.
5525 2002-12-20 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5527 * HttpCookie.cs: send 'expires' in the header.
5529 2002-12-19 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5531 * HttpValueCollection.cs: patch from Botjan Vizin
5532 <bostjan.vizin@siol.net> that implements ToString (bool).
5534 2002-12-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5536 * HttpApplicationFactory.cs: add the context as parameter when building
5537 the application Type.
5539 * HttpCookie.cs: new internal constructor.
5540 * HttpCookieCollection.cs: new internal method to make a cookie expire.
5542 * HttpRequest.cs: MapPath fixes.
5543 * HttpResponse.cs: implemented ApplyAppPathModifier.
5544 * HttpRuntime.cs: fixed typo in AppDomainAppVirtualPath.
5546 2002-12-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5548 * HttpContext.cs: hack to create a default user when there's no one.
5549 Implemented GetConfig (string).
5551 * HttpRequest.cs: fixes to MapPath (string).
5553 2002-12-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5555 * HttpRuntime.cs: avoid nulls and exception when getting resource
5558 * StaticFileHandler.cs: added file name to error message.
5560 2002-12-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5562 * HttpResponse.cs: avoid sending chunked content for HTTP/1.1.
5564 2002-12-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5566 * HttpApplicationFactory.cs: get the events from the application class,
5567 fire Application/Session Start/End and add the others as application
5570 2002-11-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5572 * HttpApplicationFactory.cs: compile global.asax file if it exists.
5574 2002-11-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5576 * HttpRequest.cs: provide a default Browser until we detect it.
5578 (End): do not close the connection here.
5579 (Flush (bool)): send the headers when, for example, Redirect () is
5582 2002-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5584 * HttpException.cs: simple error output.
5586 2002-11-12 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5588 * HttpApplication.cs: style.
5589 * HttpException.cs: style.
5590 * HttpRuntime.cs: only flush the response if there are no errors.
5591 Otherwise, write an error output.
5592 * HttpWriter.cs: change Unicode to UTF8.
5594 2002-11-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5596 * HttpApplication.cs: don't begin the request using ExecuteNextAsync
5597 (it fails to work on NetServ).
5599 * HttpWorkerRequest.cs: typo.
5601 2002-11-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5603 * HttpValueCollection.cs: the value may contain trailing '=' as it is
5604 UrlEncoded. Don't split name=value based on '='.
5606 2002-11-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5608 * HttpCookie.cs: made GetCookieHeader internal.
5610 * HttpRequest.cs: get cookies from request.
5612 * HttpResponse.cs: send cookies. Implemented
5613 AddFileDependencies (). Added check for _Writer == null in Flush
5614 (Patrik ;-). Clear the content if HEAD or SupressContent == true.
5615 Removed redirect hack used in old server.
5617 2002-10-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5619 * HttpRequest.cs: fixed GetRawContent (). Now it only tries to read at
5620 most ContentLength bytes.
5622 * HttpResponse.cs: now it sends the headers. Added
5623 X-Powered-By header :-).
5625 * HttpRuntime.cs: fixed typo.
5627 * HttpValueCollection.cs: cosmetic changes.
5629 2002-10-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5631 * HttpApplication.cs: reenabled a few lines of code
5632 (ThreadPool already fixed).
5637 * HttpValueCollection.cs:
5638 * HttpWriter.cs: Use WebEncoding.Encoding.
5640 2002-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5642 * HttpWriter.cs: changed encoding of the writer from Unicode to UTF8.
5643 This fixes sending bytes and allows mixing byte with chars.
5645 2002-10-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5647 * HttpResponse.cs: implemented WriteFile methods.
5648 * MimeTypes.cs: removed duplicated entries.
5650 2002-10-24 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5652 * HttpResponse.cs: don't throw exception in a couple of
5653 methods not yet implemented.
5655 2002-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5657 * HttpApplication.cs: fixed type and handle factories when creating
5658 IHttpHandler for a request.
5660 2002-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5662 * HttpApplication.cs: use handlers from configuration.
5663 * HttpContext.cs: get handlers from ConfigurationSettings.
5665 2002-10-02 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5667 * HttpMethodNotAllowedHandler.cs:
5669 * StaticFileHandler.cs: Modified file.
5671 * HttpUtility.cs: implemented all missing methods.
5674 2002-09-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5676 * System.Web/HttpApplication.cs: use the static file handler.
5677 * System.Web/HttpForbiddenHandler.cs: handler to forbid access.
5678 * System.Web/HttpMethodNotAllowedHandler.cs: handler for method not
5681 * System.Web/HttpUtility.cs: finished all UrlDecode methods.
5682 * System.Web/MimeTypes.cs: map from file extension to MIME type.
5683 * System.Web/StaticFileHandler.cs: serves static files
5685 2002-09-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5687 * System.Web/HttpApplication.cs:
5688 * System.Web/HttpApplicationFactory.cs:
5689 * System.Web/HttpRequest.cs:
5690 * System.Web/HttpRuntime.cs: we are now able to compile pages and use
5691 HttpApplication, HttpRuntime and SimpleWorkerRequest.
5693 2002-09-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5695 * HttpApplication.cs: added some missing methods.
5696 * HttpApplicationFactory.cs: get event handlers for the application.
5697 * HttpAsyncResult.cs: little fixes.
5698 * HttpRequest.cs: make Encoding work even with no worker request.
5700 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5702 * HttpWorkerRequest.cs: mcs doesn't go crazy. It's just me, that forgot
5703 to add HttpMapPath to the list file...
5705 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5707 * HttpWorkerRequest.cs: fixes compilation with mcs. I will add a bug
5708 report when i get a test case.
5710 2002-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5712 * HttpApplicationFactory.cs:
5713 * HttpCachePolicy.cs:
5714 * HttpResponseHeader.cs:
5715 * HttpResponseStream.cs:
5716 * HttpResponseStreamProxy.cs:
5717 * HttpValueCollection.cs: misc. fixes based on class status page.
5719 * IHttpMapPath.cs: New file.
5721 * HttpRequest.cs: implemented ContentEncoding.
5722 * HttpWorkerRequest.cs: mono-stylized and implemented
5723 SendResponseFromMemory.
5725 2002-08-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5727 * HttpContext.cs: reformatted.
5728 * HttpStaticObjectsCollection.cs: implemented GetEnumertor, CopyTo and
5731 2002-08-05 Patrik Torstensson <ptorsten@hotmail.com>
5733 * HttpApplication.cs: Implemented a state machine to allow handling of
5734 HttpModules and HttpHandlers. Implementation of async handlers.
5736 * HttpApplicationFactory.cs: Factory for creating HttpApplication
5737 instances, including caching.
5739 * HttpRuntime.cs: Usage of the new HttpApplicationFactory to get a
5740 application instance to execute requests in and implementation of
5741 request execution (still no request queue).
5743 * HttpAsyncResult.cs: New file to handle async module results.
5745 * HttpRequest.cs: Change signature of Dispose
5746 * HttpResponse.cs: new internal method allowing filtering to happen
5747 during the request flow in the state machine.
5749 2002-07-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5751 * HttpApplication.cs: events were not being initialized.
5753 2002-07-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5755 * ProcessModelInfo.cs: fixed compilation.
5757 2002-07-25 Tim Coleman <tim@timcoleman.com>
5758 * ProcessModelInfo.cs:
5760 * HttpParseException.cs:
5761 * HttpCompileException.cs:
5762 * HttpUnhandledException.cs:
5763 Internal constructors added to these
5765 2002-07-24 Tim Coleman <tim@timcoleman.com>
5767 Fix constructor, reference to shutdownreason.
5769 2002-07-24 Tim Coleman <tim@timcoleman.com>
5770 * HttpCachePolicy.cs:
5771 Added stubbs to this class.
5772 * HttpCacheability.cs:
5773 * HttpCacheRevalidation.cs:
5774 * HttpValidationStatus.cs:
5775 * ProcessShutdownReason.cs:
5778 Reorder the enumerations (and in some cases make
5779 one-based) in order to agree with the .NET
5780 implementation, based on the class status page.
5782 Implementation of this class.
5784 2002-07-23 Tim Coleman <tim@timcoleman.com>
5785 * HttpCompileException.cs:
5786 * HttpParseException.cs:
5787 * HttpUnhandledException.cs:
5789 * HttpApplication.cs:
5790 * HttpBrowserCapabilities.cs:
5791 Added missing methods stubbs and attributes based
5792 on the class status page. Also reformatted some
5793 source for consistency.
5795 2002-07-23 Tim Coleman <tim@timcoleman.com>
5796 * HttpUtility.cs: Moved entities hashtable into main
5797 class as a static object, so we don't instantiate
5798 a new one every time. Also put the hashtable
5799 building into a lock block.
5801 2002-07-22 Tim Coleman <tim@timcoleman.com>
5802 * HttpUtility.cs: Cleanup of the code, implementation
5803 of HtmlDecode/HtmlEncode functions
5805 2002-07-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5807 * HttpResponse.cs: quick&dirty hack to make redirection work. Should
5808 be out of there once we have SimpleWorkerRequest.
5810 2002-07-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5812 * HttpUtility.cs: little typo, big headache.
5814 2002-07-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5816 * HttpRuntime.cs: don't throw NotImplemented in a couple of methods.
5818 2002-06-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5820 * System.Web/HttpResponse.cs:
5822 Fixes based on class status page:
5824 - Add attributes (DefaultEvent, ParseChildren).
5826 - Explicitly implement some interfaces (IPostBackDataHandler
5827 and IPostBackEventHandler).
5828 - Implemented some missing methods.
5830 2002-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5833 (Session): return null instead of throwing an exception.
5836 (HttpMethod): return RequestType if not set.
5837 (GetRawContent): return QueryString if we don't have a
5840 * HttpUtility.cs: fixed Decode and Encode.
5842 2002-06-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5844 * HttpApplication.cs:
5845 * HttpContext.cs: added System.Web.SessionState namespace.
5847 * HttpSessionState.cs: removed. It is under
5848 System.Web.SessionState.
5850 2002-06-10 Duncan Mak <duncan@ximian.com>
5852 * HttpBrowserCapabilities.cs (BackgroundSounds): Fixed typo.
5854 2002-06-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5856 * HttpRequest.cs: implemented Browser property.
5858 2002-06-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
5860 * HttpBrowserCapabilities.cs: stubbed out.
5862 2002-05-18 Miguel de Icaza <miguel@ximian.com>
5864 * HttpRuntime.cs: Reformat file.
5866 2002-05-07 Duncan Mak <duncan@ximian.com>
5868 * HttpBrowserCapabilities.cs: Added, replacing
5869 HttpBrowserCapabilites because of typo.
5871 * HttpBrowserCapabilites.cs: Removed, replaced by above.
5873 * HttpRequest.cs (Browser): Fixed typo.
5875 2002-04-12 Patrik Torstensson <patrik.torstensson@labs2.com>
5877 * HttpApplication.cs: Minor updates
5878 * HttpApplicationState.cs: Ready.
5879 * HttpClientCertificate.cs: Signature updates
5880 * HttpValueCollection.cs: ready
5881 * HttpStaticObjectsCollection.cs: ready
5882 * HttpResponseHeader.cs: made internal only
5883 * HttpResponse.cs: Signature updates
5884 * HttpPostedFile.cs: ready
5885 * HttpCacheVaryByHeaders.cs: ready (except communication to policy)
5886 * HttpCacheVaryByParams.cs: ready (except communication to policy)
5888 System.Web is now over 60% ready..
5890 2002-04-11 Patrik Torstensson <patrik.torstensson@labs2.com>
5892 * HttpException.cs: 95% ready, only windows dependent code left
5893 * HttpFileCollection.cs: Finished.
5894 * HttpRequest.cs: Minor fixes and fixed signature problems
5895 * HttpResponse.cs: Implementation of missing methods and signature problems
5896 * HttpResponseHeader.cs: Fixed signature problems
5897 * HttpRuntime.cs: Fixed signature problems
5898 * HttpServerUtility.cs: Added support for HttpApplication
5899 * HttpSessionState.cs: Fixed signature issues
5900 * HttpUtility.cs: fixed signature issues
5901 * HttpValueCollection.cs: Support for cookie parsing and fixed signature issues
5902 * HttpWorkerRequest.cs: Fixed small signature issue
5903 * HttpWriter.cs: Fixed signature issue
5904 * HttpApplication.cs: Basic implementation
5905 * HttpApplicationState.cs: Small fixes to support major change comming up
5906 * HttpBrowserCapabilities.cs: Added Type method
5907 * HttpClientCertificate.cs: Almost ready, needs to parse certificate.
5908 * HttpContext.cs: Fixed signature issues and added last methods.
5909 * HttpCookie.cs: Full implementation
5910 * HttpCookieCollection.cs: Full implementation
5911 * TraceContext.cs: Methods implemented.
5912 * HttpPostedFile.cs: Placeholder
5913 * HttpStaticObjectsCollection.cs: Placeholder
5914 * HttpModuleCollection.cs: Ready, will be used during the major revamp.
5916 * Fixed a number of other small signature problems also (class status page)
5919 2002-04-10 Patrik Torstensson <patrik.torstensson@labs2.com>
5921 * HttpWorkerRequest.EndOfSendNotification.cs Removed (included in WorkerRequest)
5922 * Checkin of all new files (noted in last changenote)
5924 2002-04-10 Patrik Torstensson <patrik.torstensson@labs2.com>
5926 * HttpContext.cs: First implementation (basic support, few methods left to impl)
5927 * HttpException.cs: Partial implementation (basic support)
5928 * HttpHelper.cs: Header parse helper, used by runtime (non public)
5929 * HttpRequest.cs: Implementation (all methods there, not all fully impl)
5930 * HttpRequestStream.cs: Full implementation
5931 * HttpResponse.cs: Partial implementation(almost all methods)
5932 * HttpResponseHeader.cs: Header helper
5933 * HttpResponseStream.cs: Full implementation - Response stream support
5934 * HttpResponseStreamProxy.cs: Implementation - filter support
5935 * HttpRuntime.cs: Rewrite to support one IHttpModule (use for testing the runtime)
5936 * HttpServerUtility.cs: Implemented usage of HttpContext for methods
5937 and moved encoding functions to HttpUtility.
5939 * HttpUtility.cs: Added encoding/decoding functions from HttpServerUtility and
5940 added the Attribute encoding functions.
5942 * HttpValueCollection.cs: Implementation.
5943 * HttpWorkerRequest.cs: Rewrite and implementation of all methods (ready)
5944 * HttpWriter.cs: Implementation (with filter support)
5946 * HttpFileCollection: Added dummy class (placeholder)
5947 * HttpApplication.cs: Added dummy class (placeholder)
5948 * HttpApplicationState.cs: Added dummy class (placeholder)
5949 * HttpBrowserCapabilities.cs: Added dummy class (placeholder)
5950 * HtttpCachePolicy.cs: Added dummy class (placeholder)
5951 * HttpClientCertificate.cs: Added dummy class (placeholder)
5952 * HttpSessionState.cs: Added dummy class (placeholder)
5953 * TraceContext.cs: Added dummy class (placeholder)
5956 2002/04/10 Nick Drochak <ndrochak@gol.com>
5958 * HttpServerUtility.cs: Fix build breaker.
5960 2002-03-28 Wictor Wiln <wictor@iBizkit.se>
5962 * HttpServerUtils.cs : Added some more functionality
5964 2002-03-28 Martin Baulig <martin@gnome.org>
5966 * HttpServerUtils.cs (UrlDecode): You cannot implicitly cast a
5967 char to a string, use ToString() instead.
5969 2002-03-16 Gaurav Vaish <gavish@iitk.ac.in>
5971 * WebCategoryAttribute.cs
5972 : Added private attribute.
5974 2002-03-16 Gaurav Vaish <gavish@iitk.ac.in>
5976 * HttpRuntime.cs : Stubbed methods for
5977 FormatStringResource(...) in agreement with the various
5978 overloads available at String.Format(...)
5980 2002-01-08 Gaurav Vaish <gavish@iitk.ac.in>
5982 * TODOAttribute.cs : Added, as an internal class to the assembly
5984 2002-01-03 Nick Drochak <ndrochak@gol.com>
5986 * HttpRuntime.cs: remove uneeded exception variable from catch and
5987 initialize remaining instance members to avoid compile warnings
5989 2002-01-02 Nick Drochak <ndrochak@gol.com>
5991 * HttpRuntime.cs: fix spelling error/variable name change.
5993 2001-12-18 Gaurav Vaish <gvaish@iitk.ac.in>
5995 * HttpRuntime.cs : Initial implementation
5997 2001-08-29 Bob Smith <bob@thestuff.net>
5999 * HttpWorkerRequest.cs: Partial Implementation.
6001 2001-08-16 Bob Smith <bob@thestuff.net>
6003 * HttpCookieCollection.cs, HttpCookie.cs: Bug fixes.
6005 2001-08-09 Bob Smith <bob@thestuff.net>
6007 * BeginEventHandler.cs: Implemented.
6008 * EndEventHandler.cs: Implemented.
6009 * HttpCacheability.cs: Implemented.
6010 * HttpCacheRevalidation.cs: Implemented.
6011 * HttpCacheValidateHandler.cs: Implemented.
6012 * HttpCookieCollection.cs: Implemented.
6013 * HttpCookie.cs: Implemented.
6014 * HttpValidationStatus.cs: Implemented.
6015 * HttpWorkerRequest.EndOfSendNotification.cs: Implemented.
6016 * IHttpAsyncHandler.cs: Implemented.
6017 * IHttpHandler.cs: Implemented.
6018 * IHttpHandlerFactory.cs: Implemented.
6019 * IHttpModule.cs: Implemented.
6020 * ProcessShutdownReason.cs: Implemented.
6021 * ProcessStatus.cs: Implemented.
6022 * TraceMode.cs: Implemented.