cinnyapp / cinny-desktop

Yet another matrix client for desktop
GNU Affero General Public License v3.0
415 stars 49 forks source link

Invalid database operation error while signing in on a fresh install #393

Open sambartik opened 2 days ago

sambartik commented 2 days ago

Describe the bug

Can't log in to a locally hosted matrix 2.0 home server, running on Synapse and having MAS in front of it.

Reproduction

From a fresh install:

  1. Type the url of the homeserver
  2. Cinny correctly loads data from the .well-known and is aware of MAS
  3. Click a button to get forwarded to the MAS login form: "Connect with SSO"
  4. Successfully login through MAS
  5. Get redirected to MAS authorization page:
    Allow access to your account?
    http://localhost:44548/ wants to access your account. This will allow http://localhost:44548/ to:
  6. Authorize request by clicking "Continue" button in the MAS UI
  7. Nothing seems to happen
  8. Click the same Authorize request button again
  9. The error RepositoryError { source: InvalidOperation { source: Some(InvalidTransitionError) } } pops up

Expected behavior

Cinny should connect to the homeserver correctly.

Platform and versions

1. OS: macOS
2. Cinny desktop version: Version 4.2.3 (20241112.095629)
3. Homeserver: Synapse v1.119.0 with MAS v0.12.0

Additional context

No response