qBitTorrent 5.2+ auth BC break #11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
qBtRemoteGo fails to authenticate against qBittorrent 5.2.0+.
Observed error:
qBittorrent 5.2.0 changed WebAPI behavior: successful API responses with no body may now return HTTP
204 No Contentinstead of200 OK.The current client code treats only
200 OKwith bodyOk./Okas a successful login, so a valid204login response is incorrectly handled as an error.Expected behavior
Authentication should succeed for both supported qBittorrent login response styles:
200 OKwith bodyOk./Ok204 No Contentwith empty bodyThe client should continue relying on Go's existing
cookiejarhandling and must not hardcode the qBittorrent session cookie name.Scope
Fix only username/password WebAPI login compatibility.
Do not implement API key authentication in this issue.
Implementation notes
Relevant code:
ensureAuthenticated(ctx)should:200 OKwith bodyOk./Ok204 No Contentas successful login without reading/expecting a body200 OKwith bodyFails./Failsc.authenticated = trueafter successful loginSIDTests
Add/update tests in:
Required coverage:
200 OK+Ok.204 No Content+Set-Cookie200 OK+Fails.401or403Acceptance criteria
auth/login returned 204 OKno longer appears for successful login200 OKlogin behavior remains supported204login path