Commit Graph

40898 Commits

Author SHA1 Message Date
Hao Kung 2b259e8b99 Remove deprecated AddCookieAuthentication methods 2015-10-20 13:56:40 -07:00
Hao Kung e0464c9508 Add some basic logging to AuthZ/N 2015-10-20 13:47:59 -07:00
Ryan Nowak 173f00fda7 Update to use DiagnosticSource 2015-10-20 11:47:29 -07:00
Ryan Nowak 054b39013c Reduce allocations in MSD enumeration 2015-10-20 10:35:16 -07:00
Rowan Miller 2e884f20f7 📝 Add doc comments to database error page 2015-10-20 10:18:10 -07:00
Rowan Miller 1c26436041 Bring back "Apply Migrations" button on database error page
Mostly just a revert of the commit that removed this functionality, with a few changes:
* Perform proper JavaScript encoding in the script part of the database error page Views/BaseView.cs
* Use the builder pattern in the UseXyz extension methods on IApplicationBuilder (per #184). Also applying this to DatabaseErrorPageOptions to keep things consistent.
* Fixing a few tests that were getting the context from DI but putting it in a using block so that it got disposed (rather than letting DI handle disposing).
2015-10-20 09:29:15 -07:00
Rowan Miller 111dab7ddf 🐛 No database error page for existing databases
When there is an existing database and no migrations are present, then we should just display the standard error page as they are not using migrations and need to adjust their mapping code to match the existing schema.
Resolve #182
2015-10-20 09:23:42 -07:00
あまみや ゆうこ 19d0337735 Update project.json 2015-10-20 19:42:43 +08:00
Ryan Nowak 6985015e2d Fix test breaks in WebAPI shim
This hasn't hit universe yet, but these needed to change with the
ObjectResult refactor
2015-10-19 18:00:02 -07:00
John Luo 828e8d755e reacting to telemetry rename 2015-10-19 17:21:15 -07:00
John Luo 793504843e reacting to telemetry rename 2015-10-19 17:17:40 -07:00
DamianEdwards 7ed6a6cb57 Add doc-comments for main APIs
- Coherence-Signed#75
2015-10-19 16:33:19 -07:00
Kirthi Krishnamraju 82cba7c0b2 react to aspnet/localization #90 2015-10-19 16:15:57 -07:00
Doug Bunting 207e97db7a Fix DNX Core testing on Windows
- avoid `cmd /C dnvm.cmd ...` because `cmd` does not report `.cmd` script exit code correctly
  - change both `_dnu.shade` and `_k.shade` though `_k.shade` is more-often an issue
- @moozzyk reported problem in [discussion](https://github.com/aspnet/Universe/pull/299#discussion-diff-41954492) of PR #299
2015-10-19 15:41:13 -07:00
Eilon Lipton c0242240f8 Adding doc comments for frequently used APIs
Some copied from older docs.
Also renamed BuilderExtensions type to a more specific name.
2015-10-19 15:25:59 -07:00
Hao Kung 4ce3efd28f Add event ids for logging 2015-10-19 15:02:10 -07:00
Cesar Blum Silveira c765fedb21 Fix CoreCLR test pass on Linux (fixes #15). 2015-10-19 14:50:46 -07:00
DamianEdwards 8bab053107 CR feedback 2015-10-19 14:32:04 -07:00
Cesar Blum Silveira f00c7c6d06 Fix CoreCLR test pass on Linux (fixes #442). 2015-10-19 14:27:01 -07:00
DamianEdwards dade325ac8 CR feedback 2015-10-19 14:19:03 -07:00
Eilon Lipton fd54c5af21 Add lots of missing doc comments.
Also did some minor renames to match extension method patterns.
2015-10-19 13:02:05 -07:00
Stephen Halter 8f0d1179ab Allow Nagle’s algorithm to be disabled via IKestrelServerInformation.NoDelay 2015-10-19 12:44:21 -07:00
Ryan Nowak 06cc58663e Move implementation of ObjectResult into a facade 2015-10-19 11:56:03 -07:00
Ajay Bhargav Baaskaran 0f78135f5d Moving AllowAnonymous attribute from MVC 2015-10-19 11:02:20 -07:00
Ajay Bhargav Baaskaran 6bd97c7c30 Moving AllowAnonymous attribute to Authorization 2015-10-19 11:01:15 -07:00
DamianEdwards 585c445366 More doc-comments & added IsStaging 2015-10-19 10:59:39 -07:00
DamianEdwards 5279786748 Added doc-comments to IHostingEnvironment
- Coherence-Signed#75
2015-10-19 10:51:08 -07:00
Pranav K 0ea0a44e15 Refactoring script to create master branch 2015-10-19 10:45:56 -07:00
Kirthi Krishnamraju 90116ddd78 fix #90: ResourceStringLocalizerFactory creates string localizer based on resourcetype's name instead of full name 2015-10-19 10:39:05 -07:00
Pranav K f4a6d634b5 Modify ViewStartUtility to generate always view paths with forward slashes
Fixes #3294
2015-10-19 10:33:05 -07:00
Chris R b437669e93 React to ISecureDataFormat changes. 2015-10-19 10:06:56 -07:00
Eilon Lipton 121e6891e7 Remove log codes from exception/log messages; don't localize logs
https://github.com/aspnet/Security/issues/414 and
https://github.com/aspnet/Security/issues/418

Also started putting in event ids for logs.
2015-10-17 16:50:16 -07:00
ASP.NET Push Bot e9bc588e96 ⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh
Source: aspnet/dnvm@a2bc792684
2015-10-17 10:51:05 -07:00
ASP.NET Push Bot 0b36832db8 ⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh
Source: aspnet/dnvm@a2bc792684
2015-10-17 10:49:47 -07:00
Cesar Blum Silveira f784b1bf43 Enable Microsoft.AspNet.WebSockets.Protocol.Test on CoreCLR. 2015-10-16 16:47:52 -07:00
Chris R c14119b612 #263 Consume ITlsTokenBindingFeature in CookieAuthMiddleware. 2015-10-16 16:31:58 -07:00
N. Taylor Mullen deaf2dc828 Enable `TagHelper`s to properly flatten to enable partial parsing.
- `TagHelper`s used to not flatten correctly resulting in inconsistent start locations for `SyntaxTreeNode`s following/within `TagHelper`s.
- This change indirectly corrected bad indentation that existed in generated C#.
- Added a test to validate `TreesAreDifferent` returns expected behavior when modifying content inside of `TagHelper`.
- Added `TagHelperBlock` `Flatten` test.

#553
2015-10-16 15:57:37 -07:00
Cesar Blum Silveira cea46e7851 Disable Microsoft.AspNet.Cryptography.KeyDerivation.Test on CoreCLR. 2015-10-16 15:49:25 -07:00
Arthur Vickers 1b87767472 Fix bug in test where key value was not being set. 2015-10-16 15:27:39 -07:00
Stephen Halter c809beec18 Don't allocate Exceptions unnecessarily
- Allocate Exceptions in the ReadStart callbacks if necessary instead
  of in UvStreamHandle.
- This also fixes a bug in ListenerSecondary where it should have
  previously been looking at the error code instead of the read count.

#237
2015-10-16 15:25:37 -07:00
Cesar Blum Silveira f0438d69eb Enable Microsoft.AspNet.TestHost.Tests on CoreCLR. 2015-10-16 15:09:54 -07:00
N. Taylor Mullen e943cdb57a React to aspnet/Razor#569 2015-10-16 15:09:31 -07:00
Kirthi Krishnamraju 5f4f6194b8 Add logic in test infrastructure to get runtime for coreclr on mac 2015-10-16 14:45:23 -07:00
Hao Kung 79d3723df5 Merge remote-tracking branch 'ka/dev' into dev 2015-10-16 14:02:41 -07:00
unknown 6a4da5d795 PhysicalFileResult throws NotSupported on path not rooted 2015-10-16 13:31:52 -07:00
Hao Kung c847f9c50d Reenable tests / Opt into cascading delete support 2015-10-16 12:44:18 -07:00
Chris R 42cba79e01 Enable tests for CoreCLR. 2015-10-16 12:40:39 -07:00
Ryan Nowak 32645e93c8 Add expression rewriting to Razor
This change rewrites simple and safe Expression<Func<T, U>> expressions
into accesses to readonly fields. This allows us to cache the actual
expression and avoid repeatedly allocating and compiling it.

The rewrite is limited to cases where we know that the expression doesn't
capture, and where we support that kind of expression for evaluating
viewdata. In practice this means 'indentity' and property accessors are
allowed.
2015-10-16 12:28:50 -07:00
Chris R f588677bb4 #506 Update to Rc1 IdentityModel, update ValidateUserInfoEndpointResponse. 2015-10-16 12:11:54 -07:00
Victor Hurdugaci ec7d04a178 Use cmd for fast delete 2015-10-16 11:47:37 -07:00