RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 832390 - perl-Frontier-RPC-Client mishandles proxy settings
Summary: perl-Frontier-RPC-Client mishandles proxy settings
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: perl-Frontier-RPC
Version: 6.3
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Petr Pisar
QA Contact: Martin Kyral
Lenka Špačková
URL:
Whiteboard:
Depends On:
Blocks: 947775 1070830 1159820 1172231 1254457 1269194 1269913 1359263
TreeView+ depends on / blocked
 
Reported: 2012-06-15 09:59 UTC by Marko Myllynen
Modified: 2018-12-06 14:46 UTC (History)
6 users (show)

Fixed In Version: perl-Frontier-RPC-0.07b4p1-10.el6
Doc Type: Release Note
Doc Text:
The *Frontier::Client* Perl module no longer ignores proxy settings for HTTPS requests When using the *Frontier::Client* Perl module to send an XML-RPC request to an HTTPS server through a proxy service, the proxy setting was previously ignored. Consequently, the request was sent directly to the HTTPS server and not through the proxy server. With this update, the *Frontier::Client* Perl module has been corrected to pass the proxy setting to an underlying *LWP::UserAgent* object for both HTTP and HTTPS schemata, and *Frontier::Client* now respects proxy setting also for HTTPS requests.
Clone Of:
Environment:
Last Closed: 2017-03-21 09:29:52 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Possible patch (722 bytes, patch)
2014-09-04 16:09 UTC, Petr Šabata
no flags Details | Diff
Fix (1.24 KB, patch)
2016-09-13 11:57 UTC, Petr Pisar
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
CPAN 117812 0 None None None 2016-09-13 11:54:13 UTC
Red Hat Product Errata RHBA-2017:0605 0 normal SHIPPED_LIVE perl-Frontier-RPC bug fix update 2017-03-21 12:26:43 UTC

Description Marko Myllynen 2012-06-15 09:59:03 UTC
Description of problem:
When creating a new Frontier client with

my $client = new Frontier::Client('url' => $url, 'proxy' => $proxy);

the proxy setting is used only for the HTTP protocol. In many corporate networks FTP/HTTP/HTTPS connections to the Internet are allowed only via proxies so the newly created Frontier client will fail to contact servers over HTTPS.

This is due to the new method in Frontier/Client.pm:

    $self->{'ua'}->proxy('http', $self->{'proxy'})
        if(defined $self->{'proxy'});

Version-Release number of selected component (if applicable):
perl-Frontier-RPC-Client-0.07b4p1-9.el6.noarch

Comment 2 RHEL Program Management 2012-09-07 05:00:17 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.

Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.

Comment 5 RHEL Program Management 2013-04-19 06:15:57 UTC
Quality Engineering Management has reviewed and declined this request.
You may appeal this decision by reopening this request.

Comment 13 Petr Šabata 2014-09-04 16:09:31 UTC
Created attachment 934523 [details]
Possible patch

Add support for a couple more schemes.

Comment 18 Petr Pisar 2016-09-13 11:57:03 UTC
Created attachment 1200473 [details]
Fix

This filters supported protocols correctly and it limits the schemata to http and https because XML-RPC is defined on top of HTTP only.

Comment 20 Petr Pisar 2016-09-13 12:24:15 UTC
How to test:

(1) Install package providing "perl(Frontier::Client)".
(2) Perform this command:

$ perl -Ilib -MFrontier::Client -e 'Frontier::Client->new(q{url} => q{https://localhost/}, q{proxy} => q{http://localhost:2000/})->call(q{method})'

(3) Check the network traffic or error output.
Before: A TCP connection to localhost:443 is performed, if there is no listening server, error "500 Can't connect to localhost:443 (connect: Connection refused)" is printed to error output.
After: A TCP connection to localhost:2000 is performed, if there is no listening proxt server, error "500 Can't connect to localhost:2000 (connect: Connection refused)" is printed.

Alternatively, you can set up an HTTP proxy and and HTTPS XML-RPC service and check the request is send only via the proxy and not directly.

Comment 22 Martin Kyral 2016-12-09 21:16:39 UTC
Bugfix verified in TR#299279:
https://tcms.engineering.redhat.com/run/299279/#caserun_14440448

[errata-resolution]
Old FAILED & New PASSED => FIXED

[result-summary]
old-files = FAILED [0-4/4] - failed on all in Test
new-files = PASSED [4-0/4]
old-avc = PASSED [4-0/4]
new-avc = PASSED [4-0/4]
old-duration = 0:00:30 [0:00:28 - 0:00:43]
new-duration = 0:00:20 [0:00:17 - 0:00:23]

Comment 24 errata-xmlrpc 2017-03-21 09:29:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0605.html


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