Jira & Bitbucket extension cannot display Settings page (webview based) #17081
Labels
area/editor/theia
Issues related to the che-theia IDE of Che
kind/bug
Outline of a bug - must adhere to the bug report template.
severity/P2
Has a minor but important impact to the usage or development of the system.
status/in-progress
This issue has been taken by an engineer and is under active development.
Describe the bug
There is a PR eclipse-che/che-plugin-registry#475 to che-plugin-registry which adds Jira and Bitbucket extension to Che-Theia https://marketplace.visualstudio.com/items?itemName=Atlassian.atlascode.
It looks like we have unimplemented part of WebView plugin API, or just something wrong in implementation. The extension cannot display Settings and Getting Started pages, which are webviews.
It could be because the extension is originally written for VS Code, which is Electron-based, but we are trying to launch it in Che-Theia, which is browser-based.
The first issue is that Settings page tries to load a javascript, but fails with a message
Refused to load the script ... because it violates the following Content Security Policy directive
.The original
Content-Security-Policy
meta tag in the webview looks like following:After adding
'unsafe-inline' 'self'
to the directives, the first script is loaded successfully but the webview still fails with a new set of errors. A couple of files cannot be loaded, but they are exist on the file system.Also we have to pay attention, that the webview tries to open a resource with
vscode-resource:
scheme. We need to check whether support of such schemes it implemented or not in Theia plugin API.Che version
Steps to reproduce
Add the plugin from the PR to a workspace.
Runtime
It looks like it does not depend on the runtime and the installation method.
The text was updated successfully, but these errors were encountered: