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

Canvas hangs when user tries to edit image #32937

Closed
rayafratkina opened this issue Mar 11, 2019 · 11 comments · Fixed by #109767
Closed

Canvas hangs when user tries to edit image #32937

rayafratkina opened this issue Mar 11, 2019 · 11 comments · Fixed by #109767
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Canvas impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas

Comments

@rayafratkina
Copy link
Contributor

Kibana version: 6.7

**Elasticsearch version: 6.7 **

Server OS version: cloud

Browser version: Chrome

Browser OS version: Windows

Original install method (e.g. download page, yum, from source, etc.):
Cloud instance from 6.7 BC

Steps to reproduce:

  1. Add image to the workpad
  2. Set it to pull from a URL
  3. Change it to use a specific asset
  4. Click on the link tab again and try to edit the URL
    -> browser hangs

Screenshots (if relevant):
screencapture-c67e621cd1b243618f1f36e2f86820d4-us-central1-gcp-foundit-no-9243-s-rayas-playground-app-canvas-2019-03-11-17_52_27

Errors in browser console (if relevant):
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-SHHSeLc0bp6xt4BoVVyUy+3IbVqp3ujLaR+s+kSP5UI='), or a nonce ('nonce-...') is required to enable inline execution.

:9243/s/rayas-playground/bundles/app/canvas/bootstrap.js:10 ^ A single error about an inline script not firing due to content security policy is expected!
(unknown) WebExtension::executeScript: content script injected

@rayafratkina rayafratkina added bug Fixes for quality problems that affect the customer experience Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas labels Mar 11, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas

@rayafratkina
Copy link
Contributor Author

Image I am using is
screencapture-mail-google-mail-u-1-2019-03-11-17_38_05 (1)

@cqliu1 cqliu1 added the loe:needs-research This issue requires some research before it can be worked on or estimated label Mar 14, 2019
@bellatrix1001
Copy link

Having the same issue without Canvas - as soon as Kibana loads. Using Nginx for a proxy and Chrome 73.

@Parthasarathi7722
Copy link

Having the same issue since this morning, below is the error.

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'nonce-qGH+wfBcFFcPB46F'". Either the 'unsafe-inline' keyword, a hash ('sha256-SHHSeLc0bp6xt4BoVVyUy+3IbVqp3ujLaR+s+kSP5UI='), or a nonce ('nonce-...') is required to enable inline execution.

any solution ???

@Susmit07
Copy link

Is it solved, I am facing the same issue, and its a production issue. Please hep out

@EssamEid614
Copy link

EssamEid614 commented Jun 18, 2019

i have had this isse with kibana trying to load maps and i faced the same csp warning , adding the csp rules in kibana.yml file fixed it for me
csp.rules:

  • "script-src 'self' https://.bing.com https://.virtualearth.net 'unsafe-eval' 'unsafe-inline'"

consider *.bing.com and *.virtualearth.net as the website u are loading the resource from

but this is on kibana 7.1.1 not 6

@Susmit07
Copy link

@EssamEid614 : so what does the final kibana.yml file looks like?
I got the same issue while I was trying to access the Kibana dashboard from outside the VM, the elastic search instance was running.

The kibana dashboard itself was not loading up
Kibana Error

@vrajroutu
Copy link

I have a similar error too.

kibana

@rayafratkina
Copy link
Contributor Author

Please note that a single unsafe-eval error on load is not a bug: see #30468 for discussion

@dipjyotighosh
Copy link

@EssamEid614 : so what does the final kibana.yml file looks like?
I got the same issue while I was trying to access the Kibana dashboard from outside the VM, the elastic search instance was running.

The kibana dashboard itself was not loading up
Kibana Error

Hi, was the issue resolved for you?
Can you please specify what needs to be added if the kibana.yml reads like this?

Default Kibana configuration for docker target

server.name: kibana
server.host: "0"
elasticsearch.hosts: [ "http://elasticsearch:9200" ]
xpack.monitoring.ui.container.elasticsearch.enabled: true
~
~
"kibana.yml" [noeol] 9L, 240C

@clintandrewhall clintandrewhall added the impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. label Mar 1, 2021
@crob611 crob611 self-assigned this Apr 26, 2021
@clintandrewhall clintandrewhall added impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort and removed loe:needs-research This issue requires some research before it can be worked on or estimated impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. labels Aug 24, 2021
@clintandrewhall
Copy link
Contributor

From #109767:

The reason this bug exists is because there is a bug where, if you use an asset, the link field is populated with the asset url. The larger the asset, the longer the URL you have to delete in order to replace it. On older machines, this would like cause the browser to freeze.

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:Canvas impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas
Projects
None yet
Development

Successfully merging a pull request may close this issue.