Pranav K
06e40252a0
Add support for top level validation to Razor Pages
2018-02-14 14:39:25 -08:00
Jass Bagga
d27e66a8fc
Initialize ViewContext for TagHelperComponentTagHelper ( #7326 )
...
Addresses #7017
2018-02-06 16:07:38 -08:00
Javier Calvarro Nelson
7127bb5dbb
Add DeclaredModelType to Razor pages
...
* This allows razor pages to override their model type with a model that
extends the declared model type through the page application model.
2018-01-25 16:00:54 -08:00
Pranav K
b30020a655
PartialTagHelper should not fallback to the current page's model if asp-for expression exists
...
Fixes #7295
2018-01-25 11:06:40 -08:00
Artak Mkrtchyan
4f3e0966d9
Enabling antiforgery tests, which were disabled because of the #7040 issue
2018-01-23 19:16:24 -08:00
Pranav K
ebdb3c650a
Smooth rough ApiBehavior edges
...
Fixes #7262
2018-01-22 09:53:21 -08:00
Pranav K
f0ae0ce528
Add PageConvention overloads for areas
...
Fixes #7246
2018-01-18 08:21:21 -08:00
Pranav K
ab3134e373
Support conflict resolution when multiple precompiled views have the same path
...
Fixes #7223
2018-01-16 08:04:39 -08:00
Pranav K
946b64143e
Allow override routes on Pages
...
Fixes #6605
2018-01-12 15:57:13 -08:00
Ryan Nowak
d342ebf8c8
Use compatibility switch for auth filters
2018-01-11 17:42:32 -08:00
Ajay Bhargav Baaskaran
b20e35e76a
Set RelativePhysicalPath in FileProviderRazorProjectItem
2018-01-11 13:20:17 -08:00
Jass Bagga
9438a453b0
Do not serve response body for HEAD requests ( #7230 )
...
Addresses #7208
2018-01-11 12:19:43 -08:00
Kiran Challa
2aae8774f6
[Fixes 7139] Add format filter mapping for xml formatters
2018-01-10 15:18:37 -08:00
Pranav K
b196708a3e
Merge tag '2.0.2' into dev
2018-01-10 10:02:54 -08:00
Ryan Nowak
75e3ed952b
Update functional tests
2018-01-08 19:55:01 -08:00
Ryan Nowak
d58d0f917f
Add support for recompilation
2018-01-08 15:26:20 -08:00
Hao Kung
73bd09dc1c
Add CombineAuthorizeFilters option
2018-01-08 11:59:30 -08:00
ASP.NET CI
2e73bab2a4
Move option for JSON errors to MvcJsonOptions
...
This was in the wrong place - JSON formatters have their own options
type already.
Moved the option to MvcJsonOptions and updated the naming + defaults to
reflect our plan.
Also did a bunch of general cleanup on these tests, which were a bit
sloppy.
2018-01-07 21:48:58 -08:00
Doug Bunting
bab520f4dd
Use latest `Microsoft.AspNet.WebApi.Client` package
...
- #5822
- update `Microsoft.AspNet.WebApi.Client` package version
- remove remaining few `$(PackageTargetFallback)` settings
- remove .NET Standard-specific files
- they duplicate what Microsoft.AspNet.WebApi.Client now provides
- necessary only if cross-compiling a PCL version of the WebApiCompatShim
- add type forwarding for the removed `public` types
- reenable .NET Framework WebApiCompatShim tests
- add breaking change record for `MediaTypeFormatterMatchRanking` value change
- version of this type in the shim lacked the `MatchOnRequestWithMediaTypeMapping` value
2018-01-05 16:42:28 -08:00
Kiran Challa
9fd60ff864
Marked CookieTempDataProvider's cookie as non-essential
...
[Fixes #7160 ] Determine if the temp data cookie is considered essential
2018-01-05 15:41:01 -08:00
Pranav K
0e21bab125
React to naming change in Razor
2018-01-03 12:38:16 -08:00
Pranav K
350c4ec4f6
Introduce IAlwaysRunResultFilter \ IAsyncAlwaysRunResultFilter ( #7120 )
...
* Introduce IAlwaysRunResultFilter \ IAsyncAlwaysRunResultFilter
Fixes #7105
2017-12-22 10:52:52 -08:00
Pranav K
dfa085afaf
Add support for areas to Razor Pages
...
Fixes #6926
2017-12-19 15:03:05 -08:00
Kiran Challa
7e26af908e
[ Fixes #6514 ] Add default ctor overload to AuthorizeFilter
2017-12-12 14:07:02 -08:00
Nate McMaster
67f48064ce
Skip additional flaky tests. See aspnet/Mvc#7122
2017-12-11 15:38:30 -08:00
N. Taylor Mullen
7cea779b7a
Update JsonHelper to escape HTML.
...
- This functionality can be disabled by setting the `Switch.Microsoft.AspNetCore.Mvc.AllowJsonHtml` switch in an app.config.
- Updated tests to react to this new behavior.
- Exposed a new `PublicSerializerSettings` property on `JsonOutputFormatter` so we can accurately copy settings from the used output formatter in `JsonHelper`.
2017-12-07 16:12:43 -08:00
Kiran Challa
e09ea40551
[ Fixes #6591 ] TempData should support nullable types
2017-12-04 15:33:22 -08:00
Jass Bagga
0bb3f18049
Add support for BadRequest in RazorPages ( #7097 )
...
Addresses #7095
2017-12-01 12:03:24 -08:00
Doug Bunting
6b2a702ff4
Handle line ending differences in a few tests
...
- #6205
- combine `TagHelpers_SupportsPathNavigation()` and `TagHelpers_SupportsRelativeNavigation()` into one
nit: remove a few unnecessary `.Trim()` calls
2017-11-30 21:18:42 -08:00
Pranav K
e6c716444d
Add a <partial /> tag helper
...
Fixes #5916
2017-11-30 17:08:47 -08:00
Pranav K
9dc9381ae4
Re-order execution in CacheTagHelper to avoid setting the result too early
...
Re-enable skipped tests
Fixes #7042
2017-11-20 10:03:47 -08:00
Jass Bagga
5fffd464cd
Support input type "week" ( #7045 )
2017-11-16 16:00:15 -08:00
Pranav K
b6144142fe
Update samples and tests to target netcoreapp2.1
2017-11-13 14:58:40 -08:00
Pranav K
a01e23250f
Preparing to update to 2.2 SDK
2017-11-09 16:25:51 -08:00
Chris Ross (ASP.NET)
bcaee8df4e
Disable broken Anti-forgery tests
2017-11-09 09:46:59 -08:00
Steve Sanderson
d9825d1547
Better JSON deserialization errors. Implements #4607 , #4862
2017-11-06 23:02:13 +00:00
Pranav K
ab4c519dd5
Infer multipart/form-data for FromFile parameters
2017-11-02 09:36:31 -07:00
Nate McMaster
2e4bc548f5
Pin tool and package versions to make builds more repeatable ( #7013 )
2017-10-31 19:18:14 -07:00
Pranav K
8946a68923
Infer binding sources for ApiController parameters
...
Fixes #6847
2017-10-16 15:20:43 -07:00
Jass Bagga
b992ef0ced
Add tests to ApplicationModelTest ( #6932 )
...
Addresses #756
2017-10-10 11:24:03 -07:00
Ryan Nowak
7ba167fcd8
Add 'default response' to API Response Type
...
Also some cleanup and unit tests.
2017-10-09 19:48:52 -07:00
Nate McMaster
3bfb023679
Update how PackageReference versions are set
...
Changes:
- Remove floating versions
- Disable myget feeds during a Universe build
- Use package-specific MSBuild variables. Pattern = `packageId.Pascalize() + "PackageVersion"`, with a few exceptions.
2017-10-09 11:11:24 -07:00
Mike Harder
9fbb2f1141
Simplify collection initialization ( #6897 )
...
- Addresses VS message "IDE0028 Collection initialization can be simplified"
2017-10-04 14:12:43 -07:00
Jass Bagga
2fcfc6be7c
Add EnableRangeProcessing ( #6895 )
...
Addresses #6780
2017-09-29 18:39:45 -07:00
Kiran Challa
83c3ac62fb
Updated formatters to wrap exceptions in InputFormatException for invalid input
2017-09-22 14:33:17 -07:00
Pranav K
5d1603c37f
Replace ProblemDetailsAttribute with ApiControllerAttribute
2017-09-22 10:26:13 -07:00
Pranav K
197ef139d6
Provide a way within the Page/PageModel to run code before any handler runs
...
Fixes #6606
2017-09-22 09:25:22 -07:00
Steve Sanderson
236ef5d1d1
Support validation and BindBehavior on top-level action parameters and bound properties. Fixes #6790
2017-09-22 10:13:48 +01:00
Pranav K
7f214492b8
Introduce a filter to send bad request results with details when ModelState is invalid ( #6849 )
...
* Introduce a filter to send bad request results with details when ModelState is invalid
Fixes #6789
2017-09-21 11:09:32 -07:00
Javier Calvarro Nelson
85f3c841f1
Revert "Revert "Improvements to the testing package.""
...
This reverts commit 7b28334c41 .
2017-09-19 21:45:05 -07:00