Commit Graph

43822 Commits

Author SHA1 Message Date
damianedwards 1c5362bccb Added support for hierarchical culture fallback:
- Enabled by default and configured by RequestLocalizationOptions.FallbackToAncestorCulture/FallbackToAncestorUICulture
- Tries all candidate cultures first before trimming the list to parents and trying again, until a match is found, depth limit is reached, or none is found
- Updated functional tests to cover fallback case
- #112
2015-12-15 14:56:04 -08:00
Victor Hurdugaci 77bcf111fb All line endings 2015-12-15 14:44:00 -08:00
Victor Hurdugaci 28474fdc75 Fix line endings 2015-12-15 14:34:41 -08:00
Ryan Nowak 3280ff6ac5 Add Header support
This change adds support for retrieving an antiforgery CSRF token via a
configurable header in addition to the form field. This helps with doing
ajax requests in a 1st-party SPA when using cookie auth, and is similar to
functionality provided by a bunch of different frameworks.

In this change there's also a bunch of churn due to avoiding the term
'form' in favor of 'request' and 'session' in favor of 'cookie'. Where
code and error message now mention 'form' they specifically mean
form-encoded content.
2015-12-15 14:18:09 -08:00
javiercn c61cc65db3 [Fixes #3705] Bring back render partial 2015-12-15 12:20:06 -08:00
Nate McMaster cade3de890 Skip tests that fail to due threading bugs in Mono 2015-12-15 11:58:56 -08:00
Nate McMaster 4c56ac6548 Refactor EF tests database creation/deletion 2015-12-15 11:58:40 -08:00
ryanbrandenburg 5074bf0c57 * Default ResourcePath behavior is to look next to .cs file 2015-12-15 11:53:55 -08:00
Victor Hurdugaci 3e6551f80d Move KoreBuild-dotnet from release 2015-12-15 11:53:41 -08:00
Pranav K e384b7d4d0 Remove ErrorPageOptions 2015-12-15 11:08:47 -08:00
Pranav K 2baf6fecf5 Allow inline configure of options in UseDeveloperExceptionPage
Fixes #219
2015-12-15 10:57:24 -08:00
moozzyk 83cff16715 Changing the folder of ARM version of libuv to win7-arm
Depends on: https://github.com/aspnet/libuv-build/pull/4
Fixes: https://github.com/aspnet/Home/issues/1111
2015-12-15 10:37:29 -08:00
Mohammad Rahhal 8e38584800 Fix typo 2015-12-15 09:49:54 -08:00
Brennan cbc201ac26 Remove unused OnExecute 2015-12-15 08:53:41 -08:00
Doug Bunting c3c0b45225 Move functional tests of CORS middleware to this repo
- related to aspnet/Mvc#3612
2015-12-15 08:42:26 -08:00
SteveSandersonMS 269b31469c Slight simplification 2015-12-15 15:15:16 +00:00
SteveSandersonMS 39f7f1649f Add example of server and client validation for React 2015-12-15 12:47:52 +00:00
Ajay Bhargav Baaskaran bbba9dcde6 [Fixes #3524] Handle negative long values in TempData correctly 2015-12-15 00:17:37 -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
Doug Bunting 1b7e67211f Do not override default `Layout` value
- #3745
2015-12-14 19:09:57 -08:00
Pranav K 736f2bcefb Adding Travis and AppVeyor badges 2015-12-14 16:28:23 -08:00
N. Taylor Mullen 29ea696c5a Add `Model` assessor to `ViewResult` for MVC5 portability.
#3495
2015-12-14 16:16:41 -08:00
Brennan 09278f7013 Adding logging event ids 2015-12-14 15:03:06 -08:00
Pavel Krymets 29e87e314a Fix coreclr registry and file system related tests 2015-12-14 14:41:03 -08:00
Ryan Nowak 1126d47b3e React to breaking changes in RouteBuilder 2015-12-14 14:40:38 -08:00
Brennan c41be75796 Wrap Branch in try finally 2015-12-14 14:02:54 -08:00
Ryan Nowak cb39589864 Add extension methods for using routing with Middleware 2015-12-14 13:21:50 -08:00
Martin Johns 5e837b4eef Reduce overuse of null-conditional operator 2015-12-14 10:47:15 -08:00
Chris R 965a86e404 #593 Convert samples to use UserSecrets. 2015-12-14 10:46:22 -08:00
Ryan Nowak a2393f21be Adds ControllerBase to Mvc.Core
This change adds a base class for controllers to Mvc.Core that can be used
without a dependency on views, json, etc.

Most of the functionality on Controller moves to ControllerBase. I kept
the IActionFilter and IDisposable functionality on Controller since it's
not really a fit with the 'minimal' philosophy.
2015-12-14 10:29:55 -08:00
John Luo 455d865948 Fixing deadlock hang in test when running in single threaded environment 2015-12-14 10:14:32 -08:00
Ryan Nowak cc501bc025 HttpMethodConstraint -> HttpMethodRouteConstraint
This is consistent with other constraint types in routing, and avoids a
naming conflict with MVC.

This is a change **away** from the names used in System.Web and
System.Web.Http.Routing, but it seems worth doing for consistency and
clarity.
2015-12-14 10:10:17 -08:00
Ryan Nowak ad3c460500 React to breaking in IRouteConstraint 2015-12-14 10:08:09 -08:00
Kiran Challa 05dcc22da7 Temporarily disabling smoke tests from running on Mono 2015-12-14 10:07:06 -08:00
Ryan Nowak 604fc6bb54 Fix #248 Add HttpMethodRouteConstraint
Constraint code ported from WebAPI2. Tests are new.

Also a bunch of misc cleanup for constraints.
- Move IRouteConstraint to abstractions
- Fix namespace of a constraint
- Some general style cleanup
- use RouteValueDictionary in the public API
2015-12-14 08:52:47 -08:00
Ryan Nowak ee6ef3f25f Last part of #3676
Uses the correct IEnumerable<> in validation strategies
2015-12-14 08:52:44 -08:00
Brennan 59b32934e3 Change Expires to DateTimeOffset 2015-12-14 08:27:59 -08:00
SteveSandersonMS ef7e136f6e Remove unnecessary (and currently non-existent) namespace 2015-12-14 14:39:47 +00:00
Steve Sanderson 75b959d459 Merge pull request #23 from henkmollema/projectjson
Target dotnet TFM's for class libraries
2015-12-14 13:58:14 +00:00
SteveSandersonMS 2e0aed8138 Slight simplification to MusicStore build process 2015-12-14 13:57:57 +00:00
Henk Mollema c56282a452 More changes 2015-12-14 14:54:32 +01:00
Henk Mollema d946c4b5b8 Address PR feedback 2015-12-14 14:51:41 +01:00
SteveSandersonMS 80575a092e Don't ignore synchronous errors when calling Node 2015-12-14 13:16:39 +00:00
Steve Sanderson 918d8d422a Merge pull request #22 from gregbty/master
Replace express with native node calls
2015-12-14 12:50:00 +00:00
SteveSandersonMS e9ba74761d Fixes 2015-12-14 12:43:56 +00:00
SteveSandersonMS 8a148d8535 Move from ValidationErrorResult to HttpBadRequest, and support object-level errors too 2015-12-14 12:02:41 +00:00
Kiran Challa 0af4e2e32b Disabling tests from running in parallel 2015-12-13 23:02:18 -08:00
Ben Adams dc9f5c433b Update reason phrases to current
Update HTTP reason phrases to current values; are currently original
phrases.
2015-12-13 23:17:03 +00:00
Stephen Halter a696eb89d5 Merge branch 'benaadams/pool-writecontexts' into dev 2015-12-13 02:57:27 -08:00