Import OPML from another TTRSS instance: filters show "Unknown feed"

Checked all OPML related articles with forum search, no similar issue found.

Describe the problem you’re having:

Exporting OPML from my first TTRSS instance and importing into another user of the same TTRSS instance or a second instance results in most filters “forgetting” their feeds category assignment.

If possible include steps to reproduce the problem:

  • export OPML with settings
  • import OPML into another user account of same instance or into different instance
  • check completeness of feeds, filters, labels

Expected behaviour:

  • all feeds, filters, labels should work the same as in source instance

Observed behaviour:

  • feeds and labels were imported properly
  • most filters assigned to several subcategories on different levels in the feeds tree (which hold all feeds in a deeply structured tree with 3 sublevels) are searching in “Unknown feed” followed by a number in parenthesis, eg. the criteria contains “(Lastenräder|Lastenrad) innerhalb Title or Content von Unknown feed (26), Unknown feed (37), Unknown feed (49)

tt-rss version (including git commit id):

  • 18.12 (shared hoster with one-cllick-installer and without git)
  • 19.2, commit da1b3e3ba (same shared hoster, now cloned from git repo and uploaded by FTP)

Platform (i.e. Linux distro, PHP, PostgreSQL, etc) versions:

  • PHP 7.0
  • MySQL 5.7.25-0
  • Ubuntu 16.04

Please provide any additional information below:

  • issue started to occur after shared hosting provider updated Installatron based instance to 18.12 in January 2019, before this update all filters were imported as expected in several test cycles which included deleting and creating new non admin users
  • expected issue resolution by creating an instance of 19.2 shows the same error, therefore the changed digest email template of commit da1b3e3ba cannot be fully tested as no labels are assigned to new articles
  • in one test run all filters were assigned to the TTRSS forum feed which is included for every new user account, but this only occured once
  • feed tree structure: top category, subcategory, subsubcategory, feed

Thanks for your time and your support in advance.

yep, looks like per-category filter rules weren’t imported correctly:

https://git.tt-rss.org/fox/tt-rss/commit/6e920903b935415ff7820fae0b9aa5ef0cc8595c

also it’s nice to see a properly done bug report, thanks for that

Thanks a lot, filters run again as expected.

Otherwise fixing 80+ filters by hand would have been a long journey.

Bug can be closed.