Commit Graph

37701 Commits

Author SHA1 Message Date
Doug Bunting aecfe778ee Improve handling of custom `ValidationAttribute`s and their `ValidationResult`s
- #3595 sub-items 2 through 4
- handle an indexer name in `ValidationResult.MemberNames`
 - aligns `ModelNames.CreatePropertyModelName()` with `TemplateInfo.GetFullHtmlFieldName()`
- handle multiple elements in `ValidationResult.MemberNames`
 - later elements previously ignored
- set `ValidationContext.MemberName` to `null` when no property name is available
 - using type name for a member name was just wrong
2016-06-08 12:05:01 -07:00
John Luo db4b0af98b Read environment variables by default #784 2016-06-08 10:42:00 -07:00
Doug Bunting 14f68b6168 Merge pull request #4623 from tuespetre/conneg
Alter content negotiation algorithm
2016-06-08 09:58:36 -07:00
SteveSandersonMS 44c8b9985b Add language type annotations and fix links in NodeServices readme 2016-06-08 16:59:02 +01:00
SteveSandersonMS f0ec89bbd9 Add NodeServices docs 2016-06-08 16:53:21 +01:00
Pranav K bfa281e24e Use aspnetexternal feed instead of CI share 2016-06-07 17:14:02 -07:00
Stephen Halter c1dadbd723 Make Bad Request tests more reliable
- Avoid calling write again after the request is already rejected
- Don't try to close a socket from the client if we already expect the server
  to forcefully close the socket
2016-06-07 16:13:29 -07:00
Derek Gray 5a3875ea72 Alter content negotiation algorithm so that it can be configured (via
MvcOptions) to always respect an explicit Accept header. Fixes #4612.
2016-06-07 16:12:36 -05:00
BrennanConroy e41b455141 Update 2016-06-07 11:35:40 -07:00
BrennanConroy 7808a47ccc Use Sources RuntimeEnvironment 2016-06-07 10:01:27 -07:00
SteveSandersonMS 7af64a8944 Tidy up image resizing example 2016-06-07 17:46:42 +01:00
SteveSandersonMS e58a4e4015 Tidy up image credits 2016-06-07 17:16:27 +01:00
SteveSandersonMS b19d0dff92 Support streamed response from SocketNodeInstance 2016-06-07 17:16:01 +01:00
SteveSandersonMS 967edd2b2a Support streamed response from HttpNodeInstance 2016-06-07 16:49:40 +01:00
Ryan Nowak 2e2784aa3d [Design] Split up MvcRouteHandler
This change splits up the conventional routing path from the attribute
routing path *inside* routing, instead of inside `MvcRouteHandler`. Each
attribute route group now gets its own instance of
`MvcAttributeRouteHandler` which just knows about the actions it can
reach.

This removes the concept of a route-group-token and removes the lookup
table entirely for attribute routing. This also means that the
`DefaultHandler` on `IRouteBuilder` will not be used for attribute routes,
which we are OK with for 1.0.0.

