Commit Graph
75 Commits
Author SHA1 Message Date
Miguel de Icaza 60fa2525fb [build] the csproj files can now do a full class libraries build 2014-05-25 00:47:09 -04:00
Miguel de Icaza 3599b97b57 [build] Fresh new csproj files based on the updated build system. 2014-05-23 17:15:53 -04:00
Miguel de Icaza d79280674b Refreshed the CSProj files to use the new output build directory 2014-04-18 18:15:35 -04:00
Daniel Lo Nigro 627e902c8d Fix routing of CatchAll tokens 2014-02-24 10:11:47 -08:00
Pablo Ruiz Garcia 6128710873 Fixed xamarin bug #13708: routing constraints should be trated as 'convertible to string' in order to be compat with MS.NET 2013-08-05 15:20:31 +02:00
Marek Safar b888cf5f04 Update csproj files 2013-07-02 13:45:15 +02:00
Pablo Ruiz Garcia 106c059d9f Fixed @grendello's comments regarding styling and a few other gotchas by my side. 2013-05-07 17:49:26 +02:00
Pablo Ruiz Garcia 6c70b38e17 Refactor of Route's GetVirtualPath implementation based on System.Web.Http.Routing code in order to fix a few incompatibilities between our implementation and the one at ms.net 2013-05-06 00:31:44 +02:00
Marek Safar cf650fb3fb Update 4.5 bcl solution files 2013-02-21 17:25:06 +01:00
Marek Safar 78318771d5 Update csproj files 2013-02-07 16:34:23 +01:00
Daniel Lo Nigro eb76e79bd9 Fix Xamarin bug #9133 - Routes should be case insensitive. 2012-12-26 13:24:26 +11:00
Daniel Lo Nigro b52f3f5468 Fix bug 9116 (https://bugzilla.xamarin.com/show_bug.cgi?id=9116)
Need to use .Equals() for comparison instead of the "!=" operator, as != will do a reference comparison in the case of boxed value types.
2012-12-23 16:20:40 +11:00
Pablo Ruiz Garcia 3ab03bc826 Fix style to adhere to mono's coding guidelines. 2012-11-29 17:00:21 +01:00
Pablo Ruiz Garcia 3ce598d0a1 Fixed routes with CatchAll argument, in order to make them succesfully
match requests with empty (or null) catch-all portion.

Included a couple of unit-tests which pass both here, and on ms.net land.

License: This patch is under MIT/X11 license.
2012-11-29 15:46:49 +01:00
Pablo Ruiz Garcia 00b8180184 One line typo bug which passed unoticed on previous commit. 2012-11-29 05:21:37 +01:00
Pablo Ruiz Garcia 4c066fa286 Fixes xamarin-bug #8646: Inconsistencies with MS.NET on Sys.Web.Routing logic.
This patch fixes some inconsistencies on Sys.Web.Routing between our implementation
and the one found on MS.NET.. Both relating to URL Generation code inside of
Route.GetVirtualPath().

1) When defining a route with a parameter with both a default value and some
constraint, Route.GetVirtualPath() fails to match if no parameter values is specified.

2) HttpMethodConstraint, does not take into account RouteDirection.UrlGeneration.

