Commit Graph

43822 Commits

Author SHA1 Message Date
Ajay Bhargav Baaskaran aeba565e53 Fixing ArgumentOutOfRangeException in ExpressionRewriter 2016-01-29 14:47:09 -08:00
Cesar Blum Silveira b404d5c3de React to StringTokenizer changes. 2016-01-29 13:42:36 -08:00
Brennan 765a52007a Use EscapeDataString for encoding Cookies 2016-01-29 12:58:36 -08:00
Doug Bunting 26a14a25ab Support overrides for client-side validation messages
- #2969
- `RemoteAttribute` did not support `IStringLocalizer` overrides
 - use same `MvcDataAnnotationsLocalizationOptions` property as for other `ValidationAttribute`s
- error message `NumericClientModelValidator` added could not be overridden
 - not related to `IStringLocalizer` because users have no way to set the resource lookup key
 - extend `IModelBindingMessageProvider` to add the necessary `Func<,>`
- also correct problem using resources with `RemoteAttribute` and add lots of tests
2016-01-29 11:23:57 -08:00
Ajay Bhargav Baaskaran d6843b5a9d Fixed bad xml documentation 2016-01-29 10:58:43 -08:00
Ajay Bhargav Baaskaran 47351aac7a Added caching for client model validators 2016-01-29 10:40:41 -08:00
N. Taylor Mullen c01d90900e Don't transitively depend on `Newtonsoft.Json`. 2016-01-29 10:23:15 -08:00
Pranav K b4099adefb Fixing build 2016-01-29 09:33:03 -08:00
Victor Hurdugaci f999ddf5dd Update README.md
Add the NuGet feeds wiki page
2016-01-29 08:58:44 -08:00
Cesar Blum Silveira 0556a2c291 Use dotnet 1.0.0.001244 on *nix. 2016-01-29 05:06:23 -08:00
Cesar Blum Silveira fdcbc0f2eb Handle --version in dotnet-install.sh. 2016-01-29 04:00:48 -08:00
Doug Bunting cb4d93ce74 Fix typo that broke `--no-restore`
- `NoRestore` was checked when registering `repo-initialize` target instead of when executing it
2016-02-10 10:54:39 -08:00
Doug Bunting 5444297795 Add `--no-restore` and apply `--quiet` to `dotnet restore`
- new `--no-restore` pseudo-target controls whether `dotnet restore` runs at all
- `--quiet` adds `--verbosity minimal` to `dotnet restore` command

nit: clean out dangling `KOREBUILD_TEST_DNXCORE` environment variable
 - `--test-dnxcore` now logs a warning
