Skip to content

Importing legacy json file throws index pattern exception #64280

@flash1293

Description

@flash1293

Kibana version: master

Describe the bug: Importing a legacy json file exported from 6.8 sems to successfully import all objects, but an exception is thrown and the user sees a technical warning about not being able to clear the index pattern cache

Steps to reproduce:

  1. Go to management > saved objects
  2. Open import flyout
  3. Drop this file: https://gist.githubusercontent.com/flash1293/0ea158f94dd165647c560d1b90a5ed72/raw/e322a98549a4893589d36e1f42a431b66113a979/export.json
  4. Start import
  5. Error is shown: this.patternCache.clear is not a function

Expected behavior:
Success message shown

Screenshots (if relevant):
Screenshot 2020-04-23 at 09 42 17

Metadata

Metadata

Assignees

Labels

Team:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//bugFixes for quality problems that affect the customer experiencev7.8.0

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions