Skip to content

Comments

[SECURITY] fix bug to add timeline to case#70343

Merged
XavierM merged 1 commit intoelastic:masterfrom
XavierM:bug-attach-timeline-to-case
Jul 1, 2020
Merged

[SECURITY] fix bug to add timeline to case#70343
XavierM merged 1 commit intoelastic:masterfrom
XavierM:bug-attach-timeline-to-case

Conversation

@XavierM
Copy link
Contributor

@XavierM XavierM commented Jun 30, 2020

Summary

Bug Description:

  1. Create a timeline
  2. Attach this timeline to a new case
  3. re-open the timeline
  4. Attach timeline to existing case
  5. 💥 it was broken with no link

Checklist

Delete any items that are not applicable to this PR.

@XavierM XavierM added bug Fixes for quality problems that affect the customer experience Team:SIEM v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.9.0 labels Jun 30, 2020
@XavierM XavierM requested review from a team as code owners June 30, 2020 16:56
@XavierM XavierM self-assigned this Jun 30, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/siem (Team:SIEM)

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-oss-agent / Chrome UI Functional Tests.test/functional/apps/saved_objects_management/edit_saved_object·ts.saved objects management saved objects edition page allows to delete a saved object

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 5 times on tracked branches: https://github.com/elastic/kibana/issues/68400

