Commit Graph

37666 Commits

Author SHA1 Message Date
N. Taylor Mullen 039062c5eb Fix C# design time projections for complex TagHelper attributes.
- TagHelper attributes that have expressions intermingled within them (resulting in Block elements) resulted in Spans in the attribute being falsely marked as SpanKind.Markup.
- Updated tests to account for new SpanKind.Code behavior.
- Added complex scenario to validate SpanKind.Code is flowed through to surround attributes.

#387
2015-06-25 10:27:03 -07:00
Hisham Abdullah Bin Ateya bbc7393d22 Fix docs in 'SessionOptions' 2015-06-25 20:20:16 +03:00
Chris R 652d885402 #177 Immutable HeaderValue objects. 2015-06-25 09:34:14 -07:00
Hisham Abdullah Bin Ateya 9ce60218c1 Make 'SessionDefaults' fields as Constants 2015-06-25 09:07:17 -07:00
Ryan Nowak f055618c8c Update MVC Enumerable service registrations
Updates MVC service registration code to use the new TryAddEnumerable
overload (idempotence++).

Some other misc cleanup to improve idempotence.
2015-06-24 18:44:36 -07:00
Doug Bunting 37f056ce2b [quick fixes] Cleanup a few things StyleCop found ages ago
- was trying out rules matching frequest PR comments (then)
 - did a manual scan to find new instances of same issues
- "" -> `string.Empty`
- `String` -> `string` and similar
- fill empty XML doc elements
 - ignored `JsonPatchDocument<TModel>`; just too many empty elements
- corrected missing / extra / out-of-order `<param>` descriptions
 - `xml-docs-test` detects incorrect external references but not these local issues
2015-06-24 16:37:39 -07:00
Ryan Nowak b3e92da7d8 Add an IAntiforgery interface and simplify API 2015-06-24 15:56:03 -07:00
Doug Bunting 9c63d1d842 Get tests working with `core.autocrlf=false`
- #1514
- refactor `RazorCompilationService` to allow a test subclass that normalizes Razor file line endings
 - add `TestRazorCompilationService` to `RazorPageExecutionInstrumentationWebSite`
 - adjust line endings to match in `RazorPageExecutionInstrumentationTest`
- add `ignoreLineEndingDifferences: true` to `Assert.Equal()` calls
 - responses on Windows can have a mix of line endings
  - `git config` setting affects line endings in .cshtml (and baseline) files
  - however MVC and Razor mix `Environment.NewLine`s into HTTP responses
- update `PrecompilationTest` to split response regardless of line endings
- update `ResourceFile` to normalize all source file streams to LF only
 - ensures consistent checksums and line mappings
 - change `MvcRazorHostTest` to expect new line mappings
 - recreate baseline files to expect new checksums and literal line endings
- use verbatim strings in affected tests
 - careful use of `Environment.NewLine` in expectations is now just noise

nits:
- add doc comments in `RazorCompilationService`
- correct `TagHelpersTest` name to match containing file
- avoid incorrect `using` removal when `GENERATE_BASELINES` is not defined
- remove unnecessary `ResourceFile` normalization of output files
2015-06-24 14:53:07 -07:00
Pranav K 6d5ac18d0c Use dnvm run instead of switching using dnvm use 2015-06-24 14:35:02 -07:00
Murat Girgin c343cb2e9f Update Queries.md 2015-06-24 13:59:43 -07:00
Pranav K d65251055e Updating dnvm 2015-06-24 13:58:01 -07:00
Murat Girgin 287a8ff33c Update Queries.md
Adding more team members
2015-06-24 13:56:01 -07:00
Chris R 3c9690ed79 Add individual bug queries. 2015-06-24 12:05:14 -07:00
Glenn Condron 609285e2ac Merge pull request #684 from PatrickNausha/dev
Add required script extension.
2015-06-24 11:32:19 -07:00
Mikael Mengistu 12b78a31bf Added more tests and error handling for construction of middleware classes #236 2015-06-24 10:03:56 -07:00
Harsh Gupta 09838fb45a Fixing Tests 2015-06-24 09:56:31 -07:00
ASP.NET Push Bot e81f1ef88b ⬆️ dnvm.ps1, dnvm.cmd, dnvm.sh
Source: AspNet/kvm@3b0dc110c4
2015-06-24 09:51:55 -07:00
Murat Girgin 865ce2b08a Create Queries.md 2015-06-24 09:49:06 -07:00
Doug Bunting a170a4e1e4 Add `ModelBindingContext.IsFirstChanceBinding` and `IsTopLevelObject`
- cleanup duplicate code now that #2445 is fixed
- update unit tests using old `ModelBindingContext` setups
- fix (just) one integration test where `MutableObjectModelBinder` incorrectly calculated
  `isTopLevelObject` and returned a non-`null` model