The action selector's functionality is now split into two methods. We
think this is OK for 1.0.0 because any customization of `IActionSelector`
up to now had to implement virtually the same policy as ours in order to
work with attribute routing. It should now be possible to customize the
selector in a meaningful way without interfering with attribute routing.
2016-06-07 08:12:47 -07:00
SteveSandersonMS 3440aa4344 Switch image resizing example from 'jimp' to 'sharp' because it's far faster 2016-06-07 16:06:15 +01:00
SteveSandersonMS 3e82d94f1c Add image resizing example. Currently used base64 encoded data transfer and the 'jimp' module, neither of which are fast. Will replace these shortly. 2016-06-07 15:55:06 +01:00
Pranav K 57b8e1cae8 Revert "React to Hosting TFM change"
This reverts commit 96d37a04e6.
2016-06-07 06:39:57 -07:00
SteveSandersonMS 8dbd143857 Move ES2015 example into a subpage of the NodeServicesExamples sample 2016-06-07 14:31:23 +01:00
SteveSandersonMS facc2c6d08 Rename ES2015Transpilation sample to NodeServicesExamples (because will be adding some more examples here) 2016-06-07 14:20:43 +01:00
SteveSandersonMS c8859abeb7 Fix #110 - enable asynchronous mode for Stream transport on Windows 2016-06-07 11:36:38 +01:00
jacalvar 3160b78f98 Update to Json.NET 9.0.1-beta1 2016-06-06 23:24:03 -07:00
jacalvar 2cf172c66e Update to Json.NET 9.0.1-beta1 2016-06-06 23:18:24 -07:00
jacalvar 62748b9471 Update Json.NET to 9.0.1-beta1 2016-06-06 21:49:39 -07:00
Mukul Sabharwal badbc7c8f7 Downtarget Kestrel to NETStandard 1.3 2016-06-06 21:37:44 -07:00
jacalvar 933b374f3e Update Json.NET to 9.0.1-beta1 2016-06-06 21:26:53 -07:00
jacalvar b6ceac559a Update Json.NET to 9.0.1-beta1 2016-06-06 21:25:52 -07:00
Cesar Blum Silveira a2a084fd16 Don't install nginx twice on OSX Travis build. 2016-06-06 21:22:56 -07:00
Pranav K 5b605f511e Add a reference to Microsoft.Extensions.PlatformAbstractions to fix build break 2016-06-06 17:43:59 -07:00
Kiran Challa 808ee7e965 Fixed SelfHostDeployer and IISExpressDeployer to use the correct application path 2016-06-06 16:32:51 -07:00
Kiran Challa 772bd562c9 Fixed RemoteWindowsDeployer to support IIS scenarios 2016-06-06 16:32:51 -07:00
moozzyk 50e8948bb9 Fixing BadRequest tests to not try sending data after Bad Request 2016-06-06 15:27:45 -07:00
Chris R 33b69c14ed React to UriHelper.Encode rename. 2016-06-06 15:15:02 -07:00
Pranav K e1093651ba Target netstandard1.3 2016-06-06 13:48:16 -07:00
Chris R 3fc1fef2be #573 Rename UriHelper.Encode 2016-06-06 13:30:07 -07:00
Pranav K cb27e74fc9 Target netstandard1.3 2016-06-06 12:57:14 -07:00
Pranav K 2e29091722 Remove libuv-package from UniverseCoherence 2016-06-06 12:11:23 -07:00
moozzyk 69bd0dc4be Reject requests that have null characters in path 2016-06-06 09:59:42 -07:00
Ryan Nowak 78c130d226 Fix for #4666 - reduce modelbinders created
This change to ModelBinderFactory makes the caching much more aggressive,
by caching all non-root binders. There's some trickiness here around
making sure we have the right behavior when all providers return null. See
the tests and comments.

I also kept the change I made for a temporary workaround to use a
dictionary rather than a "stack" for cycle breaking.  This seems like an
overall improvement in clarity.
2016-06-06 09:01:51 -07:00
Kiran Challa 40f0bb1b45 Added IIS variation to Nano smoke tests 2016-06-06 04:03:22 -07:00
Pranav K 33a323894f Reacting to IdentityModel changes 2016-06-04 20:51:13 -07:00
Pranav K bffbfc7f9e React to OpenId renames 2016-06-04 18:53:09 -07:00
Cesar Blum Silveira 2bbaa52b08 Disable ThreadCountTests on Mac. 2016-06-03 19:57:28 -07:00
Pranav K 17a41597a6 Reacting to Hosting changes 2016-06-03 18:24:35 -07:00
Pranav K 96d37a04e6 React to Hosting TFM change 2016-06-03 17:12:43 -07:00
Pranav K d02f67785f Use Microsoft.Extensions.StackTrace.Sources 2016-06-03 16:44:57 -07:00
Pranav K b7c924b449 Use Microsoft.Extensions.StackTrace.Sources 2016-06-03 16:35:27 -07:00
Andrew Stanton-Nurse 09f5be1434 fix #909 by moving most classes to Internal ns 2016-06-03 14:14:21 -07:00
Kévin Chalet 120021e8a3 Add a new IncludeErrorDetails option to prevent the JWT middleware from returning error/error_description 2016-06-03 22:46:00 +02:00
Hao Kung c15cf49a73 React to AuthZ API change 2016-06-03 13:30:53 -07:00