Commit Graph

44213 Commits

Author SHA1 Message Date
Harsh Gupta 8e91c1ada6 [Fix for #1850]Produces, Consumes and ObjectResult throw if there is a match all content type. 2015-01-30 15:54:58 -08:00
ajcvickers 61ef19c6e9 React to EF changes 2015-01-30 15:13:49 -08:00
Praburaj 5acb4217ba Merge branch 'release' into dev 2015-01-30 14:47:16 -08:00
anurse da5a292b12 ⬆️ kvm again 2015-01-30 14:36:45 -08:00
ajcvickers 5b55da271c Use Add instead of AddAsync 2015-01-30 14:31:17 -08:00
ajcvickers 774d06e7a6 React to removal of AddAsync 2015-01-30 14:24:57 -08:00
Praburaj Thiagarajan a249cbbdfc Merge pull request #137 from brentschmaltz/release
ChallengeContext will be null with [Authorize] attribute
2015-01-30 14:16:18 -08:00
anurse 6adb92fea6 ⬆️ kvm 2015-01-30 13:43:55 -08:00
Doug Bunting 6cc5cfeae2 Download and install jQuery Unobtrusive Validation and its dependencies
- avoids checking these external .js files into our repo
- limit jQuery*.js versions to single value, mostly the latest but don't
  cross over to jQuery.js 2.0.x range (incompatible with IE 6, 7, 8)
2015-01-30 12:33:12 -08:00
Doug Bunting 1a62f104b4 Add functional test of `[Remote]`
- #439 (3 of 3)
- extended the Validation web site to include use of `[Remote]`
- also confirm operation of the validation actions (which all reject their input)
2015-01-30 12:33:00 -08:00
Doug Bunting 80b004678d Get `[Remote]` and supporting classes building
- #439 (2 of 3)
- correct namespaces
- correct `Resources` class and member names; add new resources
- add `RequestServices` property to `ClientModelValidationContext`
- adjust to modern `IUrlHelper` API
- add `IClientModelValidator` support in `DataAnnotationsModelValidator`
- move previously-unused `StringSplit()` to `RemoteAttribute` and rename
- rewrite `RemoteAttributeTest`
 - improve test method names

Reduce number of `[Remote]` constructor overloads
- remove `AreaReference` enum and related `[Remote]` constructor overload
 - use `null` or empty `string` as explicit reference to the root area
- generally reduce parameter validation; match `UrlHelper`

Cleanup
- correct Engineering Guidelines violations
 - especially: add doc comments
- correct spelling error in `_additonalFieldsSplit`

nits:
- minimize `null` checks in `AdditionalFields`
- make `GetClientValidationRules` `virtual`; some subclasses use `new` today
- add tests of `DataAnnotationsModelValidator.GetClientValidationRules()`
- remove `builder.ToString()` calls since it appears
  https://roslyn.codeplex.com/workitem/246 has been resolved or Moq has
  worked around that issue.
2015-01-30 12:26:48 -08:00
Doug Bunting 1af1583302 Copy `[Remote]` and supporting classes from MVC 5.2
- #439 (1 of 3)
2015-01-30 10:05:53 -08:00
Doug Bunting c59366e8a7 Quick cleanup
- `DefaultInlineConstraintResolver` has no need of a `IServiceProvider`

nits:
- add doc comments for changed `DefaultInlineConstraintResolver` ctor
- let VS add a dev server port to sample's .kproj
- add debugSettings.json and .vs/ to .gitignore
2015-01-30 10:02:58 -08:00
Anthony Sneed 1118315a9d [Resolves #1887] XmlDataContractSerializer Input and Output Formatter Tests Cleanup. 2015-01-30 10:02:33 +01:00
Doug Bunting 7431356913 Short-circuit `TestCommand()` calls once commands are installed locally 2015-01-29 22:54:56 -08:00
Doug Bunting 56f45e0c7d Include `bower` and `npm` commands in `--quiet` target 2015-01-29 22:54:51 -08:00
Wei Wang 7da71fc5ee Fix Open ID test case 2015-01-29 18:35:12 -08:00
Pranav K a7c70cca08 Merge branch 'release' into dev 2015-01-29 18:14:08 -08:00
Pranav K f9d3f6fe17 Fixing release NuGet.config 2015-01-29 18:12:51 -08:00
Wei Wang a0044af746 Merge remote-tracking branch 'origin/release' into dev 2015-01-29 17:03:58 -08:00
Wei Wang cbe76c3ae8 Merge remote-tracking branch 'origin/release' into dev 2015-01-29 17:01:48 -08:00
Wei Wang 8e0b8cdab0 Merge remote-tracking branch 'origin/release' into dev 2015-01-29 16:59:22 -08:00
Pranav K 720858f6b4 Merge remote-tracking branch 'origin/release' into dev 2015-01-29 16:56:37 -08:00
Wei Wang e1ff9ae259 Merge remote-tracking branch 'origin/release' into dev 2015-01-29 16:32:08 -08:00
Wei Wang efab52c082 Merge remote-tracking branch 'origin/release' into dev 2015-01-29 16:31:51 -08:00
Wei Wang 58e3a6068e Merge remote-tracking branch 'origin/release' into dev 2015-01-29 16:31:26 -08:00
Wei Wang 4277bb75b1 Merge remote-tracking branch 'origin/release' into dev 2015-01-29 16:30:59 -08:00
Wei Wang 009de028b6 Merge remote-tracking branch 'origin/release' into dev 2015-01-29 16:29:27 -08:00
Wei Wang 33247af5df Merge remote-tracking branch 'origin/release' into dev 2015-01-29 16:28:57 -08:00
Wei Wang adcc579d89 Merge remote-tracking branch 'origin/release' into dev 2015-01-29 16:25:40 -08:00
Wei Wang 7f133daa74 Merge remote-tracking branch 'origin/release' into dev 2015-01-29 16:25:25 -08:00
Wei Wang 72aab1927e Merge remote-tracking branch 'origin/release' into dev 2015-01-29 16:18:38 -08:00
Pranav K a452205e60 Moving Microsoft.AspNet.Mvc.Xml to src dir 2015-01-29 10:28:40 -08:00
Pranav K fde1b13b4a Updating Mvc.NoFun.sln 2015-01-29 10:26:38 -08:00
Doug Bunting 8779cafbab Use `[Display(Order=x)]` to sort validation messages and properties
- #964
- compute `ModelMetadata.Order` based on `[Display]` attribute
 - property affects e.g. `@Html.DisplayFor()` generation for complex objects
 - also affects order of messages in validation summaries
- test new scenarios involving `ModelMetadata.Order`
 - per-property `ModelMetadata` and related tests
 - validation and `HtmlHelper` tests
 - add `HtmlHelperValidationSummaryTest` (which touches on #453)
- update ModelBinding functional test to show use of `[Display(Order = x)]`

nits:
- move more `NullDisplayText` bits into proper slots (just above `Order`)
 - add doc comments for `ComputeNullDisplayText()`
- add more assertions in tests using `ModelStateDictionary.HasReachedMaxErrors`
- remove some trailing whitespace
- avoid `Assert.True()` & `Assert.False()`; split some assertions up
- `""` -> `string.Empty` in affected test classes
- rename "DefaultEditorTemplatesTest~~s~~" class and file to follow guidelines
- rename "ModelBindingTest~~s~~" class and file to follow guidelines

FYI #1888 covers a predictable (or even just stable) order in the UI
2015-01-29 09:31:05 -08:00
Pranav K 27819d88f6 Fixing NuGet.config 2015-01-29 07:55:02 -08:00
Anthony Sneed c6de763a6c [Resolves #1744] Cleanup Xml Serializer & DataContractSerializer input and output formatters. 2015-01-29 07:04:09 -08:00
Pranav K bccef90a2c Fixing Nuget.config 2015-01-29 06:28:40 -08:00
Youngjune Hong 70efc5ae0a Creating UrlUtility for IsLocalUrl, and cleaning up UrlHelper 2015-01-29 05:51:46 -08:00
Wei Wang 3bf675f343 React to runtime renaming revert 2015-01-29 00:01:52 -08:00
Pranav K 3416bfcc80 Fixing NuGet.config 2015-01-28 23:24:31 -08:00
Pranav K f51fe93b1c Fixing NuGet.config 2015-01-28 23:18:29 -08:00
Pranav K 37433056be Fixing NuGet.config 2015-01-28 23:15:50 -08:00
Pranav K ba58c767e8 Fixing NuGet.config 2015-01-28 22:34:18 -08:00
Wei Wang 334fa34e0c Change SKIP_DOTNET_INSTALL to SKIP_KRE_INSTALL 2015-01-28 18:50:50 -08:00
Wei Wang eb644da0d8 Update build.cmd and build.sh to use kvm 2015-01-28 18:50:38 -08:00
Wei Wang 8621da6cac Change SKIP_DOTNET_INSTALL to SKIP_KRE_INSTALL 2015-01-28 18:48:55 -08:00
Wei Wang 45ebae0ec8 Update build.cmd and build.sh to use kvm 2015-01-28 18:48:41 -08:00
Wei Wang a7a1f97e7a Change SKIP_DOTNET_INSTALL to SKIP_KRE_INSTALL 2015-01-28 18:42:20 -08:00
Wei Wang e03bf7557a Update build.cmd and build.sh to use kvm 2015-01-28 18:42:04 -08:00