question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[che-theia] - open http preview in separate browser tab

See original GitHub issue

Is your enhancement related to a problem? Please describe.

This issue https://github.com/eclipse/che/issues/17840 will introduce option to expose user applications on subdomains in single-host mode. As we typically don’t have certificate for such subdomains, so we’re exposing those ports on HTTP only. As a result of that, che-theia can’t show the preview, because HTTP content can’t be loaded from HTTPS page.

20200930_190031_1920x2160_scrot

Bonus task/question (is this for separate issue?): In case of endpoint with attribute protocol: 'https', it’s exposed on HTTPS, but without valid certificate (we don’t have one for subdomains in single-host). In that case, the “Potential security issue” browser page is shown. However, you can’t “accept the risk” from the preview directly (I guess some browser security feature). You have to again open the URL in separate tab, then you can click the “accept the risk” button, and only then you can load the page in che-theia preview again. Can we do anything here to improve the user experience? 20200930_184744_1920x2160_scrot

Describe the solution you’d like

Che-theia should open HTTP URLs in new browser tab, instead of in-editor preview. In theory, when che-theia is on HTTP as well, it will work, but I guess we don’t support that anymore.

Describe alternatives you’ve considered

n/a

Additional context

https://github.com/eclipse/che/issues/17840

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
vitaliy-guliycommented, Mar 2, 2021

I’m closing it as non relevant. Feel free to open it if the problem is still present.

0reactions
vitaliy-guliycommented, Mar 1, 2021

Even when I installed http-server by hands, it works over HTTPS Screenshot from 2021-03-01 18-36-15

@sparkoo could you check the issue again?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Open a preview URL in an embedded panel in Theia #10738
A preview URL can be opened in a separate browser's tab. Preview URL list is synchronized with the running tasks automatically. Preview panel...
Read more >
How can I open a new browser tab from Python in Eclipse Che?
In Eclipse Che it is possible to preview an HTML file in the project Workspace (right-click => Preview). Then the HTML file opens...
Read more >
Can I view the preview in a different browser tab or window?
Yes! The Layout button at the top right of the Editor window allows you to view your PDF in a separate tab. The...
Read more >
Red Hat CodeReady Workspaces 2.9 End-user Guide
4.1.5.5.3. Command preview URL. 4.1.5.5.3.1. Setting the default way of opening preview URLs. 4.1.5.6. Adding attributes to a devfile.
Read more >
Use tabs for webpages in Safari on Mac - Apple Support
Preview a tab · Open a new tab · Open a webpage or PDF in a new tab · Open a webpage in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found