Skip Menu |

This queue is for tickets about the Net-HTTP CPAN distribution.

Report information
The Basics
Id: 81684
Status: resolved
Priority: 0/
Queue: Net-HTTP

People
Owner: Nobody in particular
Requestors: kryol [...] bigmir.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 6.05
Fixed in: (no value)



Subject: Net:HTTP 6.05 dows not work with VMware-vSphere-Perl-SDK
After update Net-HTTP from 6.03 to 6.05 VMware-vSphere-Perl-SDK does not work I get SOAP request error - possibly a protocol issue: <?xml version="1.0" encoding="UTF-8"?> For 6.03 all worked fine. I use FreeBSD 8.2-RELEASE. Not tested for another OSes. # perl -v This is perl 5, version 12, subversion 4 (v5.12.4) built for i386-freebsd-64int How-to-repeat: e.g. /usr/local/share/examples/vmware-vsphere-cli/performance/viperformance.pl --host XX.XX.XX.XX --server XX.XX.XX.XX --countertype net --samples 1 --instance "*" --username root --password XXXXXXXXX
seems like this issue was solved by #81237 (released with 6.0.6)
Subject: [rt.cpan.org #81684]
Date: Wed, 11 Sep 2013 14:56:50 -0400
To: bug-Net-HTTP [...] rt.cpan.org
From: Jean-Louis Martineau <martineau.jl [...] gmail.com>
Net-HTTP 6.06 might fix the bug when using IO::Socket::SSL but vmware is using Crypt::SSLeay. A similar fix for Net::SSL is required, the problem is that Net::SSL do not yet have the pending method, it should be added, returning the value of SSL_pending. The correct fix is probably: return 1 if $self->can('pending') && $self->pending; and ask the Net::SSL maintainer to add the pending method.
Subject: [rt.cpan.org #81684]
Date: Thu, 24 Apr 2014 17:31:39 -0400
To: bug-Net-HTTP [...] rt.cpan.org
From: Jean-Louis Martineau <martineau.jl [...] gmail.com>
Net::HTTP-6.04 and newer are not compatible with Net::SSL Net::SSL2.86 add the 'pending' method. The attached patch fix Net:HTTP to use the pending method of Net:SSL. A new release with this patch will be appreciated by all vmware users, downgrading LWP and Net::SSL will no longer be required. Jean-Louis

Message body is not shown because sender requested not to inline it.

On Thu Apr 24 17:31:49 2014, martineau.jl@gmail.com wrote: Show quoted text
> > A new release with this patch will be appreciated by all vmware users, > downgrading LWP and Net::SSL will no longer be required.
This patch doesn't work for me to fix the VMware Perl SDK. What does work is to remove the parts in VICommon.pm that explicitly require Net::SSL or Crypt::SSLeay.
Subject: VICommon.pm.diff
--- /Users/wfaulk/Downloads/vmware-vsphere-cli-distrib/VMware/VICommon.pm 2014-10-15 15:35:38.000000000 -0400 +++ VICommon.pm 2014-10-23 18:50:03.000000000 -0400 @@ -424,15 +424,6 @@ my $url = shift; my %supportedapiversions; if ($url =~ s|http(s?)://(.*)/sdk.*|http$1://$2/sdk/vimService.wsdl|i) { - if ($1 eq "s") { - eval { - require Crypt::SSLeay; - Crypt::SSLeay->import(); - }; - if ($@) { - die "Crypt::SSLeay is required for https connections, but could not be loaded: $@"; - } - } my $temp_addr = $2; if ($temp_addr =~ /:/) { @@ -501,23 +492,11 @@ sub query_server_version { BEGIN { - #To remove SSL Warning, switching from IO::Socket::SSL to Net::SSL - $ENV{PERL_NET_HTTPS_SSL_SOCKET_CLASS} = "Net::SSL"; #To remove host verification $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0; } my $url = shift; if ($url =~ s|http(s?)://(.*)/sdk.*|http$1://$2/sdk/vimService.wsdl|i) { - # bug 288336 - if ($1 eq "s") { - eval { - require Crypt::SSLeay; - Crypt::SSLeay->import(); - }; - if ($@) { - die "Crypt::SSLeay is required for https connections, but could not be loaded: $@"; - } - } # no IPv6 support yet my $temp_addr = $2; if ($temp_addr =~ /:/) {