Commit Graph

40898 Commits

Author SHA1 Message Date
Ryan Nowak 66a7c2e389 Revert "Enabling ViewEngine and Localization tests which use expanders. The issues are fixed in the mono beta 4.0.4."
This reverts commit 9915ea3809.
2015-08-31 08:55:31 -07:00
Ryan Nowak dadee80aa8 Add FieldName to model binding context
Adds a new property, FieldName, to ModelBindingContext. The FieldName is
the name of whatever code-element is being bound, regardless of what
model-prefix is in use.

This is needed for cases like the Header model binder. We always want to
use the property/parameter name and we don't care about model prefixes.
2015-08-31 08:10:03 -07:00
Chris R 0bb77764d3 Use the new HttpContext.Features API. 2015-08-31 07:51:36 -07:00
Chris R 195e06970a Use new HttpContext.Features API. 2015-08-31 07:31:43 -07:00
Chris R adae42b66f Use new HttpContext.Features API. 2015-08-31 07:22:34 -07:00
Chris R 56315c441c Use new HttpContext.Features API. 2015-08-31 06:46:18 -07:00
Chris R f475e53ad2 #367 Add HttpContext.Features, move Get/SetFeature. Take 1. 2015-08-30 21:55:22 -07:00
Chris R e0e2ff6825 Fix doc comment error. 2015-08-30 19:43:51 -07:00
sornaks 9915ea3809 Enabling ViewEngine and Localization tests which use expanders. The issues are fixed in the mono beta 4.0.4. 2015-08-29 16:55:14 -07:00
Chris R f2db0d1483 React to string[] -> StringValues changes. 2015-08-28 16:36:19 -07:00
Hao Kung 7a464fd80e React to options 2015-08-28 16:19:54 -07:00
Ajay Bhargav Baaskaran 39dda01f47 [Fixes #484] Attributes parsed correctly when newlines precedes attributes 2015-08-28 14:59:24 -07:00
Chris R 7b11506cc0 React to string[] -> StringValue changes. 2015-08-28 14:43:26 -07:00
Chris R 821f470bb5 React to string[] -> StringValues changes. 2015-08-28 14:40:15 -07:00
Chris R e84a707160 React to the string[] -> StringValues changes. 2015-08-28 14:36:58 -07:00
Chris R c8f918681a React to string[] -> StringValue changes. 2015-08-28 14:25:01 -07:00
Chris R 7bb59a287c React to string[] -> StringValues changes. 2015-08-28 14:23:17 -07:00
Chris R 92185a1c27 React to string[] -> StringValues changes. 2015-08-28 14:16:49 -07:00
Chris R 803ec38073 React to string[] -> StringValues changes. 2015-08-28 12:59:00 -07:00
Pranav K a2d58ba4ea Reacting to globbing changes 2015-08-28 12:50:29 -07:00
Chris R 1f596abfe5 React to string[] -> StringValues changes. 2015-08-28 12:43:12 -07:00
Chris R d448c6e389 React to string[] -> StringValues changes. 2015-08-28 12:27:17 -07:00
Brice Lambson b95f67733d React to aspnet/EntityFramework#2948 2015-08-28 12:11:30 -07:00
Chris R 59b44a4c24 Move *CommaSeperatedValues APIs from IHeaderDictionary to extension. 2015-08-28 12:11:14 -07:00
Chris R 456277fe1d #361 Introduce StringValues to replace string[] usage. 2015-08-28 12:11:13 -07:00
Sornakumar Sundararajan e8043f92e5 Issue #2757 - Adding Order to exception filters so that they are executed in the same order irrespective of the platform. 2015-08-28 11:22:11 -07:00
Ajay Bhargav Baaskaran 4fbaea2463 [Fixes #2931] AttributeRoute does not replace existing route values with null 2015-08-28 11:11:03 -07:00
Chris R 28268ee64b Fix IStartupFilter complier break in ApplicationServices test. 2015-08-28 09:57:11 -07:00
Ryan Nowak 15687ab80a Fix #343 - Avoid going to disk when reading the form
This change tries to avoid looking up the TEMP directory for most reads of
the form data. We'll now only hit the disk when necessary.
2015-08-28 09:41:12 -07:00
Pranav K c0d4981452 * Avoid lazyily evaluating IRazorCompilationService in
VirtualPathRazorPageFactory
* Cleanup comments on the lifetime of Razor services.
2015-08-27 17:08:18 -07:00
sornaks ddc74e5396 Issue #2727 - Introducing PhysicalFilePathResult and VirtualFilePathResult instead of FilePathResult to handle app and physical file system paths separately. 2015-08-27 10:23:23 -07:00
Stephen Halter 40ca61b640 Merge branch 'release' into dev 2015-08-26 16:32:19 -07:00
Stephen Halter 2642c84bf9 Don't automatically set Content-Length: 0 in some circumstances
- When in response to a HEAD Request
- For 101, 204, 205 and 304 responses
- For non keep-alive connections
2015-08-26 16:16:35 -07:00
Hao Kung a4144caedd React to options 2015-08-26 16:05:51 -07:00
Ryan Nowak d74e81186b Use a copy on write list for items in Resource Filters
We allocate a separate list for model-binding related objects when we
create the resource filter contexts, and these lists then live the
lifetime of the request. These *may* be modified by user code in
filters as a supported feature, but rarely are changed in practice.

This change adds a simple CopyOnWriteList implementation to reduce the
amount of copying that's actually done.
2015-08-26 13:29:38 -07:00
N. Taylor Mullen 581d738732 Try beta 2015-08-26 12:52:30 -07:00
N. Taylor Mullen 0d9d01381c Test 2015-08-26 12:51:19 -07:00
N. Taylor Mullen 53b72f65f4 Force mono to specific version.
- Mono just pushed a change to their alpha feed that looks to have broken several MVC tests. As an interim fix specifying the version will ensure MVC builds on travis.
2015-08-26 12:48:35 -07:00
glennc 870b6c9bb5 Set beta7 version numbers. 2015-08-26 11:18:21 -07:00
Pranav K 6615972162 Adding System.Text.Encoding to project.json to unblock CI 2015-08-26 10:11:27 -07:00
Pranav K ef24402f1d Reacting to Mvc renames 2015-08-26 09:43:35 -07:00
Stephen Halter 69759231ff Set Content-Length: 0 when an AppFunc completes without a write
- Previously an incomplete chunked response would be written instead.
- Add test to verify Content-Length: 0 is set automatically.
- Add test to verify HTTP/1.0 keep-alive isn't used if no Content-Length
  is set for the response.
- Add tests to verify errors are handled properly after chunked writes.

#173
2015-08-25 23:17:41 -07:00
N. Taylor Mullen cc5c0d6cbe Update `HelperResult` to take in an async func.
- The corresponding Razor change results in `HelperResult`s being rendered with async lambdas.
- This change enables `TagHelper`s and other async code to exist inside of `HelperResult` blocks.
- Added test to validate Templates (they generate `HelperResult`s) can utilize `TagHelper`s correctly.
- Rename `RazorPage`s `RenderBodyDelegate` to `RenderBodyDelegateAsync`.

aspnet/Razor#494
2015-08-25 22:37:17 -07:00
Pranav K 3041dee86d Modify RazorPreCompileModule to use an instance of memory cache specific
to the application's target framework and configuration.
2015-08-25 22:26:16 -07:00
Pranav K 44b45f3b1f Move RazorPreCompileModule.cs to Razor.Precompilation 2015-08-25 14:33:13 -07:00
Chris R d6882ce4a5 Merge branch 'release' into dev 2015-08-25 13:54:41 -07:00
Chris R d5e27bf546 #278 Validate the message, not the JWT. 2015-08-25 13:47:11 -07:00
Pranav K 1bad8ce6d1 Ensure that assembly path is specified in Roslyn MetadataReference. 2015-08-25 12:56:23 -07:00
Hao Kung 55b28abeab Explicitly set ApplicationServices for HttpContext 2015-08-25 12:23:56 -07:00
Chris R 7213b53554 #407 OIDC - Fail if the user-info subject does not match 2015-08-25 11:26:02 -07:00