https://bugs.winehq.org/show_bug.cgi?id=42803
Bug ID: 42803 Summary: Large data received on a 401 error causes authentication to fail Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: winhttp Assignee: wine-bugs@winehq.org Reporter: leslie_alistair@hotmail.com Distribution: ---
Returning 10K causes WinHttpSendRequest not to send the Authorization to the server. This is because the data isn't flushed correctly and when WinHttpReceiveResponse is called again it's still reading the data from the first request.
Patch sent to show the issue. https://source.winehq.org/patches/data/132582
https://bugs.winehq.org/show_bug.cgi?id=42803
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |2.5
https://bugs.winehq.org/show_bug.cgi?id=42803
--- Comment #1 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Created attachment 57833 --> https://bugs.winehq.org/attachment.cgi?id=57833 Simple Patch
This fixes the issue, however I'm not sure if its the correct approach.
https://bugs.winehq.org/show_bug.cgi?id=42803
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=42803
--- Comment #2 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Patches sent
https://source.winehq.org/patches/data/132629 https://source.winehq.org/patches/data/132630
https://bugs.winehq.org/show_bug.cgi?id=42803
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Fixed by SHA1| |2fa86fd6616e1671dd3ecfa3d2d | |6eaccf10be994 Status|NEW |RESOLVED
--- Comment #3 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Fixed by http://source.winehq.org/git/wine.git/?a=commit;h=ae4ad49c75633633f3711a415b... http://source.winehq.org/git/wine.git/?a=commit;h=2fa86fd6616e1671dd3ecfa3d2...
https://bugs.winehq.org/show_bug.cgi?id=42803
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 2.6.
https://bugs.winehq.org/show_bug.cgi?id=42803
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.0.x
https://bugs.winehq.org/show_bug.cgi?id=42803
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|2.0.x |---
--- Comment #5 from Michael Stefaniuc mstefani@winehq.org --- Remove 2.0.x milestone.