Bug 1367991 - redhat-access-gui does not accept http_proxy or https_proxy
Summary: redhat-access-gui does not accept http_proxy or https_proxy
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: redhat-access-gui
Version: 7.1
Hardware: x86_64
OS: Linux
medium
high
Target Milestone: rc
: ---
Assignee: Lindani Phiri
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks: 1420851
TreeView+ depends on / blocked
 
Reported: 2016-08-18 04:39 UTC by shiwang
Modified: 2020-12-15 07:44 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-15 07:44:42 UTC
Target Upstream Version:


Attachments (Terms of Use)
modified redhat_access.py based on redhat-access-gui-1.0.0-6 (14.61 KB, text/x-python)
2016-10-08 09:00 UTC, Wu Siu Wa
no flags Details
modified redhat_access.ui based on redhat-access-gui-1.0.0-6 (35.93 KB, application/xml)
2016-10-08 09:00 UTC, Wu Siu Wa
no flags Details
Added proxy support. (5.93 KB, patch)
2016-10-08 09:42 UTC, Wu Siu Wa
no flags Details | Diff

Description shiwang 2016-08-18 04:39:29 UTC
Description of problem:

The redhat-access-gui tool does not accept http_proxy or https_proxy,
I want to know how to set proxy for redhat-access-gui tool.

Version-Release number of selected component (if applicable):

redhat-access-gui-1.0.0-6.el7.noarch.rpm

How reproducible:

In an internal network, try to use redhat-access-gui with proxy setting, but failed.
The proxy is correct because I can login to access.redhat.com using firefox.

Steps to Reproduce:
1.Install redhat-access-gui
2.Set http_proxy and https_proxy on bash cmd line

export http_proxy=XX.XX.XX.XX:3128
export https_proxy=XX.XX.XX.XX:3128

3.Run redhat-access-gui
4.Try to login with RHN login id.


Actual results:

Login failed, from the tcpdump, the communication to https://api.access.redhat.com does not go through proxy server

Expected results:

Login success 
the communication to https://api.access.redhat.com go through proxy server

Additional info:

Maybe redhat-access-gui does not have this feature, then it would be a new feature request.

Comment 2 Wu Siu Wa 2016-10-08 09:00:03 UTC
Created attachment 1208309 [details]
modified redhat_access.py based on redhat-access-gui-1.0.0-6

Comment 3 Wu Siu Wa 2016-10-08 09:00:45 UTC
Created attachment 1208310 [details]
modified redhat_access.ui based on redhat-access-gui-1.0.0-6

Comment 4 Wu Siu Wa 2016-10-08 09:03:54 UTC
Hello,

Proxy support should be easy to implement, as redhat_support_lib API already provide these options.

/usr/lib/python2.7/site-packages/redhat_support_lib/api.py
~~~
 class API(object):
     def __init__(self,
                 username,
                 password,
                 url='https://api.access.redhat.com',
                 key_file=None,
                 cert_file=None,
                 proxy_url=None,
                 proxy_user=None,
                 proxy_pass=None,
                 ftp_host='dropbox.redhat.com',
                 ftp_port=21,
                 ftp_user=None,
                 ftp_pass=None,
                 ftp_dir="/incoming",
                 timeout=None,
                 userAgent=None,
                 no_verify_ssl=False,
                 ssl_ca=None):
~~~


A modified version of `redhat-access-gui` is attached as attachment 1208309 [details] & 1208310.

Apologize that I didn't make it a patch file as I couldn't find the git tree.

feichashao

Comment 5 Wu Siu Wa 2016-10-08 09:42:52 UTC
Created attachment 1208311 [details]
Added proxy support.

This patch is based on redhat-access-gui-1.0.0-6

Comment 9 RHEL Program Management 2020-12-15 07:44:42 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.


Note You need to log in before you can comment on or make changes to this bug.