-
Notifications
You must be signed in to change notification settings - Fork 95
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
Some URLs are not displayed with action button (Open Web Page) and Web Browser widgets #2990
Comments
For the "Open Web Page" action, we try to simply pass the URL on to the system web browser (Firefox, Safari, Chrome, ...). |
Ok, thank you for your answer, I will make a PR with the commit for the Open Web Page action, for the Web Browser widget, I'll try to take a look at what could be done |
#2991 should fix that, but it changes the flow beyond just a replacement of
in the
Is your https:// problem fixed by just that replacement? Then let's do that. |
@Mathis-Hu can you confirm is the above works? |
@shroffk For the action open web page with action button it is working. For the Web browser widget I have a doubt, but I don't think I patched it. |
When entering some https:// URLs, the page is not loaded, it seems to happen when the page requires an authentication to access.
Some of my users want to access the web page of a web server with instrumentations, but they cannot with both widgets.
For the Open Web Page action (responsible class : ModelResourceUtil.java) , it seem that the code is checking if the page exist and is trying to read it. So if the page is not correct or have an authentication, it will not load it, and you'll not have any pop up to inform you that it doesn't work.
I think it would be better if Phoebus only check if the page exist before opening it. Then if the URL is not correct, it will load anyways and the user can see that it's not correct, and it will allow the users to use URL for other cases (like the use case of my users).
Our lab modified the class so now phoebus only check if the page exist, and it work for our users. I will make a PR for that if it does not pose security issue or anything that justified the original operation.
For the web browser widget, it seems that phoebus uses WebEngine from javafx and that it's that class that manage the loading of web page. Do you think it would be possible to change some code to make the Web Browser less restrictive with URL like the changes I made for the Open Web Page action ?
@kasemir
The text was updated successfully, but these errors were encountered: