Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saved Object Management: saved objects import errors should be displayed to the user #66387

Closed
rudolf opened this issue May 13, 2020 · 1 comment · Fixed by #82406
Closed
Labels
bug Fixes for quality problems that affect the customer experience Feature:Kibana Management Feature label for Data Views, Advanced Setting, Saved Object management pages Feature:Saved Objects good first issue low hanging fruit Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@rudolf
Copy link
Contributor

rudolf commented May 13, 2020

The Saved Objects import/export API returns an error when an NDJSON file contains saved objects with a migrationVersion property that's newer than any migrations the current version of Kibana knows about.

{"statusCode":422,"error":"Unprocessable Entity","message":"Document \"d3d7af60-4c81-11e8-b3d7-01146121b73d\" has property \"index-pattern\" which belongs to a more recent version of Kibana [8.1.0]. The last known version is [7.6.0]"

This also happens when the server returns other errors like request entity too large when the payload size exceeds the default 10MB.

However, the Saved Objects Management UI just displays "Sorry, there was an error The file could not be processed."

When users attempt to import newer saved objects into an older version, we should display a helpful error message.

@rudolf rudolf added bug Fixes for quality problems that affect the customer experience good first issue low hanging fruit Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Feature:Saved Objects Feature:Kibana Management Feature label for Data Views, Advanced Setting, Saved Object management pages labels May 13, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform (Team:Platform)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Kibana Management Feature label for Data Views, Advanced Setting, Saved Object management pages Feature:Saved Objects good first issue low hanging fruit Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Projects
None yet
2 participants