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
N. Taylor Mullen
964e58723c
Revert "Try out a Karma test or two"
...
This reverts commit d696f268f7 .
2016-01-25 15:35:54 -08:00
Doug Bunting
d696f268f7
Try out a Karma test or two
...
- #1993
2016-01-25 10:50:32 -08:00
N. Taylor Mullen
25eb50120e
Update ASP.NET 5 versions for ASP.NET Core.
...
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:40:26 -08:00
N. Taylor Mullen
3be7fbdf9f
Rename AspNet 5 file contents.
...
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:18:33 -08:00
Ajay Bhargav Baaskaran
a47a7fdccc
Added caching for ActionConstraints
2016-01-21 17:30:08 -08:00
Ajay Bhargav Baaskaran
f0777b95a8
[ Fixes #3868 ] Exclude Antiforgery token in form with method Get
2016-01-21 11:29:41 -08:00
John Luo
249673f2bc
Reacting to hosting rename
2016-01-17 18:13:26 -08:00
javiercn
2063356f24
[ Fixes #3683 ] Replace implementations in MediaTypeComparisons and
...
MediaTypeEncodings with memory efficient implementations using a MediaType
struct.
2016-01-12 15:09:48 -08:00
jacalvar
830fd410f5
Remove runtime dependency usage of MediaTypeHeaderValue.
...
Removes usage of MediaTypeHeaderValue in ApiExplorer, InputFormatters and
OutputFormatters
Public interface changes with stub implementation.
2016-01-12 15:09:46 -08:00
Ryan Nowak
676bde29b9
Make Begin[Route]Form include antiforgery
2016-01-07 13:24:01 -08:00
Pranav K
399e516065
Modify IViewComponentHelper to remove method selection ambiguity.
...
Fixes #612
2015-12-23 10:02:51 -08:00
Hao Kung
9364f896b3
Options renames for functionals
2015-12-21 16:18:22 -08:00
N. Taylor Mullen
aa7ebb343a
Update half of the test websites to use new Hosting API conventions.
...
https://github.com/aspnet/KestrelHttpServer/pull/496
2015-12-18 15:35:13 -08:00
Doug Bunting
900663bfdd
Make `project.json` formatting consistent
2015-12-14 21:51:04 -08:00
Doug Bunting
59824dc7be
MVC functional test cleanup (part 1)
...
- #3612 subpart 2 of 2
- merge `ActionConstraintsWebSite`, `AntiforgeryTokenWebSite` and `ContentNegotiationWebSite` into `BasicWebSite`
- remove tests depending on `ErrorReporterMiddleware` in merged sites; not used in `BasicWebSite`
- delete `CompositeViewEngineWebSite`, `Microsoft.AspNet.Mvc.ViewEngines.CompositeViewEngineTest` covers cases
- delete `CorsMiddlewareWebsite`, soon to be in Cors repo (see aspnet/CORS#57 )
- remove `SendFileMiddleware` from FilesWebSite, unused there
2015-12-14 21:50:55 -08:00
Kiran Challa
57b88baad0
[ Fixes #3624 ] MVC functional test cleanup (part 2)
2015-12-10 16:26:39 -08:00
Kiran Challa
dd774366f6
Addressed feedback
2015-12-03 14:42:14 -08:00
Kiran Challa
9288ab1a34
Removed TempDataWebsite and merged to BasicWebsite and fixed tests
2015-12-03 14:42:11 -08:00
Kiran Challa
3c694ce77c
Movig RequestServicesWebsite to BasicWebsite
2015-12-03 14:42:10 -08:00
ryanbrandenburg
91e837d465
* Debug log exceptions in JsonInput deserializing
2015-11-30 11:19:22 -08:00
Ryan Nowak
8682fe0cfd
Replace ActionBindingContext with ControllerContext
...
This change introduces ControllerContext for inside of Controllers, and
controller-specific extensibility points. ControllerContext carries with
it the model binding infrastructure needed to do all of the things that
controllers need to do.
2015-11-20 15:32:37 -08:00
Kiran Challa
982c7abea8
[ Fixes #3503 ] Removing formatters on a given type only works on collections in MVC options
2015-11-18 09:56:44 -08:00
あまみや ゆうこ
38818a1033
Remove Microsoft.AspNet.Server.IIS from test Websites
2015-10-24 08:04:00 -07:00
Pranav K
f57e180971
Renaming Microsoft.Framework.* -> Microsoft.Extensions.*
2015-10-03 15:44:53 -07:00
Ryan Nowak
a318c4599a
API Review - Split up .Actions
...
Abstractions - Core MVC extensibility
Controllers - MVC implementations of .Abstractions and supporting
contracts
Infrastructure - General purpose support APIs. Metadata APIs that don't
fit clearly with a feature or with .Abstraction
2015-09-21 21:54:02 -07:00
Ryan Nowak
4d55a6e62d
API review - remove DefaultOrder
...
No change in behavior intended, removing this from our public API.
2015-09-20 21:11:57 -07:00
Ryan Nowak
046cb976b3
Move ActionResult classes back to main namespace
2015-09-16 21:42:31 -07:00
Ryan Nowak
229724c4ea
Reorganize MVC namespaces
2015-09-01 22:28:33 -07:00
Ryan Nowak
9d89a8cac3
Homogenize MVC startup code patterns
...
Use builder APIS for both AddMvc() and AddMvcCore()
Change various API patterns to all use .AddXyz(...) off of one or both of
these builders.
2015-08-16 18:48:24 -07:00
Stephen Halter
43064ef8b6
React to Kestrel rename
...
aspnet/KestrelHttpServer#11
2015-08-11 16:30:03 -07:00
Doug Bunting
6106375306
Add `HttpOkResult`, `HttpOkObjectResult`, and `Ok()` methods in `Controller`
...
- #2825
- new class names align with existing types such as `HttpNotFoundResult` and `HttpNotFoundObjectResult`
- remove similar types from WebApiCompatShim and use replacements in `ApiController`
- `NegotiatedContentResult<T>` remains because Core doesn't have an exact replacement
nits:
- add missing periods in some `Controller` doc comments
2015-07-23 18:49:36 -07:00
Ryan Nowak
ccb2f2deda
React to move of StatusCodes
2015-07-08 12:43:33 -07:00
Ajay Bhargav Baaskaran
e2787b3b84
[ Fixes #2715 ] Removed formatter dependency from JsonResult and JsonViewComponentResult
2015-06-25 14:09:32 -07:00
Ajay Bhargav Baaskaran
48e0b3261c
[ Fixes #2547 ] Fixed attribute value prefix with dynamic content being ignored
2015-05-18 17:15:38 -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
Kiran Challa
4bed2e6f2b
[ Fixes #2545 ] RedirectToRouteResult doesn't use RouteName property when calculating destination URL
2015-05-13 12:35:25 -07:00
James Newton-King
ab4cd5c4c4
Add JsonHelper for serializing JSON in views
...
- remove NotNull from JsonHelper Serialize
2015-05-11 16:01:08 -07:00
Ajay Bhargav Baaskaran
d6012d4297
[ Fixes #2506 ] Added overload to Controller.Json to accept JsonSerializerSettings
2015-05-11 12:36:45 -07:00
N. Taylor Mullen
64e726d2b2
Update LICENSE.txt and license header on files.
2015-05-01 13:55:25 -07:00
Doug Bunting
393aa54545
Update .xproj files for Microsoft.Web.AspNet.* -> Microsoft.DNX.* rename
2015-04-02 13:49:27 -07:00
Doug Bunting
fc1017fba8
Quick fixes: Clean up test code
...
- remove useless `configuration` variables and `Configuration` instances
- remove "Review" code comment
- unintentionally included in commit 4b5dd19
- reduce repeated code in `TestHelper` for functional tests
- `CreateServer()` methods had duplicate code, an ambiguous match, and an odd order
- rename `GetTestConfiguration()` to `UseCultureReplacer()` in functional tests
2015-03-24 13:42:27 -07:00
Hao Kung
4b5dd199ca
React to hosting changes
2015-03-19 11:07:25 -07:00
sornaks
d2bdd4f1d4
Removing 'Options' from ConfigureMvcOptions and ConfigureRazorViewEngineOptions.
2015-03-17 13:35:26 -07:00
Kiran Challa
f06007d428
[ Fixes #2156 ] Remove IConfiguration from AddMvc
2015-03-14 00:02:53 -07:00
N. Taylor Mullen
c1a026cbf7
Update .kproj => .xproj.
2015-03-11 14:01:43 -07:00
N. Taylor Mullen
1d578ca2fd
Remove BOM from project.json, *.cmd, *.sh and *.shade files.
2015-03-09 12:56:42 -07:00
N. Taylor Mullen
e829ba7646
Update aspnet50/aspnetcore50 => dnx451/dnxcore50.
2015-03-08 12:52:24 -07:00
Yishai Galatzer
ed8e5716ea
Remove INestedProviderXXX
...
React to aspnet/DependencyInjection#179
2015-02-23 15:18:39 -08:00
Harsh Gupta
e0f7c1b810
Fixing Readme
2015-02-19 10:20:16 -08:00