[00:00:00]       │
[00:11:38]         └-: saved objects management
[00:11:38]           └-> "before all" hook
[00:11:38]           └-: saved objects edition page
[00:11:38]             └-> "before all" hook
[00:11:38]             └-> allows to update the saved object when submitting
[00:11:38]               └-> "before each" hook: global before each
[00:11:38]               └-> "before each" hook
[00:11:38]                 │ info [saved_objects_management/edit_saved_object] Loading "mappings.json"
[00:11:38]                 │ info [saved_objects_management/edit_saved_object] Loading "data.json"
[00:11:38]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:11:38]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]])." previous.health="YELLOW" reason="shards started [[.kibana][0]]"
[00:11:38]                 │ info [saved_objects_management/edit_saved_object] Created index ".kibana"
[00:11:38]                 │ debg [saved_objects_management/edit_saved_object] ".kibana" settings {"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}}
[00:11:38]                 │ info [saved_objects_management/edit_saved_object] Indexed 4 docs into ".kibana"
[00:11:38]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana/sfmAWxgPTVG6SYmWD9wnZg] update_mapping [_doc]
[00:11:38]                 │ debg Migrating saved objects
[00:11:38]                 │ proc [kibana]   log   [17:28:56.133] [info][savedobjects-service] Creating index .kibana_2.
[00:11:38]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:11:38]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] updating number_of_replicas to [0] for indices [.kibana_2]
[00:11:38]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_2][0]]"
[00:11:38]                 │ proc [kibana]   log   [17:28:56.190] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:11:38]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:11:38]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] updating number_of_replicas to [0] for indices [.kibana_1]
[00:11:38]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_1][0]]"
[00:11:38]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] 3718 finished with response BulkByScrollResponse[took=21.6ms,timed_out=false,sliceId=null,updated=0,created=4,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:11:38]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana/sfmAWxgPTVG6SYmWD9wnZg] deleting index
[00:11:39]                 │ proc [kibana]   log   [17:28:56.513] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:11:39]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana_2/PmeyJ70dS0CNcC_MxeWxkw] update_mapping [_doc]
[00:11:39]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana_2/PmeyJ70dS0CNcC_MxeWxkw] update_mapping [_doc]
[00:11:39]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana_2/PmeyJ70dS0CNcC_MxeWxkw] update_mapping [_doc]
[00:11:39]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana_2/PmeyJ70dS0CNcC_MxeWxkw] update_mapping [_doc]
[00:11:39]                 │ proc [kibana]   log   [17:28:56.612] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:11:39]                 │ proc [kibana]   log   [17:28:56.645] [info][savedobjects-service] Finished in 514ms.
[00:11:39]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:11:39]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana_2/PmeyJ70dS0CNcC_MxeWxkw] update_mapping [_doc]
[00:11:40]               │ debg navigating to settings url: http://localhost:6181/app/management
[00:11:40]               │ debg navigate to: http://localhost:6181/app/management
[00:11:40]               │ debg browser[INFO] http://localhost:6181/app/management?_t=1593538138191 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:11:40]               │
[00:11:40]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 43:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:40]               │ debg ... sleep(700) start
[00:11:41]               │ debg ... sleep(700) end
[00:11:41]               │ debg returned from get, calling refresh
[00:11:41]               │ debg browser[INFO] http://localhost:6181/34180/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 444:106112 "INFO: 2020-06-30T17:28:59Z
[00:11:41]               │        Adding connection to http://localhost:6181/elasticsearch
[00:11:41]               │
[00:11:41]               │      "
[00:11:41]               │ERROR browser[SEVERE] http://localhost:6181/34180/bundles/core/core.entry.js 75:261772 TypeError: Failed to fetch
[00:11:41]               │          at Fetch._callee3$ (http://localhost:6181/34180/bundles/core/core.entry.js:26:104500)
[00:11:41]               │          at l (http://localhost:6181/34180/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:360:1007041)
[00:11:41]               │          at Generator._invoke (http://localhost:6181/34180/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:360:1006794)
[00:11:41]               │          at Generator.forEach.e.<computed> [as throw] (http://localhost:6181/34180/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:360:1007398)
[00:11:41]               │          at fetch_asyncGeneratorStep (http://localhost:6181/34180/bundles/core/core.entry.js:26:98881)
[00:11:41]               │          at _throw (http://localhost:6181/34180/bundles/core/core.entry.js:26:99289)
[00:11:41]               │ debg browser[INFO] http://localhost:6181/app/management?_t=1593538138191 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:11:41]               │
[00:11:41]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 43:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:41]               │ debg currentUrl = http://localhost:6181/app/management
[00:11:41]               │          appUrl = http://localhost:6181/app/management
[00:11:41]               │ debg TestSubjects.find(kibanaChrome)
[00:11:41]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:11:43]               │ debg browser[INFO] http://localhost:6181/34180/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 444:106112 "INFO: 2020-06-30T17:29:00Z
[00:11:43]               │        Adding connection to http://localhost:6181/elasticsearch
[00:11:43]               │
[00:11:43]               │      "
[00:11:43]               │ debg ... sleep(501) start
[00:11:43]               │ debg ... sleep(501) end
[00:11:43]               │ debg in navigateTo url = http://localhost:6181/app/management
[00:11:43]               │ debg TestSubjects.exists(statusPageContainer)
[00:11:43]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:11:46]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:11:46]               │ debg TestSubjects.click(objects)
[00:11:46]               │ debg Find.clickByCssSelector('[data-test-subj="objects"]') with timeout=10000
[00:11:46]               │ debg Find.findByCssSelector('[data-test-subj="objects"]') with timeout=10000
[00:11:46]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:11:46]               │ debg --- retry.try error: Waiting
[00:11:47]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:11:49]               │ debg --- retry.tryForTime error: *[data-test-subj="savedObjectsTable"] .euiBasicTable-loading is not displayed
[00:11:50]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:11:52]               │ debg --- retry.tryForTime error: *[data-test-subj="savedObjectsTable"] .euiBasicTable-loading is not displayed
[00:11:53]               │ debg TestSubjects.find(savedObjectsTable)
[00:11:53]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectsTable"]') with timeout=10000
[00:11:53]               │ debg navigateToUrl http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:11:53]               │ debg browser[INFO] http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist?_t=1593538150994 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:11:53]               │
[00:11:53]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 43:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:53]               │ debg currentUrl = http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:11:53]               │          appUrl = http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:11:53]               │ debg TestSubjects.find(kibanaChrome)
[00:11:53]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:11:54]               │ debg TestSubjects.exists(savedObjectEditSave)
[00:11:54]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="savedObjectEditSave"]') with timeout=120000
[00:11:54]               │ debg browser[INFO] http://localhost:6181/34180/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 444:106112 "INFO: 2020-06-30T17:29:11Z
[00:11:54]               │        Adding connection to http://localhost:6181/elasticsearch
[00:11:54]               │
[00:11:54]               │      "
[00:11:54]               │ debg TestSubjects.getAttribute(savedObjects-editField-title, value)
[00:11:54]               │ debg TestSubjects.find(savedObjects-editField-title)
[00:11:54]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-title"]') with timeout=10000
[00:11:55]               │ debg TestSubjects.setValue(savedObjects-editField-title, Edited Dashboard)
[00:11:55]               │ debg TestSubjects.click(savedObjects-editField-title)
[00:11:55]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjects-editField-title"]') with timeout=10000
[00:11:55]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-title"]') with timeout=10000
[00:11:55]               │ debg TestSubjects.setValue(savedObjects-editField-description, Some description)
[00:11:55]               │ debg TestSubjects.click(savedObjects-editField-description)
[00:11:55]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjects-editField-description"]') with timeout=10000
[00:11:55]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-description"]') with timeout=10000
[00:11:55]               │ debg TestSubjects.find(savedObjectEditSave)
[00:11:55]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectEditSave"]') with timeout=10000
[00:11:55]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:11:55]               │ debg --- retry.try error: Waiting
[00:11:56]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:11:58]               │ debg --- retry.tryForTime error: *[data-test-subj="savedObjectsTable"] .euiBasicTable-loading is not displayed
[00:11:59]               │ debg TestSubjects.find(savedObjectsTable)
[00:11:59]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectsTable"]') with timeout=10000
[00:11:59]               │ debg navigateToUrl http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:11:59]               │ debg currentUrl = http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:11:59]               │          appUrl = http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:11:59]               │ debg TestSubjects.find(kibanaChrome)
[00:11:59]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:12:00]               │ debg TestSubjects.getAttribute(savedObjects-editField-title, value)
[00:12:00]               │ debg TestSubjects.find(savedObjects-editField-title)
[00:12:00]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-title"]') with timeout=10000
[00:12:00]               │ debg browser[INFO] http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist?_t=1593538156910 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:12:00]               │
[00:12:00]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 43:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:12:00]               │ debg browser[INFO] http://localhost:6181/34180/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 444:106112 "INFO: 2020-06-30T17:29:17Z
[00:12:00]               │        Adding connection to http://localhost:6181/elasticsearch
[00:12:00]               │
[00:12:00]               │      "
[00:12:00]               │ debg TestSubjects.getAttribute(savedObjects-editField-description, value)
[00:12:00]               │ debg TestSubjects.find(savedObjects-editField-description)
[00:12:00]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-description"]') with timeout=10000
[00:12:00]               └- ✓ pass  (20.1s) "saved objects management saved objects edition page allows to update the saved object when submitting"
[00:12:00]             └-> "after each" hook
[00:12:00]               │ info [saved_objects_management/edit_saved_object] Unloading indices from "mappings.json"
[00:12:00]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana_2/PmeyJ70dS0CNcC_MxeWxkw] deleting index
[00:12:00]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana_1/uBmRfSpSQ2uzCak3HBsqNA] deleting index
[00:12:00]               │ info [saved_objects_management/edit_saved_object] Deleted existing index [".kibana_2",".kibana_1"]
[00:12:00]               │ info [saved_objects_management/edit_saved_object] Unloading indices from "data.json"
[00:12:00]             └-> allows to delete a saved object
[00:12:00]               └-> "before each" hook: global before each
[00:12:00]               └-> "before each" hook
[00:12:00]                 │ info [saved_objects_management/edit_saved_object] Loading "mappings.json"
[00:12:00]                 │ info [saved_objects_management/edit_saved_object] Loading "data.json"
[00:12:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:12:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]])." previous.health="YELLOW" reason="shards started [[.kibana][0]]"
[00:12:00]                 │ info [saved_objects_management/edit_saved_object] Created index ".kibana"
[00:12:00]                 │ debg [saved_objects_management/edit_saved_object] ".kibana" settings {"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}}
[00:12:00]                 │ info [saved_objects_management/edit_saved_object] Indexed 4 docs into ".kibana"
[00:12:00]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana/icjLKvf1RhioVVrlsuwPIg] update_mapping [_doc]
[00:12:00]                 │ debg Migrating saved objects
[00:12:00]                 │ proc [kibana]   log   [17:29:18.465] [info][savedobjects-service] Creating index .kibana_2.
[00:12:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:12:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] updating number_of_replicas to [0] for indices [.kibana_2]
[00:12:01]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_2][0]]"
[00:12:01]                 │ proc [kibana]   log   [17:29:18.511] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:12:01]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:12:01]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] updating number_of_replicas to [0] for indices [.kibana_1]
[00:12:01]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_1][0]]"
[00:12:01]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] 3964 finished with response BulkByScrollResponse[took=19.4ms,timed_out=false,sliceId=null,updated=0,created=4,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:12:01]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana/icjLKvf1RhioVVrlsuwPIg] deleting index
[00:12:01]                 │ proc [kibana]   log   [17:29:18.828] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:12:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana_2/92_KVgxOQbW58wQKa9G9UQ] update_mapping [_doc]
[00:12:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana_2/92_KVgxOQbW58wQKa9G9UQ] update_mapping [_doc]
[00:12:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana_2/92_KVgxOQbW58wQKa9G9UQ] update_mapping [_doc]
[00:12:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana_2/92_KVgxOQbW58wQKa9G9UQ] update_mapping [_doc]
[00:12:01]                 │ proc [kibana]   log   [17:29:18.922] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:12:01]                 │ proc [kibana]   log   [17:29:18.960] [info][savedobjects-service] Finished in 496ms.
[00:12:01]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:12:02]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1593536230784045814] [.kibana_2/92_KVgxOQbW58wQKa9G9UQ] update_mapping [_doc]
[00:12:03]               │ debg navigateToUrl http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:12:03]               │ debg currentUrl = http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:12:03]               │          appUrl = http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:12:03]               │ debg TestSubjects.find(kibanaChrome)
[00:12:03]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:12:04]               │ debg TestSubjects.find(savedObjectEditDelete)
[00:12:04]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectEditDelete"]') with timeout=10000
[00:12:04]               │ debg browser[INFO] http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist?_t=1593538160516 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:12:04]               │
[00:12:04]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 43:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:12:04]               │ debg browser[INFO] http://localhost:6181/34180/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 444:106112 "INFO: 2020-06-30T17:29:21Z
[00:12:04]               │        Adding connection to http://localhost:6181/elasticsearch
[00:12:04]               │
[00:12:04]               │      "
[00:12:04]               │ debg Clicking modal confirm
[00:12:04]               │ debg TestSubjects.exists(confirmModalTitleText)
[00:12:04]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="confirmModalTitleText"]') with timeout=2500
[00:12:04]               │ debg TestSubjects.click(confirmModalConfirmButton)
[00:12:04]               │ debg Find.clickByCssSelector('[data-test-subj="confirmModalConfirmButton"]') with timeout=10000
[00:12:04]               │ debg Find.findByCssSelector('[data-test-subj="confirmModalConfirmButton"]') with timeout=10000
[00:12:04]               │ debg TestSubjects.exists(confirmModalTitleText)
[00:12:04]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="confirmModalTitleText"]') with timeout=2500
[00:12:07]               │ debg browser[INFO] http://localhost:6181/34180/bundles/core/core.entry.js 75:262851 "Detected an unhandled Promise rejection.
[00:12:07]               │      TypeError: Cannot read property 'attributes' of undefined"
[00:12:07]               │ERROR browser[SEVERE] http://localhost:6181/34180/bundles/plugin/savedObjectsManagement/1.plugin.js 5:34045 Uncaught TypeError: Cannot read property 'attributes' of undefined
[00:12:07]               │ debg --- retry.tryForTime error: [data-test-subj="confirmModalTitleText"] is not displayed
[00:12:07]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:12:10]               │ debg --- retry.tryForTime error: *[data-test-subj="savedObjectsTable"] .euiBasicTable-loading is not displayed
[00:12:10]               │ debg TestSubjects.find(savedObjectsTable)
[00:12:10]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectsTable"]') with timeout=10000
[00:12:20]               │ info Taking screenshot "/dev/shm/workspace/kibana/test/functional/screenshots/failure/saved objects management saved objects edition page allows to delete a saved object.png"
[00:12:20]               │ info Current URL is: http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:12:20]               │ info Saving page source to: /dev/shm/workspace/kibana/test/functional/failure_debug/html/saved objects management saved objects edition page allows to delete a saved object.html
[00:12:20]               └- ✖ fail: "saved objects management saved objects edition page allows to delete a saved object"
[00:12:20]               │

Stack Trace

{ TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="savedObjectsTable"])
Wait timed out after 10052ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7) name: 'TimeoutError', remoteStacktrace: '' }

Build metrics

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@stephmilovic stephmilovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

passes code review, did manual testing on a variety of insert timeline scenarios including the one described and all looks good. thanks for the fix, LGTM 🏁 🐎

@XavierM XavierM merged commit 9af75fa into elastic:master Jul 1, 2020
XavierM added a commit to XavierM/kibana that referenced this pull request Jul 1, 2020
XavierM added a commit that referenced this pull request Jul 1, 2020
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Bamieh pushed a commit to Bamieh/kibana that referenced this pull request Jul 1, 2020
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 1, 2020
…-based-rbac

* upstream/master: (38 commits)
  Move logger configuration integration test to jest (elastic#70378)
  Changes observability plugin codeowner (elastic#70439)
  update (elastic#70424)
  [Logs UI] Avoid CCS-incompatible index name resolution (elastic#70179)
  Enable "Explore underlying data" actions for Lens visualizations (elastic#70047)
  Initial work on uptime homepage API (elastic#70135)
  expressions indexPattern function (elastic#70315)
  [Discover] Deangularization context error message refactoring (elastic#70090)
  [Lens] Add "no data" popover (elastic#69147)
  [Lens] Move chart switcher over (elastic#70182)
  chore: add missing mjs extension (elastic#70326)
  [Lens] Multiple y axes (elastic#69911)
  skip flaky suite (elastic#70386)
  fix bug to add timeline to case (elastic#70343)
  [QA][Code Coverage] Drop catchError and use try / catch instead, (elastic#69198)
  [QA] [Code Coverage] Integrate with Team Assignment Pipeline and Add Research and Development Indexes and Cluster (elastic#69348)
  [Metrics UI] Add context.reason and alertOnNoData to Inventory alerts (elastic#70260)
  Resolver refactoring (elastic#70312)
  [Ingest Manager] Fix agent ack after input format change (elastic#70335)
  [eslint][ts] Enable prefer-ts-expect-error (elastic#70022)
  ...
@MindyRS MindyRS added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Sep 23, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

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 release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:SIEM v7.9.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants