Commit Graph

20524 Commits

Author SHA1 Message Date
Pranav K 5ed38b7eeb
Remove NodeServices + SpaServices
Follow up to https://github.com/dotnet/aspnetcore/pull/24912.
Not shipping NodeServices isn't enough since it's referenced by SpaServices. This PR removes the two packages
that were announced to be removed in 5.0
2020-08-26 14:19:07 -07:00
Mackinnon Buck 2916f4b09b
Fixed server interop reliability tests (#25244) 2020-08-26 12:56:56 -07:00
Safia Abdalla e2dd2969b5
Set SameSiteMode for cookies in authentication tests (#25281) 2020-08-26 12:22:34 -07:00
John Luo 098be5f5ee
Use LDAP support from DirectoryServices.Protocols for RBAC claim resolution on Linux for Negotiate (#25075) 2020-08-25 13:21:46 -07:00
Doug Bunting c2f0331805
Include project file in F# Worker Service template (#25180)
- add test of this project template
2020-08-25 10:47:37 -07:00
Pranav K b0530a68c0
Do not include the shared framework in the packages (#24816)
* Do not include the shared framework in the packages

DevServer and dotnet-watch include binaries from the ASP.NET Core shared framework
as part of the package. This change compiles these projects against the most recently built
version of the shared framework which ensures build and publish work as normals. Individual
projects from the runtime can be referenced to pick up new runtime features when necessary

* More hacks!

* Ensure shared runtime is built before running tests

* Delete dotnet-watch.nuspec
2020-08-25 10:03:58 -07:00
Javier Calvarro Nelson 402dc41d33
[Blazor] Render Blazor Webassembly components from MVC (#25203)
* Server pieces

* Changes for prerendering

* Discover client components

* tmp

* Cleanup

* Cleanups

* Undo changes

* Remove unwanted changes

* Move interop class to its own file

* Cleanup unwanted changes

* Add test rendering multiple client-side components

* Unit tests and E2E tests

* Cleanups

* Addressed feedback

* Rename Client to WebAssembly in RenderMode

* Update generated js files

* Cleaned up JS and addressed feedback

* Client->WebAssembly and other feedback

* Unify component discovery code and use webassembly instead of 'client'

* Update js files

* Fix tests
2020-08-25 09:30:24 -07:00
Pranav K 78a587b02e
Guard against client disconnect exceptions that appear when reading body (#25146)
* Guard against client disconnect exceptions that appear when performing ReadFormAsync

Reading the request body may throw an exception. This change adds some extra guards
for this and presents this as a 4xx response rather than a 5xx response.

* Add some tests

* Fixup test
2020-08-25 09:29:50 -07:00
Steve Sanderson a9b596e091
Prevent @import in scoped CSS (#25196)
* Reject @import rules in scoped CSS files

* CR feedback: Use SourceText

* CR feedback: Another test case

* Use same file reading mechanism as "generate" command
2020-08-25 09:28:14 -07:00
Steve Sanderson 64c47b733f
Support custom validation class names (#24835)
* Store arbitrary properties on EditContext

* Define FieldCssClassProvider as a mechanism for customizing field CSS classes

* Add E2E test
2020-08-25 09:27:43 -07:00
Justin Kotalik 6333040b5a
Fix MaxRequestBodySize in IIS (#25096)
* Fix MaxRequestBodySize

* Apply suggestions from code review

Co-authored-by: Chris Ross <Tratcher@Outlook.com>

* Update test

* Keep IIS limit default and update API comment

* Update tests

Co-authored-by: Chris Ross <Tratcher@Outlook.com>
2020-08-25 09:12:58 -07:00
Chris Ross e409c97612
Allow suppressing the use of environment variables (#25136)
* Allow suppressing the use of environment variables #20328

* Formatting

* Update src/Hosting/Hosting/src/WebHostBuilderOptions.cs

Co-authored-by: Kahbazi <akahbazi@gmail.com>

Co-authored-by: Kahbazi <akahbazi@gmail.com>
2020-08-24 23:28:17 -07:00
Mackinnon Buck 8a2f29bb53
JSObjectReference (#25028) 2020-08-24 21:02:19 -07:00
Pranav K 29cbf6e106
Make PropertySetter a concrete type (#25054)
* Make PropertySetter a concrete type

* Use the pattern from PropertyHelpers to set property values
* Tweaks to Blazor WebAssembly tests to allow running tests locally

* Update src/Components/Components/src/Reflection/IPropertySetter.cs
2020-08-25 01:54:28 +00:00
Brennan db77380c84
Java client connection state part 1 (#24166) 2020-08-24 16:45:33 -07:00
ar0311 f2c3c11a2d
Minor typos (#25140) 2020-08-24 15:51:09 -07:00
Steve Sanderson faf1d80af1
Follow-ups from PR 23385 (#24834)
* Make preservewhitespace use FileScopedSinglyOccurring

* Design-time experience for boolean directive tokens

* Update baselines
2020-08-24 14:02:21 +01:00
Chris Ross 11bae8a112
Identifying if a request has a body #24175 (#24984) 2020-08-24 06:38:40 +00:00
Chris Ross e5ab127f74
Update OAuth providers #4684 (#25112) 2020-08-23 17:04:43 -07:00
Pranav K 85835c7134
Default new runtime feature switches (#25108)
Porting #23932 to WebAssemblySDK.

* Default new runtime feature switches

These new feature switches have been added to the runtime to make applications smaller. Setting reasonable defaults to Blazor wasm projects.

Fixes https://github.com/dotnet/aspnetcore/issues/25099

If there is an ask mode template to fill out, let me know and I can do it.
2020-08-22 14:35:13 +00:00
Sourabh Shirhatti 826bc84183
Add wireshark logging. Replaces #23088 (#25139)
* Add wireshark style logging in Kestrel

* More Append!

* Update third party notices

Co-authored-by: Kahbazi <A.Kahbazi@gmail.com>
2020-08-22 03:16:54 +00:00
Pranav K 134850b4a2
Update rzc to ne5.0 (#25111) 2020-08-22 02:44:08 +00:00
Pranav K 0960a7a0c5
Configure OpenAPI as part of webapi project template creation (#25110)
* Configure OpenAPI as part of webapi project template creation
Fixes https://github.com/dotnet/aspnetcore/issues/25080

* Update to default to WebAPI
2020-08-21 23:44:11 +00:00
Pranav K 50815ed598
JSInterop nullability PR feedback (#25114) 2020-08-21 22:24:32 +00:00
Safia Abdalla ecf2a23d3d
Update to @azure/msal-browser@2.0.0 (#24827)
* Update to @azure/msal-browser@2.0.0
* Retain promise during initialization
* Set knownAuthority hostname from authority URL
* Add KnownAuthorities config option and fix silent sign-in
* Set knownAuthorities default to empty list
2020-08-21 11:15:41 -07:00
Pranav K 3e8c5c48f0
Add support for views + SingleFileExe (#24925)
* Add support for views + SingleFileExe
2020-08-20 19:46:58 -07:00
Mackinnon Buck 0b1042c54e
InputFile Component (#24640) 2020-08-20 17:52:41 -07:00
Eric Erhardt a700662dec
Quote the ToolAssembly path in BrotliCompress task. (#25101)
Fix #25098
2020-08-20 23:36:09 +00:00
Brennan 04a704c929
[Java] Observe accessTokenProvider on error (#24344) 2020-08-20 16:27:20 -07:00
Pranav K 6a9241b920
Skip test for now 2020-08-20 14:59:39 -07:00
Juan Barahona 601fc20ece
Add enhancement to default behavior of client reconnection (#24992)
These changes are to improve the default reconnection behavior of the client

- [x] Match the reconnection time with server side
- [x] Add indicator to know at which reconnection attempt we currently are
- [x] [Additional] Add a loader symbol
- [x] Add client side test

Addresses #18745
2020-08-20 14:12:04 -07:00
Brennan c181218a4e
Run 1 browser at a time in SignalR javascript functional tests (#25083) 2020-08-20 13:16:23 -07:00
James Newton-King 920d93590d
Remove HTTP/2 headers from request primary headers (#24900) 2020-08-21 07:39:40 +12:00
William Godbe 8522ba8e55
Add MessagePack support for Java SignalR Client (#23532)
* Implement ParseMessages for java messagePack client

* Fix some spacing & syntax

* Implement write

* Tab -> Spaces

* MessagePacker -> MessageBufferPacker

* Tabs -> Spaces

* Tabs -> Spaces

* InvocationMessage may not include streamIDs

* Only 1 ctor per message type

* Fixup HubConnection.java

* Change return type of parseMessages to List

* Fix HubConnection

* Check for primitive value before returning

* Implement length header prefix

* Minor fixes

* Use ByteBuffer to read length header

* Add case for Char

* Close unpacker

* Typo

* Override onMessage w/ ByteString

* Change OKHttpWebSocketWrapper

* Account for nil InvocationId

* Change interface & MessagePack impl

* Update JsonHubProtocol

* Use ByteBuffer

* Fixup HubConnection

* Fixup more stuff

* Convert more stuff to ByteBuffer

* Account for ReadOnly

* Spacing

* No need to reset ByteBuffer when setting position

* Add Protocol to HubConnection ctor

* Set default, make stuff public

* Fixup tests

* More test cleanup

* Spacing

* only grab remaining buffer bytes in json

* Last test fixes

* Get rid of some unused imports

* First round of msgpack tests

* Flip condition

* Respond to feedback

* Spacing

* More tests

* Add test for primitives

* Add more tests, start using msgpack-jackson

* Fix build.gradle

* Remove debug prints

* Start using Type instead of Class

* Add overloads for Type, make messagePack readValue() more efficient

* Apply feedback, add some tests

* Add some tests, fix some tests

* Fix tests for real

* Add a whole buncha tests

* Add TestUtils change that I didn't commit yesterday

* Respond to some feedback

* Add a couple Json tests

* Apply more feedback

* Move readonly fix to msgpack

* Minor optimization

* Fixup some javadocs

* Respond to feedback

* Remove TypeReference, make Protocols private again

* Feedback
2020-08-20 12:12:41 -07:00
Pranav K 4f64c65325
Add a regression test for web.config transform (#25056)
This was resolved as part of moving to the WebAssembly SDK.
A test that would have helped us catch this sooner. This change addresses the test gap.

Resolves https://github.com/dotnet/aspnetcore/issues/24568
2020-08-20 10:14:53 -07:00
Javier Calvarro Nelson 3c34c3ab0d
[Https] Various improvements to the dev-certs tool (#25037)
* Add support for the trust option on Linux on the command-line tool and print a message when it's used pointing to docs.
* Bump the certificate version to 2 to ensure that the certificate gets updated for 5.0 on Mac OS.
* Ensure we always select the certificate with the highest available version to ensure that when we change the certificate in the future older runtimes pick up the new certificate.
* Support exporting the certificate without key on PEM format.
2020-08-20 09:55:56 -07:00
James Newton-King 818279f1f5
Add HealthChecks to solution and enable nullable in tests (#25059) 2020-08-20 15:04:44 +00:00
John Luo 4c381e83d2
Throw original exception if exception handler is not found (#25062)
* Throw original exception if exception handler is not found
2020-08-20 02:45:07 -07:00
Safia Abdalla 8fc1419186
Make OnNavigateAsync EventCallback and cancel previous navigation (#25011)
* Make OnNavigateAsync EventCallback and cancel previous navigation

* Add more tests
2020-08-19 18:25:24 -07:00
Brennan 5193f8f428
Quarantine a couple kestrel flaky tests (#25047) 2020-08-19 16:00:18 -07:00
Brennan 85bde1da5e
Parallel hub invocations (#23535) 2020-08-19 14:58:24 -07:00
Brennan df04381411
Quarantine flaky Razor Integration tests (#25043) 2020-08-19 14:34:12 -07:00
Justin Kotalik 9f398d9a56
Fix Http/3 and mark multiplexed factory as experimental (#25012)
* Fix Http/3 and mark multiplexed factory as experimental

* mark apis as internal and delete quic samples

* Remove extra public api

* Mark kestrel server as obsolete

* Fixing obsoletion and improved message

* Revert "Fixing obsoletion and improved message"

This reverts commit acdae8713d467264b4b3762b56fb4b882fa9127d.

* Revert "Mark kestrel server as obsolete"

This reverts commit fbd861f53afe93951b1f9cd004859551e085952d.

* Internalize SocketCOnnectionFactory

* nit

* fixup
2020-08-19 14:27:25 -07:00
Javier Calvarro Nelson 1cd7e15fb2
[Spa] Make node Services non-shipping (#24912)
As per the announcement on https://github.com/dotnet/aspnetcore/issues/12890, avoid shipping this package in 5.0.
2020-08-19 13:27:29 -07:00
Brennan 08bd3d7d5a
Fix #24846 by using ConditionalFact (#25041) 2020-08-19 12:31:18 -07:00
Pranav K 57db5937f8
Fixup test 2020-08-19 11:23:02 -07:00
Sourabh Shirhatti b140c09c02
Add support delegating requests in HttpSysServer (#24857)
* Add new ctors for RequestQueue and UrlGroup

* Add DelegateRequest pinvokes

* Add Request Transfer Feature

* Fix accessibility of feature

* Test cleanup

* Update ref assembly

* hack: Make HttpSysServer packable

* Cleanup based on PR feedback

* Avoid sending headers after transfer

* Fix ref assembly

* Fix rebase conflict

* Switch to DelegateRequestEx

* Add feature detection

* Delete ref folder

* Add server feature

* s/RequestQueueWrapper/DelegationRule

* Fix UrlGroup was null issue

* Add light-up for ServerDelegationPropertyFeature

* Revert changes to sample

* Revert changes to sample take 2

* PR feedback

* s/Transfered/Transferred

* DelegateAfterRequestBodyReadShouldThrow

* Make DelegationRule disposable

* More license headers

* Incomplete XML doc

* PR feedback

* Fix broken test

* PR feedback

* Fixup test

* s/Transfer/Delegate

* s/transfer/delegate

* PR feedback
2020-08-19 10:27:18 -07:00
Pranav K c6814f4f4d
Enable the compatibility analyzer for Blazor WebAssembly (#24978)
See https://github.com/dotnet/sdk/pull/12872#issuecomment-673783153
2020-08-19 10:00:08 -07:00
Martin Costello b22512de0e
Right-size Lists when created (#23714)
Create new instances of List<T> with an appropriate capacity for the items that will be added.
Use Array.Empty<T>() where appropriate, rather than create an empty list and then return it.
2020-08-19 09:45:52 -07:00
Pranav K d2f34d6d99
Enable trimming for Microsoft.Extensions packages (#24986)
* Enable trimming for Microsoft.Extensions packages

Fixes https://github.com/dotnet/aspnetcore/issues/24634

* Update Microsoft.NET.Sdk.BlazorWebAssembly.csproj

* Apply suggestions from code review

* Fixup test
2020-08-19 16:29:52 +00:00