ReadYouApp / ReadYouApp/ReadYou

[BUG]: App crashes when opening invalid RSS feed link

Open
#1,019 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Kotlin
Stars
7.5k
Forks
330
PR merge metrics
No merged PRs in 30d

Description

Bug Description
After modifying an existing RSS feed to use an invalid or malformed URL (e.g., a or bzsp://...), attempting to open the feed's link crashes the app with an ActivityNotFoundException.

To Reproduce
Steps to reproduce the behavior:

  1. Long-press any existing feed to open the feed settings.
  2. Long-press the feed link to open the edit dialog.
  3. Change the link to an invalid URL (e.g., a or bzsp://...) and save.
  4. Reopen the feed settings and click the modified link.
  5. The app crashes.

Screen Recording
https://github.com/user-attachments/assets/0068f2a2-02df-4a75-a241-08ca62c8aa94

Expected Behavior
The app should validate the link format or handle the failure gracefully, showing an error or doing nothing instead of crashing.

Error Log

android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=bzsp://www.ruanyifeng.com//atom.xml }
    at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2007)
    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1673)
    ...
    at me.ash.reader.ui.ext.ContextExtKt.openURL(ContextExt.kt:485)
    ...

Smartphone:

  • Device: generic_x86_64 (Android Studio emulator)
  • OS: Android 9.0
  • App version: 0.12.2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at ContextExt.kt:485, where the error log shows the app calls openURL, and trace the feed-settings link action that reaches it. Reproduce the invalid-link steps with values such as a or bzsp://..., then verify the app no longer crashes and instead validates the link or handles the failed intent gracefully.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.