* PageRouteHandler.cs: implemented
2010-06-05 Marek Habersack <[email protected]>
* UrlRoutingModule.cs: 4.0 doesn't do the UrlRouting.axd magic, it
simply remaps the current handler to the one obtained from the
route.
2010-06-05 Marek Habersack <[email protected]>
* TemplateControlCompiler.cs: expression evaluation results are
wrapped in a Convert.ConvertTo* call or a typecast.
* RouteValueExpressionBuilder.cs: implemented
* RouteUrlExpressionBuilder.cs: added missing custom attributes
svn path=/trunk/mcs/; revision=158497
* HttpResponse.cs: implemented the following 4.0 methods:
RedirectPermanent, RedirectToRoute, RedirectToRoutePermanent and
RemoveOutputCacheItem.
2010-05-06 Marek Habersack <[email protected]>
* RouteCollection.cs: GetVirtualPath throws ArgumentException
when named route is not found in the collection.
2010-05-06 Marek Habersack <[email protected]>
* OutputCacheModule.cs: added a 2.0 internal property to return
the internal provider used in this profile.
* OutputCache.cs: added internal RemoveFromProvider method to
remove items from the indicated provider.
svn path=/trunk/mcs/; revision=156933
* RouteValueDictionary.cs: do not process type fields in
RouteValueDictionary (object)
* RouteCollection.cs: GetRouteData throws an exception if Request
is null in the passed context.
Added Ignore* and MapPageRoute* 4.0 APIs
* RequestContext.cs: 4.0 API update
* PatternParser.cs: match parser rewrite to encompass 4.0 bug
fixes. We don't emulate some of the pre-4.0 routing bugs anymore.
svn path=/trunk/mcs/; revision=156695
* HttpRequest.cs: PathInfo returns an empty string when worker
request is absent or its GetPathInfo method returns a null. Patch
from Tiaan <[email protected]>, thanks!
2009-11-23 Marek Habersack <[email protected]>
* Route.cs: GetRouteData throws NotImplementedException only when
pathInfo for the current request is a non-empty string. Patch from
Tiaan <[email protected]>, thanks!
svn path=/trunk/mcs/; revision=146732
* RouteTest.cs: added two tests for empty and null route URLs (bug
#537751)
2009-09-09 Marek Habersack <[email protected]>
* Route.cs: when Url is set to null, create a parser for empty
string. Fixes bug #537751
* PatternParser.cs: Parse allows for null/empty URLs. Fixes bug
#537751
svn path=/trunk/mcs/; revision=141630
* UrlRoutingModule.cs: store original request path in
PostResolveRequestCache and restore it in
PostMapRequestHandler. Fixes bug #537089
svn path=/trunk/mcs/; revision=141471
* Route.cs: GetRouteData adds contents of its DataTokens
dictionary to the returned RouteData.DataTokens dictionary. Fixes
bug #523330. Patch from [email protected], thanks!
svn path=/trunk/mcs/; revision=140273
* RouteCollectionTest.cs, RouteTest.cs: added new tests for
GetVirtualPath
2009-06-25 Marek Habersack <[email protected]>
* PatternParser.cs: parameter name lookups must be
case-insensitive.
Null and empty (string) parameters are skipped when building query
part of the action path.
2009-06-25 Marek Habersack <[email protected]>
* LinqDataSource.cs: make ContextType not throw an exception when
ContextTypeName is not set, but rather return a null in that
case.
2009-06-25 Marek Habersack <[email protected]>
* MetaTableTest.cs: new GetVirtualPath tests.
* DynamicDataRouteTest.cs: added tests for route.Defaults
modifications on class init.
* DynamicDataRouteHandlerTest.cs: added
2009-06-25 Marek Habersack <[email protected]>
* MetaTable.cs: Fixes to make tests succeed.
* MetaModel.cs: added the GetDataFieldAttributes method for
retrieving attributes associated with data type/field.
Fixes to make tests succeed.
* MetaColumn.cs: refactoring - use
MetaModel.GetDataFieldAttributes instead of the local version.
* DynamicDataRouteHandler.cs: implemented GetRequestContext,
GetRequestMetaTable.
* DynamicDataRoute.cs: when the Action and Table properties are
set before one of GetVirtualPath or GetRouteData methods are
called for the first time, a check is made whether the Defaults
collection exists and whether it contains entries for Action and
Table. Initialization code makes sure those entries are inserted
into the dictionary in those cases.
svn path=/trunk/mcs/; revision=136875
* RouteValueDictionaryExtensions.cs: do not compile if
SYSTEMCORE_DEP is not defined
* PatternParser.cs: if SYSTEMCORE_DEP is not defined, do not
compile parts which require RouteValueDictionaryExtensions.
2009-06-16 Marek Habersack <[email protected]>
* Makefile (LIB_MCS_FLAGS): define SYSTEMCORE_DEP
2009-06-16 Marek Habersack <[email protected]>
* DynamicDataManager.cs, DynamicDataExtensions.cs: use new
DataBoundControl.DataSourceObject instead of
InternalGetDataSource
2009-06-16 Marek Habersack <[email protected]>
* Makefile: warn if the 4.0 assembly is compiled without
System.Core
svn path=/trunk/mcs/; revision=136222
* net_4_0_System.Web.Routing.dll.sources: added. In the 4.0
profile all classes are compiled into System.Web,
System.Web.Routing becomes an empty assembly.
2009-06-16 Marek Habersack <[email protected]>
* net_4_0_System.Web.Abstractions.dll.sources: added. In the 4.0
profile all classes are compiled into System.Web,
System.Web.Abstractions becomes an empty assembly.
2009-06-16 Marek Habersack <[email protected]>
* Decorated all classes with the TypeForwardedFrom attribute for
the 4.0 profile.
2009-06-16 Marek Habersack <[email protected]>
* Decorated all classes with the TypeForwardedFrom attribute for
the 4.0 profile.
2009-06-16 Marek Habersack <[email protected]>
* net_4_0_System.Web.dll.sources: added. System.Web.Routing and
System.Web.Abstractions are part of System.Web.dll in the 4.0
profile.
svn path=/trunk/mcs/; revision=136182
* RouteValueDictionaryExtensions.cs: if both values are strings in
Has (string, value), compare them case-insensitively. Fixes bug
#502555
2009-06-04 Marek Habersack <[email protected]>
* RouteCollectionTest.cs: added two more test cases to the bug
#502555 test. They check whether url generation matches defaults
case-insensitively.
svn path=/trunk/mcs/; revision=135438
* Makefile (LIB_MCS_FLAGS): added support for defining the DEBUG
symbol on compiler command line.
2009-05-27 Marek Habersack <[email protected]>
* PatternParser.cs: if Match is passed an empty path, do not
attempt to match the Url segments, skip to defaults matching right
away.
2009-05-27 Marek Habersack <[email protected]>
* RouteCollectionTest.cs: added a test for routes from
NerdDinner.
svn path=/trunk/mcs/; revision=134877
* UrlPattern.cs: removed - replaced by PatternParser below.
* RouteValueDictionaryExtensions.cs: added - some shortcuts for
using RouteValueDictionary in PatternParser
* Route.cs: use the new PatternParser.
Factored out ProcessConstraint into ProcessConstraintInternal so
that the latter can be used by the PatternParser class.
Added parameter checks in ProcessConstraint.
* PatternTokenType.cs: added
* PatternToken.cs: added a helper class for the pattern parser.
* PatternParser.cs: added. New implementation of url
parser/matcher/generator which fixes all URL isues known so
far. Fixes bug #504378
2009-05-25 Marek Habersack <[email protected]>
* System.Web.Routing_test.dll.sources: added
System.Web.Routing/AssertExtensions.cs
* System.Web.Routing.dll.sources: added
System.Web.Routing/PatternParser.cs
System.Web.Routing/PatternToken.cs
System.Web.Routing/PatternTokenType.cs
System.Web.Routing/RouteValueDictionaryExtensions.cs
removed
System.Web.Routing/UrlPattern.cs
2009-05-25 Marek Habersack <[email protected]>
* RouteTest.cs: added several tests for GetVirtualPath,
GetRouteData, ProcessConstraint and refactored some tests.
* RouteCollectionTest.cs: added several tests for GetVirtualPath
* AssertExtensions.cs: added some methods to make code testing for
exception throws look nicer.
svn path=/trunk/mcs/; revision=134682
* RouteCollection.cs: when there is no named route, try the current
route before going through the list. The known values (default or
not) for the current route are merged with the values provided when
attempting to match.
Example:
Html.RouteLink ("Text", new { page = 5 });
when the current path is /some/path-here and the route is:
routes.MapRoute("RouteName", "some/{one}-{two}/{page}",
new { controller = "Some", action = "Index", page = 1});
svn path=/trunk/mcs/; revision=134272
* UrlPattern.cs: The
value comparison is done case-insensitively when the dictionary
values are strings. Fixes bug #502555
svn path=/trunk/mcs/; revision=133997
* UrlPattern.cs: TrySubstitute performs substitution trimming. If
a segment would be set to a default value and all of its following
segments as well, it will be omitted from the generated URL.
svn path=/trunk/mcs/; revision=133990
* UrlPattern.cs: TrySubstitute treats defaults differently
now. They are not consulted when checking if the passed values
match the pattern, but only when substituting the values. Fixes
bug #502555
2009-05-11 Marek Habersack <[email protected]>
* RouteCollectionTest.cs: added test for bug #502555
svn path=/trunk/mcs/; revision=133904
* UrlPattern.cs: Match adds defaults values should some keys be
missing from the url. Fixes bug #500739
* Route.cs: a small GetRouteData loop optimization
2009-05-05 Marek Habersack <[email protected]>
* RouteTest.cs: added test for bug #500739
svn path=/trunk/mcs/; revision=133577
* UrlPattern.cs: TrySubstitute now gets the collection of default
values and uses it to replace url segments instead of failing when
the passed values collection is missing a segment.
* RouteCollection.cs: check if name is null or empty, not just
null in GetVirtualPath
* Route.cs: url.TrySubstitute should be passed the defaults
collection when called from GetVirtualPath
svn path=/trunk/mcs/; revision=127259
* UrlPattern.cs: use the defaults collection when matching a path
and segments are missing.
* RouteCollection.cs: GetRouteData must use VirtualPathProvider
to check for virtual path existence.
svn path=/trunk/mcs/; revision=126891
* UrlPattern.cs : fixed possible out-of-range case ("tableName/" in
DynamicData).
* RouteTest.cs :
add one more case that used to cause out-of-range error.
svn path=/trunk/mcs/; revision=116843
* RouteValueDictionary.cs : its string comparison is case
insensitive.
* RouteValueDictionaryTest.cs : test for case-insensitive comparison.
svn path=/trunk/mcs/; revision=116277
* UrlPattern.cs : fixed pattern match for such string that has
suffix. (DynamicData uses it.)
* RouteTest.cs : added test for DynamicData default pattern.
svn path=/trunk/mcs/; revision=116234
* UrlRoutingModule.cs : implement PostMapRequestHandler() and
PostResolveRequestCache() to work correctly in order.
Now it should practically work.
* UrlRoutingModuleTest.cs , TestStubTypes.cs : added test for
pipeline processing of requests.
svn path=/trunk/mcs/; revision=115424