- undo temporary changes in `BodyModelBinderTests` due to increased reliance on incorrect
  `isTopLevelObject` in #2445 fix

nits:
- combine tests that are now duplicates
- beef up coverage of some `MutableObjectModelBinderTest` cases
- remove unused `using`s
2015-06-24 09:17:29 -07:00
Doug Bunting a8c37e57de Fix build break: React to aspnet/EventNotification#11
- also aspnet/EventNotification@14e8e85
- `NotifierMethodAdapter` was renamed to `ProxyNotifierMethodAdapter`
2015-06-24 09:02:58 -07:00
Doug Bunting 715a0b6021 Add `ModelState` entries for greedy and type-matching model binders
- part II of II for #2445
- `FormCollectionModelBinder` is an exception because container is not user-provided
 - no `ModelState` entry added
- enable tests that #2445 was blocking
 - fix these and other tests expecting different `ModelState` entries
- simplify logic in `FormFileModelBinder`

`ValueProviderResult`
- remove `protected` setters and parameterless constructor
 - no scenario for their use in subclasses; however `ConvertTo()` remains `virtual`
- add single-parameter constructor
 - use in most of the greedy and type-matching model binders
- add doc comments throughout class

nits:
- use new `ValueProviderResult` constructor in many existing tests
- `""` -> `string.Empty` and `vpr` -> `valueProviderResult` in `ValueProviderResultTest`
- improve some test names in `BodyValidationIntegrationTests`
- do not check `Message` of a Json.NET `Exception`
2015-06-23 22:34:55 -07:00
N. Taylor Mullen c77f3978d4 Change hardcoded `bash` shebang to `env`
- aspnet/Home#695
- support various ash installation locations
- in particular, enable building on FreeBSD
2015-06-23 16:52:04 -07:00
Arthur Vickers 88288ae9d3 React to EF name changes 2015-06-23 16:00:56 -07:00
Arthur Vickers 3ad117ac83 React to EF name changes 2015-06-23 16:00:47 -07:00
Arthur Vickers 33a673cd35 React to EF name changes 2015-06-23 16:00:32 -07:00
Harsh Gupta b1ade8f2cf Add single csv values so that there is a single response header added per value. 2015-06-23 15:57:09 -07:00
Thomas L. Kjeldsen 1dd1411ca6 Merge remote-tracking branch 'upstream/dev' into dev 2015-06-23 23:54:29 +02:00
Henk Mollema 3d53334a03 Update README.md 2015-06-23 14:29:13 -07:00
Hao Kung ee8baab1ed Nuke RequestServicesContainer (inline instead) 2015-06-23 13:44:06 -07:00
Hao Kung f4f7fac189 Remove extra config param that's not used 2015-06-23 13:30:55 -07:00
Ryan Nowak 6471ef34a7 Add Antiforgery to repo list 2015-06-23 12:20:47 -07:00
Hao Kung 3e3fcb54a8 Merge remote-tracking branch 'edz/EFStoreTryAdd' into dev 2015-06-23 12:18:48 -07:00
Ryan Nowak 9eeb1de68f Use DI for all Antiforgery services
This change makes it possible to replace all of the various
IAntiforgery*** extensibility points via DI.