See: https://bugzilla.xamarin.com/show_bug.cgi?id=8646
License: This patch is under MIT/X11 license.
2012-11-29 01:33:55 +01:00
QuickJack ef6752a5c4 Fixes a number of warnings in System.Web.dll 2012-07-03 20:38:53 +02:00
Marek Safar 2d2796f07b Fix System.Core reference in VS projects 2012-06-26 13:26:56 +01:00
Marek Safar 8074a7d31e Update csproj files 2012-04-05 15:46:25 +01:00
Marek Safar 76dac96b4b Cleanup some assembly attributes 2012-02-17 12:37:25 +00:00
Marek Safar 88fde5a568 Add VS project files for test project 2012-02-10 14:56:23 +00:00
Marek Safar 91d40d754d Update class library csproj files 2012-02-09 11:25:18 +00:00
Marek Safar 3ecb5142f6 Introduce separate .net 4.5 profile 2011-09-23 19:37:04 +01:00
Bassam Tabbara f012d0b344 Fixed regression in System.Web.Routing caused by 62b047a. Value and constraint where switched when evaluating regex route constraints. 2011-08-07 23:18:18 -07:00
Bassam Tabbara 95525291bf [asp.net] Fix for bug #667513. Implement support for PathInfo in Route.GetRouteData 2011-03-16 01:10:55 +01:00
Marek Safar 2ba6a8925b Fixed few unit tests build issues 2011-03-08 14:10:16 +00:00
Marek Habersack 62b047ae5b [asp.net] Fix for bug #671753. Route.GetVirtualPath must take ambient values into account. 2011-02-25 13:06:51 +01:00
Miguel de Icaza 38253abf8c Add solution files 2011-02-12 22:09:49 -05:00
Marek Habersack d66b7f5543 [asp.net,routing] Fix for bug #651966. Regular expression constraints must be treated as absolute regexps. 2011-01-22 12:43:14 +01:00
Marek Habersack d3a5fe689a [asp.net] Make StopRoutingHandler actually stop the routing instead of throwing an exception
Patch from Damir Simunic <[email protected]>, thanks!
2011-01-14 21:30:11 +01:00
Marek Habersack 69461167e7 [asp.net,routing] Fix for bug #651593. Don't match all-literal routes for URLs with excessive segments. 2010-11-05 11:36:49 +01:00
Marek Habersack 967d70e50b [asp.net,routing] Fix for bug #648901. Matching engine must ignore trailing slash in the URLs. 2010-10-26 02:00:21 +02:00
Marek Habersack 96b54e28f0 2010-06-05 Marek Habersack <[email protected]>
* 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
2010-06-04 22:47:30 +00:00
Marek Habersack 4bcb71eec8 WIP: page routing
svn path=/trunk/mcs/; revision=158496
2010-06-04 22:47:15 +00:00
Marek Habersack 7d005d6a34 2010-05-06 Marek Habersack <[email protected]>
* 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
2010-05-07 23:02:46 +00:00
Marek Habersack 549b54027c 2010-05-05 Marek Habersack <[email protected]>
* UrlRoutingModule.cs: PostMapRequestHandler is obsolete in 4.0

svn path=/trunk/mcs/; revision=156696
2010-05-05 01:04:39 +00:00
Marek Habersack cb4836ed8f 2010-05-05 Marek Habersack <[email protected]>
* 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
2010-05-05 00:43:57 +00:00
Marek Habersack 43813f347e Fixed a typo
svn path=/trunk/mcs/; revision=151613
2010-02-12 13:46:16 +00:00
Marek Habersack ee4231b4c1 2010-02-12 Marek Habersack <[email protected]>
* AssemblyTargetedPatchBandAttribute.cs: added

2010-02-12  Marek Habersack  <[email protected]>

	* AssemblyInfo.cs: added 4.0 attributes

svn path=/trunk/mcs/; revision=151583
2010-02-12 01:55:29 +00:00
Marek Habersack e5ce3fc558 2009-11-23 Marek Habersack <[email protected]>
* 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
2009-11-23 16:24:04 +00:00
Marek Habersack 193779c1f6 2009-11-09 Marek Habersack <[email protected]>
* RouteCollection.cs: GetVirtualPath doesn't append trailing slash
	to application path blindly anymore. Fixes bug #553022

svn path=/trunk/mcs/; revision=145740
2009-11-09 14:21:09 +00:00
Marek Habersack aa7314ad76 2009-09-09 Marek Habersack <[email protected]>
* 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
2009-09-09 19:49:50 +00:00
Marek Habersack 93d477f370 2009-09-08 Marek Habersack <[email protected]>
* UrlRoutingModule.cs: store original request path in
	PostResolveRequestCache and restore it in
	PostMapRequestHandler. Fixes bug #537089

svn path=/trunk/mcs/; revision=141471
2009-09-07 22:22:18 +00:00
Marek Habersack a8cfd91279 2009-08-19 Marek Habersack <[email protected]>
* 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
2009-08-19 18:37:10 +00:00
Marek Habersack adba453b57 2009-06-25 Marek Habersack <[email protected]>
* 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
2009-06-25 19:35:20 +00:00
Marek Habersack 9743d97ec8 2009-06-16 Marek Habersack <[email protected]>
* 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
2009-06-16 13:48:30 +00:00
Marek Habersack c3de939907 2009-06-16 Marek Habersack <[email protected]>
* 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
2009-06-15 23:57:37 +00:00
Marek Safar 6f1d5e5874 More work on 4.0 profile
svn path=/trunk/mcs/; revision=135454
2009-06-04 16:56:17 +00:00
Marek Habersack fed07c12c0 2009-06-04 Marek Habersack <[email protected]>
* 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
2009-06-04 15:31:02 +00:00
Marek Habersack 9de8e1df99 2009-05-27 Marek Habersack <[email protected]>
* 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
2009-05-27 20:53:58 +00:00