Commit Graph

16875 Commits

Author SHA1 Message Date
Chris Ross 2a9655b8d6
Clear ShutdownTestRun flaky state (#10618) 2019-05-29 17:49:07 -07:00
Ben Adams 231bd526ad Fix linux CI break (#10610) 2019-05-29 14:52:12 -07:00
Artak 95d2f8ee7a
Changing `@functions` block to `@code` block (#10591)
* Changing `@functions` block to `@code` block
2019-05-29 13:36:24 -07:00
Nate McMaster 443d60d8bb
Remove arch from filename for RPM for targeting pack (#10593) 2019-05-29 13:11:51 -07:00
Justin Kotalik e16aa29e67
Make new HttpContext properties virtual (#10613) 2019-05-29 12:47:17 -07:00
Kevin Pilch f1ff37efdb
Clean up some stale comments (#10561)
Addresses AzDO Bug #890301 (https://dev.azure.com/devdiv/DevDiv/_workitems/edit/890301/)
2019-05-28 17:24:11 -07:00
Ryan Nowak 6ca30bbfc9
Add runtime support for Blazor attribute splatting (#10357)
* Add basic tests for duplicate attributes

* Add AddMultipleAttributes improve RTB

- Adds AddMultipleAttributes
- Fix RTB to de-dupe attributes
- Fix RTB behaviour with boxed EventCallback (#8336)
- Add lots of tests for new RTB behaviour and EventCallback

* Harden EventCallback test

This was being flaky while I was running E2E tests locally, and it
wasn't using a resiliant equality comparison.

* Add new setting on ParameterAttribute

Adds the option to mark a parameter as an *extra* parameter. Why is this
on ParameterAttribute and not a new type? It makes sense to make it a
modifier on Parameter so you can use it both ways (explicitly set it, or
allow it to collect *extras*).

Added unit tests and validations for interacting with the new setting.

* Add renderer tests for 'extra' parameters

* Refactor Diagnostics for more analyzers

* Simplify analyzer and fix CascadingParameter

This is the *easy way* to write an analyzer that looks at declarations.
The information that's avaialable from symbols is much more high level
than syntax. Much of what's in this code today is needed to reverse
engineer what the compiler does already. If you use symbols you get to
benefit from all of that.

Also added validation for cascading parameters to the analyzer that I
think was just missing due to oversight.

The overall design pattern here is what I've been converging on for the
ASP.NET Core analyzers as a whole, and it seems to scale really well.

* Add analyzer for types

* Add analyzer for uniqueness

This involved a refactor to run the analyzer per-type instead of
per-property.

* Fix project file

* Adjust name

* PR feedback on PCE and more renames

* Remove unused parameter

* Fix #10398

* Add E2E test

* Pranavs cool feedback

* Optimize silent frame removal

* code check

* pr feedback
2019-05-28 17:17:50 -07:00
Ben Adams 9f9c79bbe8 Use same code for Json Platform as TE (#7292) 2019-05-28 16:59:11 -07:00
Justin Kotalik 6e253996d9
Usability cleanup in IIS tests (#10460) 2019-05-28 14:28:33 -07:00
Ben Adams 3eca32965d Use sealed contexts for ActionInvoker 2019-05-28 12:13:38 -07:00
Steve Sanderson bc011b5c97 Integrate authorization into Blazor router (#10491)
* Split AuthorizeView in two, so "Core" part can be reused from routing

* Rename LayoutDisplay to PageDisplay

* Integrate authorization with Router/PageDisplay

* CR: Replace AuthorizeViewCore.razor with AuthorizeViewCore.cs

* Update tests

* Update ref assemblies

* Add E2E tests

* Update ref assembly exclusions

* More manual ref assembly updating

* Oh these ref assemblies
2019-05-27 18:12:01 -07:00
Dylan Dmitri Gray 9969e99ef4
Dylan/request throttle (#10413)
* request throttling -- initial implementation

* prevented semaphore leak; added xml docs

* small doc fixes

* reference document

* Added internals folder, added structured logging,

* removed typo'd dependency

* no default MaxConcurrentRequests; other polishing

* renamed SemaphoreWrapper->RequestQueue; cleanup

* moved SyncPoint; prevented possible semaphore leak

* adjusting feedback

* regen refs

* Final changes!
2019-05-27 14:46:14 -07:00
Larry Ewing cc40c37765 Work around mono url differences (#10551) 2019-05-27 10:08:24 +01:00
Justin Kotalik a20ddd8374
Make Native components a non-required part for build.cmd, fix IIS native code check (#10435) 2019-05-25 15:20:26 -07:00
Justin Kotalik 2d1c14d5a9
Write Premain errors to the response and write different status codes (#10282) 2019-05-25 15:19:06 -07:00
Brennan 833ddbe899
Fix broken build (#10541) 2019-05-25 14:47:22 -07:00
Ben Adams 44b2768307 Use Pipelines in PlaintextApp sample (#7227) 2019-05-25 12:18:14 -07:00
Stephen Halter 49c01eefec
Log clearer handshake failures in SignalR .NET client (#10433) 2019-05-24 10:32:41 -07:00
Steve Sanderson 54fff2b168
Server-side Blazor template with authentication (#10444) 2019-05-24 18:10:52 +01:00
Justin Kotalik 3be11f6544
Increase stack size for IIS Inprocess (#10511) 2019-05-24 08:16:54 -07:00
Steve Sanderson d18a033b1e
Integrate AuthorizeView with actual authorization (#10487) 2019-05-24 15:28:37 +01:00
John Luo 2c70498c13
Fix TLS protocols used in tests (#10483) 2019-05-23 20:07:39 -07:00
Arthur Vickers eef19949de Move Identity tests from SQL Server to SQLite for better reliability (#10300) 2019-05-23 16:32:48 -07:00
dotnet-maestro[bot] 72433039c0 Update dependencies and pin System.Data.SqlClient (#10434) 2019-05-23 15:40:53 -07:00
BrennanConroy c05244cda9
More docker resiliency for tests (#10425) 2019-05-23 14:46:32 -07:00
Ryan Nowak 2948c81aea
Fix RendererSyncContext.Post() (#10451)
* Fix RendererSyncContext.Post()

Fixes: #9683 - SignalR connection breaks on large DOM

The root cause here is a misbehaving sync context. It's not legal for a
Post() implementation to run a callback synchronously. We want that
behavior for most of the functionality Blazor calls directly, but Post()
should always go async or else various threading primitives are broken.

* Fix incorrect tests

These tests have the assumption that setting the result of a TCS will
execution continuations synchronously. This was a bug in our
SyncContext, and these tests needed updating to be more resiliant.

* Remove a delegate allocation
2019-05-23 10:39:53 -07:00
Artak a6dce7b33c
Updating minimum required VS version to 16.2 (#10458)
* Updating minimum required VS version to 16.2
2019-05-23 10:26:07 -07:00
Jacques Eloff eebd61642f
Merge pull request #10296 from aspnet/joeloff/LocLink
Fix .wxl reference
2019-05-23 09:05:04 -07:00
Chris Ross 156c4feb65
Put request trailers in a separate collection (#10410) 2019-05-23 09:00:39 -07:00
Stafford Williams c2e2d7d135 SignalR: Fix Crankier build (#9976)
* fix benchmarkapps build
* move Directory.* to BenchmarkServer
2019-05-23 08:20:34 -07:00
Steve Sanderson 6c5e1690ad
Update Mono WebAssembly for Blazor (https://github.com/aspnet/Blazor/pull/1807) 2019-05-23 13:10:53 +01:00
Dániel Lőczi dbe9ab7dd5 Respect CancellationToken in HubConnection.StartAsync() (#10140) 2019-05-22 14:37:08 -07:00
BrennanConroy f26b87aa42 Check for Java in local SignalR build (#10455) 2019-05-22 11:02:37 -07:00
Pranav K 72e2d13217 Make JsonPatch netstandard2.0
Fixes https://github.com/aspnet/AspNetCore/issues/9812
2019-05-22 10:22:42 -07:00
Chris Ross ede9249223 React to Authorization refactor (#10453) 2019-05-22 09:36:52 -07:00
Chris Ross f5879cc0d5
Add new Negotiate Auth handler (#9831) 2019-05-22 06:14:50 -07:00
Nate McMaster 01a8798936
Update links and disable warnings related to tests that don't work in Helix (#10427) 2019-05-21 16:39:06 -07:00
Pranav K 26b53236b1
Fix more null refs in Api Analyzers (#10375)
*  Fix more null refs in Api Analyzers

 * Make attributes used by analyzer public
 * Compile analyzer tests against ref assemblies
 * Turn on Nullable reference types and harden some null-checks

Fixes https://github.com/aspnet/AspNetCore/issues/8686
2019-05-21 16:17:15 -07:00
Pranav K 5df6e452b6
Support a few more complex types with DefaultTempDataSerializer (#10314)
* Support a few more complex types with DefaultTempDataSerializer

Fixes https://github.com/aspnet/AspNetCore/issues/9540
2019-05-21 13:51:48 -07:00
Ryan Brandenburg 66fd4be4d7
Accessibility (#10247)
Template Accessibility
2019-05-21 11:22:21 -07:00
Justin Kotalik 47d39501a5
Upload native symbols for ANCM shim. (#10297) 2019-05-21 08:34:28 -07:00
BrennanConroy 663c83c140
Fix build failures with new VS (#10411) 2019-05-20 17:51:06 -07:00
Dylan Dmitri Gray 55555bedd5
Merge pull request #10275 from aspnet/dylan/requestQ
start of request queue
2019-05-20 17:02:47 -07:00
Hao Kung 16a47948f8
Move AuthZ policy types back into Policy and rejigger AddAuthorization (#10021) 2019-05-20 16:20:19 -07:00
Dylan Dmitri Gray 54e5b15c24 it's gone for good 2019-05-20 11:58:30 -07:00
Pranav K 200c9e21bd
Use attributes for application part discovery (#10271)
* Use attributes for application part discovery

Fixes https://github.com/aspnet/AspNetCore/issues/4332
2019-05-20 09:10:12 -07:00
Steve Sanderson 147880f796
Components auth step 2 (#10293)
* CR feedback left over from #10227

* Begin adding E2E test case

* Add cookie auth and test login page

* Make E2E auth component work client-side too

* Restructure auth E2E tests around a router so there can easily be multiple such test components

* Add E2E test case for AuthorizeView

* Prepare for E2E test implementations

* Fix ToBaseRelativePath handling of hashes

... otherwise E2E test will fail, because we're using the hash to control server-or-client execution

* Decouple E2E execution mode from hosting mode

* Actual E2E tests for cascading authentication state

* Actual E2E tests for AuthorizeView (in "no authentication rule" mode)

* Fix inconsistent namespace

* CR: Manual ref assembly definitions for AuthorizeView/CascadingAuthenticationState
2019-05-20 15:41:02 +01:00
Doug Bunting 5502c2080e Fix sign check
- most likely cause of failing official builds
- small typo in #10340: need to find .cab files _below_ `$(TargetDir)`
2019-05-18 19:00:04 -07:00
Dylan Dmitri Gray 7ff5293177 added HttpsPolicy back 2019-05-18 18:31:31 -07:00
BrennanConroy e953537307
Fix silly npm warnings (#10339) 2019-05-17 23:20:32 -07:00
Stephen Halter 8d83e5352d
Disable request body data rate limits per HTTP/2 stream (#10355) 2019-05-17 18:25:41 -07:00
Dylan Dmitri Gray 68606a2d80 removed redundant HttpsPolicy dependency 2019-05-17 16:56:17 -07:00
Justin Kotalik 2e89aa4aa6
Log stdout to event log on failure to start process for ANCM out of process (#10123) 2019-05-17 16:30:59 -07:00
Pranav K b9546df5d4
Defer link interception until Router is initialized (#10062)
* Defer link interception until Router is initialized

Fixes https://github.com/aspnet/AspNetCore/issues/9834
2019-05-17 15:33:35 -07:00
Pranav K fdc056cebe
Fixup 2019-05-17 15:12:24 -07:00
Jacques Eloff 64152c9180
Merge pull request #10340 from aspnet/joeloff/copycabs
Copy CABs to artifacts
2019-05-17 14:47:23 -07:00
Dylan Dmitri Gray 206c1e8a8a Removed error line 2019-05-17 14:37:16 -07:00
Dylan Dmitri Gray 5e85b3773b ready for final review 2019-05-17 14:27:06 -07:00
Alessio Franceschelli 320fadb756 HeaderPropagation Middleware: configuration per client (#10096)
* HeaderPropagation Middleware: configuration per client

* Renamed fields

* Renamed fields

* Fix sample

* Addressed feedback, cleaned up and added tests

* Addressed feedback on HeaderPropagationHttpClientBuilderExtensions

* Updated reference assemblies
2019-05-17 14:16:44 -07:00
Pranav K c43d713fd4 Re-enable FlushPointTest
Fixes https://github.com/aspnet/AspNetCore-Internal/issues/2300
2019-05-17 14:02:26 -07:00
Chris Ross b670246e3d
Add ForwardedHeaders to CreateDefaultBuilder #4135 (#10273) 2019-05-17 13:07:11 -07:00
Chris Ross 8b99354419
Expose the SslServerAuthenticationOptions via a callback #9349 (#10310) 2019-05-17 13:05:45 -07:00
Jacques Eloff fa2cad3452 CopyCabs 2019-05-17 12:15:20 -07:00
Dylan Dmitri Gray 3e6f70d5e8 Justin fixed refs 2019-05-17 10:54:56 -07:00
Dylan Dmitri Gray 9363eff2a8 OrTimeout Extension 2019-05-17 10:40:19 -07:00
John Luo 818dc3b74a
Update log directory (#10301)
* Update log directory

This will now include functional test logs

* There were a few more places logs was used instead of log
2019-05-17 09:02:34 -07:00
John Luo a05d555f11
Revert Work around potential race in PipeWriter (#10315)
* Remove Flaky attributes

* Revert "Work around potential race in PipeWriter (#10165)"

This reverts commit bff1d0e6c4.
2019-05-17 01:20:52 -07:00
Pranav K 6c5274a09f
Support a few more complex types with DefaultTempDataSerializer
Fixes https://github.com/aspnet/AspNetCore/issues/9540
2019-05-16 17:59:39 -07:00
Dylan Dmitri Gray 04ce6ef4c8 IDisposable fix 2019-05-16 16:59:40 -07:00
Dylan Dmitri Gray ac305849e3 cleanup from PR feedback 2019-05-16 16:55:46 -07:00
Dylan Dmitri Gray 61f028ad32 Renamed project, cleaned sln file 2019-05-16 16:35:01 -07:00
Dylan Dmitri Gray 5956609846 start of request queue 2019-05-16 16:35:00 -07:00
Nate McMaster 117dd8cff4
Use Arcade version suffixes for local (3.0.0-dev) and PR builds (3.0.0-ci) (#10279)
* Update versioning for local and PR builds to match Arcade versioning
* Mark CanCancelIAsyncEnumerableClientToServerUpload as flaky - cref aspnet/AspNetCore-Internal#2465
* Disable rollforward in project template tests (3.0.0-dev is older than 3.0.0-preview*). This prevents tests from rolling forward onto technically older bits
2019-05-16 12:59:40 -07:00
Chris Ross 7db16f174d
Disable SameSite for AzureAd and B2C cookies #9115 (#10280) 2019-05-16 12:02:40 -07:00
Jacques Eloff d83bb8efa2
Merge pull request #10241 from aspnet/joeloff/SetupAssets
Publish the shared framework MSI to artifacts
2019-05-16 10:56:38 -07:00
Jacques Eloff 75dcbf3f98 Fix .wxl reference 2019-05-16 10:32:37 -07:00
Hao Kung 394eb3ca13
Allow password validation failures to propogate (#6034) 2019-05-16 09:38:30 -07:00
Mickaël Derriey 3da1b107ef Ensure AzureADOptions.Instance is set (#9967) Fixes #6022 2019-05-16 08:24:12 -07:00
Nate McMaster 3e1086d587
Make dotnet-sql-cache an OOB package (#10272) 2019-05-16 07:49:10 -07:00
Steve Sanderson 1dbc203e19
Components auth: basic services and components (#10227) 2019-05-16 09:59:12 +01:00
Mickaël Derriey 9f4aa98ee2 Handle `null`s in the `JsonDocumentAuthExtensions.GetString` extension method (#10252) 2019-05-15 13:48:15 -07:00
Nate McMaster dc90e11c7a
Move obj and bin directories into repo root (#10063)
The Arcade SDK requires that the obj/ and bin/ folders be placed in the top-level artifacts/ folder of the repo. Although this PR does not complete our Arcade convergence, this is a step towards updating our repo to build with the Arcade SDK.

Changes:
* Set output path for build to artifacts/bin/$(ProjectName)/ 
* Set intermediate output path for build to artifacts/obj/$(ProjectName)/
* Cleanup .gitignore files (remove duplication between repo-root and tested gitignore files)
* Add code check which looks for project files that share the same name (could cause issues)
* Rename project files to have unique names (avoid race condition of build output)
* Update all locations which were hard-coded to expect bin/ and obj/ in the project directory
* Add overrides for tests which still assert test binaries exist in a given location relative to the source code
2019-05-15 13:44:55 -07:00
Nate McMaster 77e08c26d5
Replace all usages of RepositoryRoot with RepoRoot (#10267)
Preparing to adopt the Arcade SDK, which uses the shorter variable name instead
2019-05-15 12:00:19 -07:00
Stephen Halter bff1d0e6c4
Work around potential race in PipeWriter (#10165)
- Make sure we always await the last flush task before calling FlushAsync
  again instead of preemptively calling FlushAsync and checking to see
  if the ValueTask is incomplete before bothering to acquire the _flushLock
- This now acquires the _flushLock fore every call to Response.Body.Write
  whereas this only happened for truly async writes before.
- I don't think this is a big concern since this should normally be uncontested,
  and DefaultPipeWriter.FlushAsync/GetResult already acquire a lock.
2019-05-15 11:30:48 -07:00
Doug Bunting 6274705501
Merge branch 'release/2.2' => 'master' (#10243) 2019-05-15 11:13:26 -07:00
Ryan Brandenburg e9fbf306f9
RunTemplateTests (#9829) 2019-05-15 09:52:52 -07:00
huysentruitw 18ce50f543 ContentDispositionHeaderValue must encode/sanitize new-line char (#9971) 2019-05-15 09:34:50 -07:00
Doug Bunting 35a5718960
Merge branch 'release/2.2' -> 'master' 2019-05-15 09:07:11 -07:00
Mickaël Derriey 4a2bd2adbf Source server variables from IIS when running ANCM in-proc (#10022) 2019-05-15 08:26:29 -07:00
Steve Sanderson 2c58d82d44 Add components solution filter file 2019-05-15 13:19:51 +01:00
John Luo 20fcbf1f9a
Add a protobuf item template (#10125) 2019-05-14 20:55:26 -07:00
Justin Kotalik 47575a08a5
Handle a few other potentially null properties (#10053) 2019-05-14 18:08:05 -07:00
Justin Kotalik 93af64823e
Move iisexpress test to other IIS machines (#10234) 2019-05-14 18:07:27 -07:00
James Newton-King a2c69b3d0c
HTTP2: Include END_STREAM with HEADERS frame to avoid empty DATA frame (#10219) 2019-05-15 10:56:06 +12:00
John Luo 4946c72dab
Add build for linux-musl-arm64 (#10155)
* Add build for linux-musl-arm64

* Remove redundant apk installs
2019-05-14 15:44:52 -07:00
Ryan Nowak d794c52c75
Make RouteAttribute non-inherited (#10236)
* Make RouteAttribute non-inherited

Fixes: #5529

Inheriting and looking for inherited route attributes will cause nothing
but trouble. We had a bug tracking what to do about this and we decided
to make it really clear that routes are not inherited.

Previously the attribute was marked as inherited, but we woulnd't look
for inherited routes.

* add test
2019-05-14 15:37:17 -07:00
Daniel Roth 07a02dcbc7
Add missing app namespace to server-side Blazor template (#10240) 2019-05-14 14:44:50 -07:00
Hao Kung 0425808b70
RequiredPolicy reborn and less demanding as FallbackPolicy (#9759) 2019-05-14 12:42:34 -07:00
David Fowler dd2721f5ca Use UnsafeRegister for the handshake (#10204) 2019-05-14 11:13:45 -07:00
Jacques Eloff 3282e6fe2d Publish the shared framework MSI to artifacts 2019-05-14 10:22:36 -07:00