ReadYouApp / ReadYouApp/ReadYou
[BUG]: App crashes when opening invalid RSS feed link
Nobody has claimed this yet.
- 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:
- Long-press any existing feed to open the feed settings.
- Long-press the feed link to open the edit dialog.
- Change the link to an invalid URL (e.g.,
aorbzsp://...) and save. - Reopen the feed settings and click the modified link.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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