changes:
- Move functionality out of AntiforgeryWorker into Antiforgery
- Move services to DI (instead of constructed by Antiforgery)
- Cleanup how application/cookie-name is computed
- Merge IAntiforgeryTokenGenerator & IAntiforgeryTokenValidator
- Unseal classes
- Fix use of options in services
- Misc test cleanup
2015-06-23 12:13:01 -07:00
Doug Bunting a710c55ba9 Change hardcoded `bash` shebang to `env`
- aspnet/Home#695
- support various `bash` installation locations
- in particular, enable building on FreeBSD
2015-06-23 12:11:32 -07:00
Chris R 38f70a02f7 #125 Add a Hosting dependency and Program.Main. 2015-06-23 11:55:59 -07:00
Doug Bunting 210c73279c Change hardcoded `bash` shebang to `env`
- aspnet/Home#695
- support various `bash` installation locations
- in particular, enable building on FreeBSD
2015-06-23 11:44:10 -07:00
Doug Bunting 41dba1fea1 Change hardcoded `bash` shebang to `env`
- aspnet/Home#695
- support various `bash` installation locations
- in particular, enable building on FreeBSD
2015-06-23 11:43:31 -07:00
Doug Bunting 445e046754 Change hardcoded `bash` shebang to `env`
- aspnet/Home#695
- support various `bash` installation locations
- in particular, enable building on FreeBSD
2015-06-23 11:40:43 -07:00
Ajay Bhargav Baaskaran 4a4b8ec87e Made JsonOutputFormatter consistent with JsonInputFormatter 2015-06-23 11:39:59 -07:00
Ajay Bhargav Baaskaran f206cf6759 Removed IJsonOutputFormatter 2015-06-23 11:39:53 -07:00
Ajay Bhargav Baaskaran 5632a33098 Removed unnecessary log statement 2015-06-23 11:12:06 -07:00
Doug Bunting c858e3bfcd Change hardcoded `bash` shebang to `env`
- aspnet/Home#695
- support various `bash` installation locations
- in particular, enable building on FreeBSD
2015-06-23 11:06:44 -07:00
Doug Bunting 43b428941b Change hardcoded `bash` shebang to `env`
- aspnet/Home#695
- support various `bash` installation locations
- in particular, enable building on FreeBSD
2015-06-23 11:06:12 -07:00
Doug Bunting 864d5e0b39 Change hardcoded `bash` shebang to `env`
- aspnet/Home#695
- support various `bash` installation locations
- in particular, enable building on FreeBSD
2015-06-23 11:05:23 -07:00
Doug Bunting a73867eabe Change hardcoded `bash` shebang to `env`
- aspnet/Home#695
- support various `bash` installation locations
- in particular, enable building on FreeBSD
2015-06-23 11:03:41 -07:00
Doug Bunting a29188444e Change hardcoded `bash` shebang to `env`
- aspnet/Home#695
- support various `bash` installation locations
- in particular, enable building on FreeBSD
2015-06-23 11:02:33 -07:00
Doug Bunting 30b7c31345 Change hardcoded `bash` shebang to `env`
- aspnet/Home#695
- support various `bash` installation locations
- in particular, enable building on FreeBSD
2015-06-23 11:02:01 -07:00
Doug Bunting 14c4f46359 Change hardcoded `bash` shebang to `env`
- aspnet/Home#695
- support various `bash` installation locations
- in particular, enable building on FreeBSD
2015-06-23 11:00:06 -07:00
Doug Bunting d5c9599668 Change hardcoded `bash` shebang to `env`
- aspnet/Home#695
- support various `bash` installation locations
- in particular, enable building on FreeBSD
2015-06-23 10:59:34 -07:00
Doug Bunting c83ff60275 Change hardcoded `bash` shebang to `env`
- aspnet/Home#695
- support various `bash` installation locations
- in particular, enable building on FreeBSD
2015-06-23 10:58:52 -07:00