Skip to content

fix: login when the database is bound to an anonymous session - #66

Merged
florentx merged 1 commit into
masterfrom
fix/anonymous-session
Nov 27, 2026
Merged

florentx merged 1 commit into
masterfrom
fix/anonymous-session

Conversation

@florentx

Copy link
Copy Markdown
Member

Fix: logging in fails with 404 Not Found when the database is bound to an anonymous Web session.

$ odooly --demo
...
  > GET /web
<-- ServerError: HTTPError
HTTPError: 404 Not Found

Fix: clear the cookie only when an authenticated session is attached. A browser session passed with --session-id is still never used for a password login.

Tests:

  • New TestAnonymousSession. It fails without the fix.

🤖 Co-Authored with Claude Code

Clear the cookie only when the session is authenticated.
@florentx
florentx force-pushed the fix/anonymous-session branch from cbebb11 to 468c57e Compare November 27, 2026 21:09
@florentx
florentx merged commit 2b99e72 into master Nov 27, 2026
12 checks passed
@florentx
florentx deleted the fix/anonymous-session branch November 27, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant