elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.81k stars 8.2k forks source link

Kibana should display better error message on relationships panel in saved objects table and not undefined response #88451

Closed bhavyarm closed 3 years ago

bhavyarm commented 3 years ago

Kibana version: 7.11.0 BC3

Elasticsearch version: 7.11.0 BC3

Server OS version: darwin_x86_64

Browser version: chrome latest

Browser OS version: OS X

Original install method (e.g. download page, yum, from source, etc.): from staging

Describe the bug: Kibana displays undefined response on relationships panel for a file imported from 6.8.13 and logs The saved object (map) displays correctly in the maps app.

Here is the saved object which includes related objects. export_logstashmap.ndjson.txt

I can also see in the console which is very strange. I didn't do anything with apm related on 6.8.13 (like explicit setting up of the apm.)

:5601/api/kibana/management/saved_objects/relationships/map/a6fc2a20-55d9-11eb-b980-01e7b2b1fb23?savedObjectTypes=config&savedObjectTypes=url&savedObjectTypes=query&savedObjectTypes=index-pattern&savedObjectTypes=visualization&savedObjectTypes=canvas-element&savedObjectTypes=canvas-workpad&savedObjectTypes=graph-workspace&savedObjectTypes=dashboard&savedObjectTypes=search&savedObjectTypes=tag&savedObjectTypes=map&savedObjectTypes=lens&savedObjectTypes=infrastructure-ui-source&savedObjectTypes=metrics-explorer-view&savedObjectTypes=inventory-view&savedObjectTypes=apm-indices:1 

Screenshots (if relevant):

Screen Shot 2021-01-15 at 7 11 04 AM

Kibana logs:

 log   [16:23:31.786] [error][http] TypeError: Cannot read property 'name' of undefined
    at getTitle (/Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/x-pack/plugins/saved_objects_tagging/server/saved_objects/tag.js:37:37)
    at SavedObjectsManagement.getTitle (/Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/src/plugins/saved_objects_management/server/services/management.js:51:23)
    at injectMetaAttributes (/Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/src/plugins/saved_objects_management/server/lib/inject_meta_attributes.js:32:46)
    at /Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/src/plugins/saved_objects_management/server/lib/find_relationships.js:54:108
    at Array.map (<anonymous>)
    at findRelationships (/Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/src/plugins/saved_objects_management/server/lib/find_relationships.js:54:48)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at /Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/src/plugins/saved_objects_management/server/routes/relationships.js:58:23
    at /Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/src/core/server/http/router/error_wrapper.js:33:14
    at Router.handle (/Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/src/core/server/http/router/router.js:163:30)
    at handler (/Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/src/core/server/http/router/router.js:124:50)
    at module.exports.internals.Manager.execute (/Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/node_modules/@hapi/hapi/lib/toolkit.js:45:28)
    at Object.internals.handler (/Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/node_modules/@hapi/hapi/lib/handler.js:46:20)
    at exports.execute (/Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/node_modules/@hapi/hapi/lib/handler.js:31:20)
    at Request._lifecycle (/Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/node_modules/@hapi/hapi/lib/request.js:312:32)
 error  [16:23:31.760]  Error: Internal Server Error
    at HapiResponseAdapter.toInternalError (/Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/src/core/server/http/router/response_adapter.js:69:19)
    at Router.handle (/Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/src/core/server/http/router/router.js:177:34)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at handler (/Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/src/core/server/http/router/router.js:124:50)
    at module.exports.internals.Manager.execute (/Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/node_modules/@hapi/hapi/lib/toolkit.js:45:28)
    at Object.internals.handler (/Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/node_modules/@hapi/hapi/lib/handler.js:46:20)
    at exports.execute (/Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/node_modules/@hapi/hapi/lib/handler.js:31:20)
    at Request._lifecycle (/Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/node_modules/@hapi/hapi/lib/request.js:312:32)
    at Request._execute (/Users/bhavyarajumandya/Desktop/upgrade_6.8.13_to_7.11.0/kibana-7.11.0-darwin-x86_64/node_modules/@hapi/hapi/lib/request.js:221:9)
elasticmachine commented 3 years ago

Pinging @elastic/kibana-core (Team:Core)

pgayvallet commented 3 years ago

Closing in favor of https://github.com/elastic/kibana/issues/88009