element-hq / element-hq/element-android

Element fails to connect to debian-packaged homeserver

Open
#2,022 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

The file HomeServerVersion.kt in the matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/auth/version directory only constructs version information based on minor versions when the app tries to connect to a server for the first time. That means that for standard installations of a synapse-based homeserver based on OS repos (like Debian where the version of matrix-synapse package is 1.19.0) this check will fail with the resulting "Outdated homeserver" error message (the same goes for cloning the matrix-synapse GH repo as the version information here is 1.19.1). Installing the server package with pip results in a working installation as that version is 1.5.1.

**To Reproduce**
Steps to reproduce the behavior:
1. Install matrix-synapse from OS or clone the GH repo and configure it accordingly before running it.
2. Connect with app to this instance and observe the outdated homeserver warning.

**Expected behavior**
A different implementation of the version check in HomeServerVersion.kt would obtain the version and construct a correct rx_x_x set of constants meaning the capability checks in the Version.kt file would pass correctly.

App version 1.0.5 running on LOS 17.1.

Let me know if you need more info - happy to help.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.