aspnet / HttpSysServer

[Archived] A web server for ASP.NET Core based on the Windows Http Server API. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
106 stars 39 forks source link

Test failure: AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized #474

Closed aspnet-hello closed 5 years ago

aspnet-hello commented 6 years ago

This test fails occasionally with the following error:

System.ObjectDisposedException : Cannot access a disposed object.
Object name: 'System.Net.Http.HttpConnection+HttpConnectionResponseContent'.
   at System.Net.Http.HttpContent.CheckDisposed()
   at System.Net.Http.HttpContent.LoadIntoBufferAsync(Int64 maxBufferSize, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
   at Microsoft.AspNetCore.Server.HttpSys.AuthenticationTests.SendRequestAsync(String uri, Boolean useDefaultCredentials) in /_/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/AuthenticationTests.cs:line 377
   at Microsoft.AspNetCore.Server.HttpSys.AuthenticationTests.AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized(AuthenticationSchemes authType) in /_/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/AuthenticationTests.cs:line 364
--- End of stack trace from previous location where exception was thrown ---

Other tests within that build may have failed with a similar message, but they are not listed here. Check the link above for more info.

This test failed on 2.2.

CC @Eilon (because the bot doesn't know who else to pick)

This issue was made automatically. If there is a problem contact ryanbrandenburg.

aspnet-hello commented 6 years ago

Please use this workflow to address this flaky test issue, including checking applicable checkboxes and filling in the applicable "TODO" entries:

This comment was made automatically. If there is a problem contact ryanbrandenburg.

aspnet-hello commented 6 years ago

AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on 2.2.

This comment was made automatically. If there is a problem contact ryanbrandenburg.

aspnet-hello commented 6 years ago

AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on 2.2.

This comment was made automatically. If there is a problem contact ryanbrandenburg.

Eilon commented 6 years ago

@muratg please assign.

Tratcher commented 6 years ago

3 failures, all in 2.2.

It doesn't seem to be timing out, the test only runs for ~1s.

HttpClient regression? @davidsh

Object name: 'System.Net.Http.HttpConnection+HttpConnectionResponseContent'.
   at System.Net.Http.HttpContent.CheckDisposed()
   at System.Net.Http.HttpContent.LoadIntoBufferAsync(Int64 maxBufferSize, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
   at Microsoft.AspNetCore.Server.HttpSys.AuthenticationTests.SendRequestAsync(String uri, Boolean useDefaultCredentials) in /_/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/AuthenticationTests.cs:line 377

Related? https://github.com/dotnet/corefx/pull/31589

The calling code isn't doing anything interesting. https://github.com/aspnet/HttpSysServer/blob/9cb675fec89702d28b5f188e0ab4f7d671d7aa11/test/Microsoft.AspNetCore.Server.HttpSys.FunctionalTests/AuthenticationTests.cs#L371-L379

Eilon commented 6 years ago

@Tratcher if you suspect something in CoreFX, please also send mail so we can get it into their inboxes faster.

aspnet-hello commented 6 years ago

AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on 2.2. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on 2.2. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on 2.2. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on 2.2. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on 2.2. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on 2.2.

This comment was made automatically. If there is a problem contact ryanbrandenburg.

Tratcher commented 6 years ago

Filed https://github.com/dotnet/corefx/issues/32143.

This does not repro in 2.2 when I run the test manually, but in 3.0 it does fail consistently even for manual runs.

Tratcher commented 6 years ago

I was able to reproduce this in the release/2.2 branch after I did run upgrade deps.

This is now skipped in release/2.2 and master.

Corefx has found the issue and submitted a PR.

aspnet-hello commented 6 years ago

AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on 2.2. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on 2.2. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on 2.2. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on 2.2. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master. AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized failed with about the same error on master.

This comment was made automatically. If there is a problem contact ryanbrandenburg.