2016-02-09 15:05:32 -08:00
Pranav K ba7f46d3bc * Add a switch to specify a version to KoreBuild
* Use a fixed version of the CLI until build issues are resolved.
2016-02-09 11:44:11 -08:00
Kiran Challa de449ee249 Fix dotnet publish to only delete the specific framework bin folder 2016-02-08 10:36:09 -08:00
Brennan 3adcbd10f7 Move temp delete elsewhere 2016-02-05 10:40:28 -08:00
Ajay Bhargav Baaskaran a089369216 Updated Json.Net version 2016-02-04 16:43:55 -08:00
Brennan 564dae0a6a Fix cross gen issue 2016-02-04 16:29:50 -08:00
Andrew Stanton-Nurse 95be6b9a51 update dotnet-install script and use beta channel 2016-02-04 10:32:08 -08:00
Kiran Challa c0ed67e96f Enable running tests using dotnet xunit test runner 2016-02-04 10:10:49 -08:00
jacalvar 7cbb263edb [Fixes #3874] Null passed as arguments to controller method parameters when no InputFormatter matches
* Add an UnsupportedContentType to the ModelState dictionary when no formatter can read the body.
* Add a filter to the pipeline that searches for that specific exception and transforms the response into 415.
2016-01-28 15:46:17 -08:00
Cesar Blum Silveira 1209eca3fa Normalize request path to NFC and resolve dot segments (#273). 2016-01-28 15:29:29 -08:00
John Luo ae47bb21a6 Ordering sensitive configuration #582 2016-01-28 13:55:17 -08:00
N. Taylor Mullen 662e6e6dbe Fix build break 2016-01-28 13:50:21 -08:00
Hao Kung 80dc5759cc Async overloads for AuthZ RequireAssertion 2016-01-28 12:48:00 -08:00
N. Taylor Mullen f78c52a216 Expose `IsTagHelper` as an extensibility point.
- This is required for the Razor tooling that determines `TagHelperDescriptor`s.

https://github.com/aspnet/RazorTooling/issues/43
2016-01-28 11:41:21 -08:00
Pranav K 690c42c199 Add dependency on System.Runtime.Serialization.Primitives to make up for JSON.NET not including it
Fixes https://github.com/aspnet/Mvc/issues/3946
2016-01-28 11:13:17 -08:00
Pranav K 8d19947ada Updating to dotnet-cli build
Fixes #9
2016-01-28 11:05:28 -08:00
Brennan 27fb99293d Update Mock for logging 2016-01-28 10:12:39 -08:00
Ryan Nowak 8753c60b43 Fix failing auth test 2016-01-28 08:23:49 -08:00
Derek Gray 8b726ddc0c Allow the use of the Prompt property of DisplayAttribute for the placeholder attribute of input fields (addresses #3723) 2016-01-27 16:18:23 -08:00
ryanbrandenburg 78e7179221 * Remove HttpRespomseStreamWriter 2016-01-27 16:04:54 -08:00
Chris R a80c5e6d85 #614 Standardize the pattern for scope defaults. 2016-01-27 15:26:32 -08:00
Brennan 297c72aa21 React to Logging API changes 2016-01-27 14:42:56 -08:00
Brennan 1fd703e56f React to Logging API changes 2016-01-27 14:39:00 -08:00
Stephen Halter d616f0ccb0 Fix FindFirstEqualByte tests
- On some platforms, the bytes array was not large enough to fill a vector.
  Ex: https://travis-ci.org/aspnet/KestrelHttpServer/builds/105277870#L2633
- Additionally test FindFirstEqualByte with only one bit set in the array
2016-01-27 14:32:34 -08:00
Brennan 15ed03eb26 React to Logging API changes 2016-01-27 14:25:52 -08:00
Brennan 3ea44c6f75 React to Logging API changes 2016-01-27 14:01:49 -08:00
Hao Kung 00ceeb0262 Add IAuthorizationPolicyProvider support 2016-01-27 13:36:53 -08:00
Stephen Halter a2fe59fb2c Speed up unit tests
- Remove unnecessary uses of Task.Delay
- Change all usages to CancellationToken.None to default(CancellationToken)
  for consistency
2016-01-27 13:01:44 -08:00
Brennan 3cac63a9cf React to Logging API changes 2016-01-27 12:37:35 -08:00
Brennan 247c46da1c React to Logging API changes 2016-01-27 11:04:35 -08:00
Ryan Nowak 1a70f12bf8 Undesign client validation
This change removes a layer of abstraction. These validators now just do
what they do now without creating a bunch of intermediate objects.

ModelClientValidationRule has been removed, and client validations
manipulate the attributes collection of a tag directly.
2016-01-27 09:55:18 -08:00
Ajay Bhargav Baaskaran 8c4bcf14c7 Added caching for validators 2016-01-26 17:15:16 -08:00
jacalvar 71a815be50 [Fixes #3979] AuthorizationContext conflicts with type in Microsoft.AspNet.Authorization 2016-01-26 16:27:40 -08:00
Ajay Bhargav Baaskaran 726ebb7a05 Updated unit test coverage for html helpers
- updated HtmlHelperLabelExtensionsTest
 - Added tests for HtmlHelperInputExtensions
 - Added tests for ValidationMessage and ValidationSummary extensions
2016-01-26 16:04:35 -08:00
jacalvar 357f4a00b7 [Fixes #3952] ViewComponentDescriptor.Type should be a TypeInfo instance instead of a Type instance 2016-01-26 16:01:58 -08:00
Doug Bunting 153c229b7e Update .gitignore
- ignore launchSettings.json in particular
2016-01-26 15:18:29 -08:00
Chris R 9c41eb958e React to IdentityModel breaking change. 2016-01-26 14:28:49 -08:00
jacalvar 354400f12b [Fixes #3752] Refactor and cleanup view components
* Moved instantiation of view components into DefaultViewComponentActivator
* Introduced IViewComponentFactory to handling setup of new view component instances.
* Added a release method on IViewComponentActivator for handling tear down of view
  component instances.
2016-01-26 14:18:12 -08:00