Commit Graph

27752 Commits

Author SHA1 Message Date
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
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
Doug Bunting 829a5c9046 Expand model types `GenericModelBinder` can handle
- #2993
- use `ClosedGenericMatcher` to handle e.g. non-generic model types implementing requested interfaces
- reduce `IsAssignableFrom()` use since created binders use explicit casts i.e. handle explicit implementations
- also add more integration tests covering various collection key formats, some with validation errors
  - merge a few `[Fact]`s into `[Theory]`s
2015-08-25 09:50:31 -07:00
Ryan Nowak cfd9bfe13b [PERF] Remove extra ModelStateDictionary allocations
The copy constructor is chaining to the wrong constructor. This results in
an extra 8 allocations of ModelStateDictionary per-request. All of the
various filter contexts inherit from ActionContext, that's how you get the
8 extras.

Small problem but easy fix.
2015-08-24 15:26:09 -07:00
Stephen Halter ca0a42a01e Merge branch 'Daniel15/unix-sockets' into dev 2015-08-24 12:53:31 -07:00
Pranav K 85ff9e1b7f Merge remote-tracking branch 'origin/release' into dev 2015-08-24 12:37:10 -07:00
Pranav K 391797b15d Updating to release AzureAD feed 2015-08-24 12:36:43 -07:00
KevinDockx 054b46c1cc Implement new Remove op & fix value.GetTypê issue in Add op 2015-08-24 12:32:41 -07:00
Pranav K 34354ef53d Merge remote-tracking branch 'origin/release' into dev 2015-08-24 12:29:09 -07:00
Pranav K 583c251f02 Updating to release AzureAD feed 2015-08-24 12:28:18 -07:00
Doug Bunting bf7e0f141e Add `IsReferenceOrNullableType` and `UnderlyingOrModelType` to `ModelMetadata`
- #2992
- use new properties to replace common helper methods
- still a few `Nullable.GetUnderlyingType()` calls
  - creating `ModelMetadata` or sites lacking `ModelMetadata` access e.g. `ModelBindingHelper.ConvertTo()`
2015-08-24 12:26:50 -07:00
Ajay Bhargav Baaskaran 0beb39ec1c [Fixes #2947] Default ContentType is not set when user specified Response.ContentType exists 2015-08-24 12:17:18 -07:00
Ryan Nowak 1596cd9422 Fix #2527 - Remove FormCollection use
This removes the dependency on Microsoft.AspNet.Http from the Mvc.Core
code. Added the reference back to tests where needed (DefaultHttpContext).
2015-08-24 11:09:30 -07:00
Chris R 42343bedee Raise test timeouts. 2015-08-24 10:52:50 -07:00
Brice Lambson 8ccfb99624 React to aspnet/EntityFramework#2902 2015-08-24 10:41:56 -07:00
Anthony van der Hoorn 92dc38ffd1 Missing "commands" from project.json
This was stopping the project running in VS
2015-08-24 10:21:28 -07:00
Anthony van der Hoorn a984ea77a8 Switch over target on which server is open for 2015-08-24 10:20:32 -07:00
Anthony van der Hoorn 02fefd8b31 Fix problem with client not connecting on the correct port 2015-08-24 10:18:45 -07:00
Brennan 5ac8abc16f Merge branch 'release' into dev 2015-08-24 09:15:12 -07:00
Doug Bunting a045324d3a Do not include compiler-generated names in expression names
- #2890
- add lots of `ExpressionHelper` tests using `IdFor()` and `NameFor()` (which are thin veneers)
2015-08-23 14:22:49 -07:00
Chris R c29ede3e78 Merge branch 'release' into dev 2015-08-22 21:20:11 -07:00
Chris R 86962ab12c #278 Additional OIDC message validation. 2015-08-22 21:17:38 -07:00