ReadYouApp / ReadYouApp/ReadYou

OPML importer fail

Open
#922 1 comment 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

1. Environment

  • Device: Samsung A54
  • OS: Android 14
  • APP: 0.11.0

2. Describe the bug

Version: 0.11.0
Device: samsung SM-A546B
System: Android 14 (API 34)

Stack trace:

be.ceau.opml.OpmlParseException: org.xmlpull.v1.XmlPullParserException: unterminated entity ref (position:START_TAG @49:94 in java.io.InputStreamReader@60a110b)
at me.ash.reader.infrastructure.rss.OPMLDataSource.parseFileInputStream(OPMLDataSource.kt:300)
at me.ash.reader.domain.service.OpmlService$saveToDatabase$2.invokeSuspend(OpmlService.kt:186)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:111)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:4)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:3)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:96)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@30548a6, Dispatchers.Default]
Caused by: org.xmlpull.v1.XmlPullParserException: unterminated entity ref (position:START_TAG @49:94 in java.io.InputStreamReader@60a110b)
at com.android.org.kxml2.io.KXmlParser.readEntity(KXmlParser.java:1220)
at com.android.org.kxml2.io.KXmlParser.readValue(KXmlParser.java:1402)
at com.android.org.kxml2.io.KXmlParser.parseStartTag(KXmlParser.java:1123)
at com.android.org.kxml2.io.KXmlParser.next(KXmlParser.java:372)
at com.android.org.kxml2.io.KXmlParser.next(KXmlParser.java:313)
at be.ceau.opml.OpmlParser.extract(OpmlParser.java:49)
at me.ash.reader.infrastructure.rss.OPMLDataSource.parseFileInputStream(OPMLDataSource.kt:16)
... 6 more

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 OPMLDataSource.kt, especially parseFileInputStream, and trace how OpmlService.kt invokes the importer; the stack trace also points to OpmlParser.extract. Reproduce the failure with the reported OPML input and verify that importing it completes without the shown parse exception.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.