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

Negotiate test broken by SocketsHttpHandler #439

Closed Tratcher closed 6 years ago

Tratcher commented 6 years ago

AuthenticationTests.AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized(authType: Negotiate)

Assert.Equal() Failure
Expected: Unauthorized
Actual:   BadRequest
   at Microsoft.AspNetCore.Server.HttpSys.AuthenticationTests.AuthTypes_UnathorizedAuthenticatedAuthType_Unauthorized(AuthenticationSchemes authType) in C:\b\w\33bdfc1cae7b2a38\modules\HttpSysServer\test\Microsoft.AspNetCore.Server.HttpSys.FunctionalTests\AuthenticationTests.cs:line 373
--- End of stack trace from previous location where exception was thrown ---

http://aspnetci/project.html?projectId=Releases_21Public&tab=testDetails&testNameId=-5335756877508112140#analysis

Disabling the test in release and dev and filing a corefx issue. Re-enable when fixed.

Tratcher commented 6 years ago
GET / HTTP/1.1
Host: localhost:8080

HTTP/1.1 401 Unauthorized
Content-Length: 0
Server: Microsoft-HTTPAPI/2.0
WWW-Authenticate: Negotiate
Date: Fri, 30 Mar 2018 16:49:38 GMT

GET / HTTP/1.1
Authorization: Negotiate YIGABgYrBgEFBQKgdjB0oDAwLgYKKwYBBAGCNwICCgYJKoZIgvcSAQICBgkqhkiG9xIBAgIGCisGAQQBgjcCAh6iQAQ+TlRMTVNTUAABAAAAl7II4gcABwA3AAAADwAPACgAAAAKAKs/AAAAD0NIUlJPU1MtQ09SRURFVlJFRE1PTkQ=
Host: localhost:8080

HTTP/1.1 401 Unauthorized
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
WWW-Authenticate: Negotiate oYIBYTCCAV2gAwoBAaEMBgorBgEEAYI3AgIKooIBRgSCAUJOVExNU1NQAAIAAAAOAA4AOAAAABXCieIfmaZR3PbepYBHaZ8DAgAA/AD8AEYAAAAKAKs/AAAAD1IARQBEAE0ATwBOAEQAAgAOAFIARQBEAE0ATwBOAEQAAQAeAEMASABSAFIATwBTAFMALQBDAE8AUgBFAEQARQBWAAQANAByAGUAZABtAG8AbgBkAC4AYwBvAHIAcAAuAG0AaQBjAHIAbwBzAG8AZgB0AC4AYwBvAG0AAwBUAGMAaAByAHIAbwBzAHMALQBjAG8AcgBlAGQAZQB2AC4AcgBlAGQAbQBvAG4AZAAuAGMAbwByAHAALgBtAGkAYwByAG8AcwBvAGYAdAAuAGMAbwBtAAUAJABjAG8AcgBwAC4AbQBpAGMAcgBvAHMAbwBmAHQALgBjAG8AbQAHAAgAKkqVF0fI0wEAAAAA
Date: Fri, 30 Mar 2018 16:49:38 GMT
Content-Length: 341

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Not Authorized</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Not Authorized</h2>
<hr><p>HTTP Error 401. The requested resource requires user authentication.</p>
</BODY></HTML>
GET / HTTP/1.1
Authorization: Negotiate oXcwdaADCgEBoloEWE5UTE1TU1AAAwAAAAAAAABYAAAAAAAAAFgAAAAAAAAAWAAAAAAAAABYAAAAAAAAAFgAAAAAAAAAWAAAABXCiOIKAKs/AAAADzMP5MXS4HO3vFJ7cVAlnlCjEgQQAQAAAO5XoSQnQjpiAAAAAA==
Host: localhost:8080

HTTP/1.1 401 Unauthorized
Content-Length: 0
Server: Microsoft-HTTPAPI/2.0
WWW-Authenticate: Negotiate
Date: Fri, 30 Mar 2018 16:49:38 GMT

GET / HTTP/1.1
Authorization: Negotiate
Host: localhost:8080

HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Fri, 30 Mar 2018 16:49:38 GMT
Connection: close
Content-Length: 311

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request</h2>
<hr><p>HTTP Error 400. The request is badly formed.</p>
</BODY></HTML>