Skip to content

Import of exported subscriptions fail. #1890

@bartlomiejcieszkowski

Description

@bartlomiejcieszkowski
PHP message: PHP Fatal error:  Uncaught Error: Call to a member function id() on null in /opt/freshrss/freshrss/app/Controllers/importExportController.php:428
Stack trace:
#0 /opt/freshrss/freshrss/app/Controllers/importExportController.php(93): FreshRSS_importExport_Controller->importJson('{\n    "id": "us...', true)
#1 /opt/freshrss/freshrss/app/Controllers/importExportController.php(143): FreshRSS_importExport_Controller->importFile('freshrss_2018-0...', '/tmp/phpTQ99qz')
#2 /opt/freshrss/freshrss/lib/Minz/Dispatcher.php(118): FreshRSS_importExport_Controller->importAction()
#3 /opt/freshrss/freshrss/lib/Minz/Dispatcher.php(47): Minz_Dispatcher->launchAction('importAction')
#4 /opt/freshrss/freshrss/lib/Minz/FrontController.php(84): Minz_Dispatcher->run()
#5 /opt/freshrss/freshrss/p/i/index.php(46): Minz_FrontController->run()
#6 {main}

Steps to reproduce:

  1. Import attached zip (simple export with both checkboxes - favourites and list of feeds)

freshrss_2018-05-20_export.zip

It failed on import of json with starred - content is:

{
    "id": "user/bart/state/org.freshrss/starred",
    "title": "List of favourite articles",
    "author": "bart",
    "items": [

]}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions