Commit Graph

40929 Commits

Author SHA1 Message Date
Harsh Gupta d0927bdc75 Fixes #2464 - Does not add extra skipped entries for model bound from services.
Also ensures that when a type is marked as skipped, any sub property which is model bound (and hence a modelstate un validated entry),
is marked as skipped (otherwise it would cause the ModelState to be invalid).
Also fixing a bug in model state dictionary FindKeyWithPrefix was not considering [0] & [0][0] as a valid prefix.
2015-05-15 12:27:43 -07:00
Harsh Gupta 88ac4b94e4 Fixing #2466, #2446.
The assumption is ModelState should have entries if
1. An error is explicitly added by a model binder.
2. There is validation error reported while validating the model.
3. There is value bound by the model binder.

With this change there should be no extra entry other than for the cases mentioned above.

Also enabling the integration test cases.
2015-05-15 12:27:41 -07:00
Ajay Bhargav Baaskaran 2fe78d70db [Fixes #217] Applying error squiggly to full directive 2015-05-15 12:26:21 -07:00
N. Taylor Mullen 0882ff4a13 Add tests to validate minimized attributes.
- Added parse level rewriting tests to validate new TagHelper rewritten structures for minimized attributes.
- Updated existing parser tests to understand minimized attributes.
- Added codegen test to validate understanding of minimized attributes.
- Added TagHelperExecutionContext tests to validate maintaining of runtime TagHelperOutput tests.
- Refactored part of the TagHelperParseTreeRewriterTest file into a base class file so we can make better rewriting tests.

#220
2015-05-15 12:23:11 -07:00
N. Taylor Mullen 6fa3e405af Add support for minimized attributes in TagHelpers.
- Updated the Razor parser to understand minimized attributes instead of just treating them like plain text. This just involved encompassing minimized attributes in their own blocks just like the other attributes found on the HTML tag.
- Updated TagHelperParseTreeRewriter to only accept minimized attributes for unbound attributes.
- Updated IReadOnlyTagHelperAttribute/TagHelperAttribute to have a Minimized property to indicate that an attribute was minimized.
- Updated parser level block structures to represent minimized attributes as null syntax tree nodes.
- Updated chunk level structures to represent minimized attributes as null chunks.

#220
2015-05-15 12:23:06 -07:00
Pranav K 7b9cb14a10 Revert "React to CoreCLR dependency changes."
This reverts commit 06d3333ed3.
2015-05-15 12:20:28 -07:00
Pranav K 7d8f5d7b84 Revert "Reacting to updated CoreCLR packages"
This reverts commit f180bd9900.
2015-05-15 12:19:37 -07:00
damianedwards ecfb7f342a Sort project.json dependencies 2015-05-15 12:14:14 -07:00
N. Taylor Mullen 12e4307f3a Add tests to account for aspnet/Razor#220.
- Added unit and functional test.
2015-05-15 12:13:15 -07:00
N. Taylor Mullen 247625dcab React to aspnet/Razor#220.
- Added the ability for the WriteTagHelperAsync in RazorPage.cs to understand minimized attributes.
2015-05-15 12:13:10 -07:00
Kiran Challa 6ef8be92ff [Fixes #2541] Use custom stream writer for Xml output formatters 2015-05-15 12:12:11 -07:00
Chris R 74c8363855 React to CoreClr dependency changes. 2015-05-15 11:34:15 -07:00
Chris R 748a6e1090 React to CoreClr dependency changes. 2015-05-15 11:31:49 -07:00
Chris R 913e407b5a React to CoreClr dependency changes. 2015-05-15 11:27:29 -07:00
Chris R 89e60921f8 React to CoreClr dependency changes. 2015-05-15 10:39:32 -07:00
Murat Girgin 47f24598f4 Update README.md 2015-05-15 10:04:22 -07:00
Murat Girgin 703fa4279e Initial commit 2015-05-15 10:01:00 -07:00
Chris R 06d3333ed3 React to CoreCLR dependency changes. 2015-05-15 09:59:42 -07:00
Pranav K 0d3c29f46a Reacting to CoreCLR package updates 2015-05-15 09:57:18 -07:00
Pranav K f180bd9900 Reacting to updated CoreCLR packages 2015-05-15 08:59:23 -07:00
Troy Dai d89f5d0f47 Move comment into Startup.cs 2015-05-14 22:41:41 -07:00
Chris R 99ea4fed8a #176 Add Clone() to MediaTypeHeaderValue and NameValueHeaderValue. 2015-05-14 22:23:12 -07:00
Harsh Gupta 22f1881cc6 Restoring modelvalidation node. 2015-05-14 18:38:26 -07:00
Kirthi Krishnamraju 8b5223518f Fix 2224: [Jsonpatch]Added tests for custom converters on properties 2015-05-14 17:18:42 -07:00
Eilon Lipton 03aa1ee107 Merge pull request #58 from henkmollema/patch-1
Reference to ASP.NET 5 instead of vNext in README
2015-05-14 16:24:38 -07:00
Ajay Bhargav Baaskaran 39642761b1 Added overload to ViewComponent.Json to accept JsonSerializerSettings 2015-05-14 15:45:41 -07:00
Ryan Nowak 7767251dad Adding some deserialization to a test for SerializableError 2015-05-14 15:38:50 -07:00
Eilon Lipton f008483b03 Merge pull request #256 from henkmollema/patch-1
Reference to ASP.NET 5 instead of vNext in README
2015-05-14 14:56:17 -07:00
Smit Patel c6c5c94971 React to EF: changes in ModelSnapshot 2015-05-14 14:01:06 -07:00
Ryan Nowak cc4ee1068d Fix #2414 Part 2 - Add [DefaultValue(...)] support to the invoker for
action parameters
2015-05-14 13:58:02 -07:00
Ryan Nowak 3f2ec7c046 Add project.lock.json to the .gitignore 2015-05-14 12:31:16 -07:00
Doug Bunting 70486710ea Quick fix: Add `System.Runtime.Serialization.Primitives` dependency
- tests failing
- root cause is likely similar to reason MVC Core has same dependency
 - something must have changed in the framework packages without manifest fixes
2015-05-14 10:47:39 -07:00
Eilon Lipton 3a15ea1d91 Update contributing link 2015-05-14 09:17:40 -07:00
Ryan Nowak 2fc983b23a Fix for #2414 - Remove [DefaultValue] support from ModelBinding
This part of the change removes default value support from ModelBinding.

Updated some unit tests to verify that it does nothing in that case.
Deleted a functional test as it was pure duplication of another
(supported) case where the property has a pre-initialized value.
2015-05-13 20:03:23 -07:00
Hao Kung 1ea1cc4338 AuthorizeFilter should always set default identity 2015-05-13 16:39:35 -07:00
N. Taylor Mullen 8ec28463fc Update .travis.yml to use working version of mono.
- Non 3.12.0 versions cause unexpected end of file stream exception.
2015-05-13 16:34:20 -07:00
N. Taylor Mullen add8b07d32 Fix travis. 2015-05-13 16:30:17 -07:00
Ryan Nowak 90805fa827 Pass InputFormatters in OBC
This removes the need to use IScopedInstance<ActionBindingContext> to get
access to the formatters.
2015-05-13 16:02:34 -07:00
damianedwards 2431e1a542 Move CultureInfoCache into its own package. 2015-05-13 15:50:00 -07:00
Ajay Bhargav Baaskaran 7bd338fc4a [Fixes #266] Maintain HTML provided case for TagHelper attributes 2015-05-13 15:27:38 -07:00
Eilon Lipton 4b1a708ba1 Merge pull request #2398 from henkmollema/fix-1743
Added new ValidationSummary overloads to sample
2015-05-13 15:15:36 -07:00
Kiran Challa 4bed2e6f2b [Fixes #2545] RedirectToRouteResult doesn't use RouteName property when calculating destination URL 2015-05-13 12:35:25 -07:00
Ajay Bhargav Baaskaran 4d80c96f9c [Fixes #50] Removed unnecessary whitespaces before text tag 2015-05-13 10:55:52 -07:00
Kirthi Krishnamraju da740cd6a8 fix #2535: Timezone test failure in Microsoft.AspNet.Mvc.Core.Tests 2015-05-13 10:06:26 -07:00
Henk Mollema b4299f3a67 Reference to ASP.NET 5 instead of vNext in README 2015-05-13 17:08:38 +02:00
Henk Mollema 4ec81538b9 Reference to ASP.NET 5 instead of vNext in README 2015-05-13 16:43:15 +02:00
David Fowler 8c58f7ac1a Print started 2015-05-12 18:32:53 -07:00
Ajay Bhargav Baaskaran c680d6b953 [Fixes #183] Fix error with double transition in value attribute 2015-05-12 17:59:22 -07:00
N. Taylor Mullen d6cb4229a9 React to rewriter bad merge. 2015-05-12 17:50:41 -07:00
Hao Kung 468852550c Tweak SecurityHelper.AddUserPrincipal logic 2015-05-12 15:49:49 -07:00