Automattic / Automattic/wordpress-rs
Display a user-friendly error when connecting to a site that doesn't support HTTPS
- Dominant language
- Rust
- Stars
- 36
- Forks
- 5
- Avg merge
- 17h 30m
- Merged PRs (30d)
- 43
Description
## Context
From [PR #328 review](https://github.com/wordpress-mobile/GutenbergKit/pull/328#discussion_r2850038249):
The HTTP fallback in `SiteCapabilitiesDiscovery` doesn't work because the server isn't actually speaking HTTPS. When this happens, the user doesn't get a clear error message explaining the problem.
## Expected Behavior
When connecting to a site that doesn't support HTTPS, the app should display a clear, user-friendly error message explaining that the site doesn't support a secure connection.
## Current Behavior
The connection silently fails or falls through to default capabilities without informing the user about the HTTPS issue.
## Relevant Code
- `android/app/src/main/java/com/example/gutenbergkit/SiteCapabilitiesDiscovery.kt` — `discoverCapabilitiesViaHttp` method ([GutenbergKit PR #328](https://github.com/wordpress-mobile/GutenbergKit/pull/328))
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in android/app/src/main/java/com/example/gutenbergkit/SiteCapabilitiesDiscovery.kt, focusing on discoverCapabilitiesViaHttp and the connection flow it uses. Reproduce or trace the fallback for a site that does not support HTTPS, then confirm that the app reports a clear, user-friendly secure-connection error instead of silently failing or returning default capabilities.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- Half a day
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100