Commit Graph

30376 Commits

Author SHA1 Message Date
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
Cesar Blum Silveira 551d559ada Enable Microsoft.AspNet.Session.Tests on CoreCLR. 2015-10-16 11:35:58 -07:00
Cesar Blum Silveira 4165ee02c1 Enable some tests on CoreCLR. 2015-10-16 11:15:34 -07:00
Cesar Blum Silveira fb6bbee561 Call correct build.sh when building repos. 2015-10-16 11:00:52 -07:00
Ajay Bhargav Baaskaran 6ef2fe44ca [Fixes #3250] Remove RouteGroup from RouteValues 2015-10-16 10:57:22 -07:00
ryanbrandenburg 7dac0986c2 * Fix PageGenerator
* Generate pages on build
 * Add copyable stacktrace to error page
2015-10-16 10:44:55 -07:00
Chris R b144f5fd7c React to HttpRequestIdentifierFeature default change. 2015-10-16 10:15:56 -07:00
Victor Hurdugaci 69ed946970 Move compiler shared to its own folder 2015-10-16 10:11:09 -07:00
あまみや ゆうこ 912aaaa9d2 To correct word spell 2015-10-16 09:49:04 -07:00
N. Taylor Mullen 2d4092ca32 Add line pragmas to dynamic attributes.
- This enables debugging and proper error reporting for dynamic attributes. Without the pragmas errors would showcase generated Razor C# instead of their corresponding .cshtml files.
- Did not have to do any `TagHelper` specific changes since they utilize the same core attribute rendering logic.
- Updated generated C# files for tests.

#569
2015-10-16 09:41:12 -07:00
Ryan Nowak 221df71425 Incorporate StringSegment from primitives 2015-10-16 08:39:58 -07:00
Eilon Lipton b5712ef176 Remove a bunch of unused test code
The tests were testing nothing but themselves!
2015-10-15 23:00:10 -07:00
Eilon Lipton 3c925fc4bf Fix package descriptions with proper casing
#468
2015-10-15 22:30:11 -07:00
Doug Bunting 9b004611e5 Address PR comments for 2e2043f (PR #3317)
- remove redundant `null` check in `InputFormatter`
- improve comments
- rename `ObjectResult.SelectFormatterBasedOnTypeMatch()` -> `SelectFormatterNotUsingAcceptHeaders()`
2015-10-15 20:26:03 -07:00
Stephen Halter 8e818e3549 Address PR feedback 2015-10-15 16:52:37 -07:00
Hao Kung 8359038927 Address remaining PR feedback + misc cleanup 2015-10-15 16:51:12 -07:00
Chris R 4083c18d1e Merge pull request #441 from benaadams/patch-2
Comment cleanup
2015-10-15 16:45:24 -07:00
Ben Adams 3276115877 Comment sp 2015-10-16 00:40:37 +01:00
Pranav K f8b39bea63 Reacting to Cors rename 2015-10-15 16:00:05 -07:00
Stephen Halter 7b315d2470 Close connection gracefully in Frame.ProduceEnd
- Try sending a FIN before closing the socket
- Don't attempt to send a FIN twice for the same connection
2015-10-15 15:35:40 -07:00
Stephen Halter 513abb4561 Log errors in OnStarting and OnCompleted 2015-10-15 15:35:38 -07:00
Stephen Halter b98425d3b1 Log unhandled exceptions thrown from the AppFunc 2015-10-15 15:35:36 -07:00
N. Taylor Mullen ed617d17e9 Remove linemappings file. 2015-10-15 15:20:57 -07:00
Kiran Challa c36b89aa16 Unskip a test as it has been fixed in dnx 2015-10-15 14:26:10 -07:00
Chris R 7d62a188e1 Merge pull request #440 from benaadams/move-request-identifier
Expose TraceIdentifier on Httpcontext
2015-10-15 14:16:30 -07:00
Ben Adams e01a05d214 Move RequestIdentifierFeature to HttpContext
Rebased #435
Allow lazier instantiation
Expose TraceIdentifier on Httpcontext
Also resolves #412

Add tests
2015-10-15 22:00:45 +01:00
Chris R 08d17b2631 React to Authentication changes. 2015-10-15 13:47:22 -07:00
Kiran Challa 475771250b [Fixes #41] Api review changes 2015-10-15 13:16:34 -07:00
Kiran Challa fbf66168fe React to Cors api review changes 2015-10-15 13:05:08 -07:00
Chris R c93e4f09f2 React to Authentication changes. 2015-10-15 10:09:33 -07:00
Chris R d2835b6d22 React to Authentication changes. 2015-10-15 09:35:48 -07:00
Chris R dbe4327932 React to Authentication API changes. 2015-10-15 09:24:14 -07:00
David Fowler d565659de7 Merge pull request #420 from benaadams/Features-perf
Remove FeatureReference indirection
2015-10-15 04:03:23 -07:00
Hao Kung 409b50269a Add RemoteAuthenticationHandler base/error handling logic 2015-10-14 23:08:43 -07:00
Hao Kung fd17481a73 React to AuthZ changes 2015-10-14 17:04:31 -07:00
Pranav K 2dcec8fe51 React to Kestrel package rename
Fixes #3323
2015-10-14 16:39:13 -07:00
Stephen Halter 611eaeb761 Add test for large blocks not taken from slab 2015-10-14 16:11:38 -07:00
Stephen Halter 7c27c5c0e7 Better handle blocks not taken taken from slabs
- If the block needs to be larger than 4032 bytes it won't be backed by a slab
2015-10-14 16:05:35 -07:00
Ben Adams 1f4ca55799 Features performance
Use FeatureCacheHelpers static methods rather than struct FeatureReference by default for lower allocation
2015-10-14 23:59:29 +01:00
Ajay Bhargav Baaskaran d40e6612a4 Moving the order of generated hidden tags for checkbox to end of the form
- #2994
- Affects both HtmlHelper and TagHelper scenarios
- Checkboxes not enclosed in a form will generate inline hidden tags
- Added necessary properties to FormContext
- Added some functional and unit tests
2015-10-14 15:43:13 -07:00
Hao Kung d28c6e1dbb Changes for error handling in Authentication 2015-10-14 14:44:50 -07:00
Kiran Challa 661477a4bf Fixed tests 2015-10-14 13:13:18 -07:00
Kiran Challa ca2c7f7aaa Reacting to testing changes 2015-10-14 12:10:42 -07:00
Doug Bunting 0581bcf008 Update `MediaTypeHeaderValue.IsSubsetOf()` to perform consistent checks
- aspnet/Mvc#3138 part 1/2
  - check parameters with same polarity as type and subtype
    - ignore quality factors
  - bug was obscured because MVC has no formatters supporting wildcard media types

nits:
- add doc comments
- spelling
- correct typo in a `project.json` file
2015-10-14 12:07:07 -07:00
Doug Bunting 03625c38af Correct polarity of MediaTypeHeaderValue.IsSubsetOf()` checks and remove one conneg fallback
- aspnet/Mvc#3138 part 2/2
- request's Content-Type header must be a subset of what an `IInputFormatter` can consume
  - `[Consumes]` is similar
- what an `IOutputFormatter` produces must be a subset of the request's Accept header
  - `FormatFilter` and `ObjectResult` are similar
- `ObjectResult` no longer falls back to `Content-Type` header if no `Accept` value is acceptable
- left `WebApiCompatShim` code alone for consistency with down-level `System.Net.Http.Formatting`
- correct tests to match new behaviour
  - do not test `Accept` values containing a `charset` parameter; that case is not valid

WIP:
- four test failures; something about comparing media types w/ charset included
- why do some localization tests fail in VS?

nits:
- add `InputFormatterTests`
- add / update comments and doc comments
- correct xUnit attributes in `ActionResultTest`; odd it doesn't show up in command-line runs
2015-10-14 11:59:20 -07:00
Doug Bunting 2e2043f427 Test `[FromServices]` with service that is not available
- test `[FromServices]` for a defined type without a `BinderModelName`
- test `[FromServices]` for a service not available in DI
- test `[FromServices]` for `IEnumerable<TService>` properties

nit: correct name of `ServicesModelBinderTest` to match the model binder class
2015-10-14 11:46:11 -07:00
Stephen Halter 412d527d01 Check all DNX_HOME env variables in LibuvCopier
- Report error if the HOME env variable is required and not set on Linux
2015-10-14 11:44:18 -07:00