Bug 415276

Summary: Cannot open external URL with kde-open5 inside company network
Product: [Plasma] kde-cli-tools Reporter: efanzh
Component: generalAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.17.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description efanzh 2019-12-17 06:57:55 UTC
SUMMARY

My PC is inside my company network, I cannot connect to the Internet directly, and a company provided proxy server must be used in order to access the Internet. But it seems that kde-open5 does not support situations like this. If I use kde-open5 to open a URL, it reports a host not found error.

I have configured the `http_proxy`, `https_proxy` environment variable in `/etc/environment`, and selected “Use system proxy configuration” option in the proxy settings in KDE system settings. Both `curl` and `wget` can fetch the URL correctly.

First, why would kde-open5 attempt to resolve the host name? Why doesn’t it just open the browser and let the browser handle the URL?

Second, if kde-open5 really need to get some data from the provided URL, it should use the configured proxy to do those things. I have also tried `kde-open5 http://216.58.199.110` command, where “216.58.199.110” is a Google server. kde-open5 reports sockets operation timed out error. It seems to me that kde-open5 tries to contact the server directly instead of using the proxy server.
Comment 1 efanzh 2019-12-23 11:08:07 UTC
It seems that this problem has gone now after upgrading kio to 5.65.0.