Pranav K
8d66f104f7
Make types in Microsoft.AspNetCore.Mvc.Internal namespace internal
2018-11-08 14:00:16 -08:00
James Newton-King
9f1a222d90
React to AuthorizationMiddleware ( #8697 )
2018-11-09 07:11:55 +13:00
Pranav K
17ed44c868
React to Razor.Design package removal ( #8680 )
...
* React to Razor.Design package removal
* Remove references to packages (Razor.Design, Razor.Extensions) solely used to bring in compiler \ targets
* Target netcoreapp3.0 in samples and tests to allow Sdk to infer values
2018-10-31 15:38:22 -07:00
Doug Bunting
e4292c236c
Merge pull request #8682 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-10-31 14:47:16 -07:00
Doug Bunting
a6199bbfba
Add integration and functional tests of `[BindRequired]` on page properties ( #8677 )
...
- #7353
2018-10-31 14:15:14 -07:00
Pranav K
f2af66bc31
Cleanup InferParameterBindingInfoConvention ( #8665 )
...
* Cleanup InferParameterBindingInfoConvention
* Infer BindingSource for collection parameters as Body. Fixes https://github.com/aspnet/Mvc/issues/8536
* Introduce a compat switch to keep 2.1.x LTS behavior for collection parameters
* Do not infer BinderModelName in InferParameterBindingInfoConvention
2018-10-31 12:24:37 -07:00
Doug Bunting
579341c8d6
Merge branch 'master' into merge/release/2.2-to-master
2018-10-30 21:08:15 -07:00
Doug Bunting
c74a945dda
Convert `RouteValueDictionary` values to `string` using `CultureInfo.InvariantCulture` ( #8674 )
...
* Convert `RouteValueDictionary` values to `string` using `CultureInfo.InvariantCulture`
- #8578
- user may override this choice in one case:
- register a custom `IValueProviderFactory` to pass another `CultureInfo` into the `RouteValueProvider`
- values are used as programmatic tokens outside `RouteValueProvider`
nits:
- take VS suggestions in changed classes
- take VS suggestions in files I had open :)
2018-10-30 20:09:17 -07:00
Pranav K
734b919b02
Respect SuppressInferBindingSourcesForParameters
...
Fixes https://github.com/aspnet/Mvc/issues/8657
2018-10-30 14:37:21 -07:00
Pranav K
4015c9863e
Merge pull request #8664 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-10-29 12:54:42 -07:00
Pranav K
35d2ab37f7
Allow passing a dictionary to ValidationProblemDetails
...
Fixes https://github.com/aspnet/Mvc/issues/8645
2018-10-29 09:56:17 -07:00
Doug Bunting
3f52894b1b
Merge pull request #8662 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-10-28 21:36:51 -07:00
Doug Bunting
0b6932dc15
Quick fix: Clean up test warnings
...
- avoid "Skipping test case with duplicate ID" messages
- xUnit gets confused when `[Theory]`s are overridden
- avoid "falling back to single test case" messages
- fix inspired by aspnet/SignalR#1820
2018-10-28 21:18:57 -07:00
James Newton-King
1c61f3538e
Merge release/2.2
2018-10-27 11:56:04 +13:00
James Newton-King
6bb292cfcc
Add test for metadata precedence ( #8642 )
2018-10-27 07:59:15 +13:00
Pranav K
6c0bbc7458
Merge remote-tracking branch 'origin/release/2.2' into prkrishn/master
2018-10-26 11:36:55 -07:00
Pranav K
5656e7f455
React to CORS changes
2018-10-26 11:10:54 -07:00
Pranav K
ce11eb9b71
Merge pull request #8641 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-10-24 11:19:50 -07:00
Pranav K
2544926b2f
Provide a convenience API to configure ApiBehaviorOptions
2018-10-24 10:10:33 -07:00
James Newton-King
79117fa08a
Merge 2.2 to master
2018-10-23 22:04:56 +13:00
James Newton-King
40959a97e7
Fix link generation of routes with default values ( #8616 )
2018-10-23 16:10:43 +13:00
James Newton-King
e9737a90e5
Endpoing routing 3.0 registration ( #8470 )
2018-10-23 14:04:12 +13:00
Ryan Nowak
a3e999762f
Merge pull request #8630 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-10-22 07:58:36 -07:00
Ryan Nowak
76a30b0911
Remove LinkGenerationTemplate
...
This doesn't really accomplish our goals for 2.2 - I don't have a clear
scenario where I would tell a developer to use this VS something else.
Will reevaluate in 3.0
2018-10-21 15:39:59 -07:00
Pranav K
79458c16fd
Merge pull request #8626 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-10-19 13:57:59 -07:00
Patrick Westerhoff
ddbe0fef26
Allow custom handling of antiforgery failures
...
To enable custom handling of antiforgery validation failures, use an
`AntiforgeryValidationFailedResult` which is just a `BadRequestResult`
but allows to be identified explicitly inside always-running result
filters using the `IAntiforgeryValidationFailedResult` marker interface.
2018-10-19 13:47:08 -07:00
Pranav K
8a183bb4f4
Allow serving Razor files with leading underscore
...
Fixes https://github.com/aspnet/Mvc/issues/8617
2018-10-19 13:43:35 -07:00
Pranav K
1c1aabc605
Merge branch 'master' into merge/release/2.2-to-master
2018-10-17 16:22:55 -07:00
Pranav K
27e75e7a51
Add a switch to allow turning on ValidationVisitor shortcircuiting ( #8599 )
2018-10-17 15:47:01 -07:00
Pranav K
5f42d5063e
Merge remote-tracking branch 'origin/release/2.2'
2018-10-12 15:58:08 -07:00
Pranav K
fb57810f29
Shortcircuit validation when using default validator providers and no validation metadata is discovered
...
Fixes https://github.com/aspnet/Mvc/issues/5887
2018-10-12 14:47:06 -07:00
Pranav K
a40c1f2d02
Use compat flag to drive XML ProblemDetails formatting
2018-10-12 14:15:28 -07:00
Pranav K
164d14064c
Use casing for ProblemDetails that specified by RFC
...
* Use JsonProperty.MemberName to specify lowercase casing for ProblemDetails properties -
https://tools.ietf.org/html/rfc7807#section-3
* Use XML NS and lowercase for Xml elements specified by RFC -
https://tools.ietf.org/html/rfc7807#appendix-A
Fixes https://github.com/aspnet/Mvc/issues/8501
2018-10-12 14:15:28 -07:00
Pranav K
f6fc34aff9
React to CORS changes
2018-10-11 12:23:43 -07:00
James Newton-King
ce7d77aa09
Merge pull request #8577 from dotnet-maestro-bot/merge/release/2.2-to-master
2018-10-11 08:10:56 +13:00
James Newton-King
9daf5ff7a4
Fix PageRouteTransformerConvention with custom page routes ( #8576 )
2018-10-10 18:33:30 +13:00
Ryan Nowak
d37052c467
Merge branch 'release/2.2'
2018-10-08 16:32:01 -07:00
Ryan Nowak
6cee2431f1
React to routing changes
2018-10-08 15:45:32 -07:00
David J. Quiroga
956441aa68
Ignore created URI if Assembly.CodeBase contains a fragment ( #8556 )
...
* Fixes #8367
2018-10-08 10:41:04 -07:00
Ryan Nowak
37decc5ce6
Merge branch 'release/2.2'
2018-10-05 21:58:13 -07:00
Ryan Nowak
384b814349
React to IEndpointSelectorPolicy changes
2018-10-05 21:03:53 -07:00
Doug Bunting
5a5bb47860
Merge branch 'master' into merge/release/2.2-to-master
2018-10-04 16:04:25 -07:00
Doug Bunting
5bddd226a3
Use Internal.AspNetCore.Sdk as an MSBuild SDK
...
- should resolve issues with occasional strange MSBuild caching issues in this repo
- modeled after aspnet/Scaffolding#905
- follows aspnet/BuildTools#729 recommendation to check in global.config file
- see also Microsoft/msbuild#2914
- use newer KoreBuild
- `.\build.cmd -update /t:noop`
2018-10-04 15:12:38 -07:00
Pranav K
153165f9ad
Handle OPTIONS requests without a handler in Razor Pages ( #8528 )
...
* Handle OPTIONS requests without a handler in Razor Pages
Fixes #7438
2018-10-04 12:25:36 -07:00
Pranav K
523b2223ad
Merge pull request #8551 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-10-04 09:46:45 -07:00
James Newton-King
94101a9cde
Add PageRouteTransformerConvention ( #8541 )
2018-10-04 17:34:26 +13:00
James Newton-King
d30678e08e
Merge branch 'merge/release/2.2-to-master'
2018-10-04 16:17:48 +13:00
James Newton-King
7854d65c11
Support page parameter in attribute route ( #8530 )
2018-10-04 14:39:40 +13:00
Pranav K
60325c8010
Merge pull request #8537 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-10-02 14:25:28 -07:00
Pranav K
a48e75dfb4
Implicitly set content type for ObjectResults containing ProblemDetails ( #8512 )
...
* Implicitly set content type for ObjectResults containing ProblemDetails
Fixes #8467
2018-10-02 10:24:38 -07:00