Open Bug 2077961 Opened 1 month ago Updated 1 month ago

OPML import treats type="RSS" as a folder and drops the feed subscription

Categories

(MailNews Core :: Feed Reader, defect)

Thunderbird 81
x86_64
Linux
defect

Tracking

(thunderbird159 affected)

UNCONFIRMED
Tracking Status
thunderbird159 --- affected

People

(Reporter: nguyentuanhung1149, Unassigned)

Details

Attachments

(6 files)

OPML import treats type="RSS" as a folder and drops the feed subscription

Product/component: MailNews Core → Feed Reader. Public functional defect.

Tested on Thunderbird Daily 159.0a1, BuildID 20261003100540, Linux x86_64, comm-central fd6ee9a9bd64e360a9dbb737e2d0fab4e395fbf0. The tested feed-subscriptions.js was byte-identical to the comm-central tip checked during this study.

Steps to reproduce

  1. Save the three attached XML/OPML fixtures in one directory. Serve that directory locally with python3 -m http.server 8765 --bind 127.0.0.1 --directory <fixture-directory>, so http://127.0.0.1:8765/h80-feed.xml returns the one-article feed.
  2. Create a disposable News & Blogs account. In Feed Subscriptions, select the account root and import h80-opml-upper.opml. Its only outline has type="RSS" and points to that local feed.
  3. Check the resulting folder and feed list. Run a normal manual feed update.
  4. Repeat in another disposable account with h80-opml-lower.opml. The two OPML files differ only by RSS versus rss in the type attribute.

Expected: OPML 2.0 says type values are case insensitive, so each file should create one subscription. After a manual update, each account should have the one article.

Actual: With type="RSS", import creates an empty folder named OPML Type Case, adds zero subscriptions, writes no feeds.json, and manual update sends no feed GET. With type="rss", import creates one subscription with a persisted destination, and manual update saves the one article. The dialog finishes in both cases, so there is no visible import error.

Verification and cause

Six independent real Feed Subscriptions imports on the tested Daily build: two generated-localhost case/control pairs plus one pair using the exact attached static OPML files. All three uppercase cases produced zero subscriptions and zero articles; all three lowercase controls produced one persisted subscription and one article after update. The generated-file cases also recorded zero local feed GETs for uppercase and two for lowercase during manual update. See h80-opml-type-case-public.json and opml_type_case_probe.py/verify_h80.py; all URLs are localhost and accounts are disposable.

feed-subscriptions.js in importOPMLOutlines() checks outline.getAttribute("type") == "rss" exactly. The uppercase outline takes the folder branch. This appears to be the direct cause. OPML 2.0: https://2005.opml.org/spec2.html (Notes item 3 says type values are case insensitive).

Duplicate check: searched all 1,215 public Feed Reader summaries and targeted OPML/type/uppercase descriptions. Bug 258102 comment 38 described folders without subscriptions after an RSSOwl import in 2014, but supplied no OPML testcase or cause; its maintainer requested a new bug with a reproducible example in comment 39. Bug 829885 used lowercase type="rss" and was resolved INVALID after its subscriptions were found. Bug 750292 addressed general OPML import/export, and bug 1556595 concerns empty imported folders with subscriptions. No exact uppercase-type report was found.

This demonstrates loss of feed subscriptions on import, not a security impact. No severity or bounty claim is made.

Reporter credit: Nguyen Tuan Hung (nguyentuanhung1149@gmail.com), VNU HCM - UIT.

(not a new version issue unless determined otherwise by regression testing)

Version: Thunderbird 159 → Thunderbird 81
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: