libwww-perl / libwww-perl/Net-HTTP

Net:HTTP 6.05 dows not work with VMware-vSphere-Perl-SDK [rt.cpan.org #81684]

Open
#60 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Perl
Stars
20
Forks
27
PR merge metrics
No merged PRs in 30d

Description

Migrated from rt.cpan.org#81684 (status was 'open')

Requestors:

  • kryol@bigmir.net

Attachments:

From kryol@bigmir.net on 2012-12-04 07:40:22
:

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


From nierlein@cpan.org on 2013-04-19 15:29:39
:

seems like this issue was solved by #81237 (released with 6.0.6)

From martineau.jl@gmail.com on 2013-09-11 18:57:00
:

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.


From martineau.jl@gmail.com on 2014-04-24 21:31:49
:

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


From https://www.google.com/accounts/o8/id?id=AItOawmgj_ZwMoFVbbbACmIegfUp5mGrRAE9rHA on 2014-10-23 22:50:51
:

On Thu Apr 24 17:31:49 2014, martineau.jl@gmail.com wrote:
> 
> 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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing Net-HTTP's SSL handling alongside the attached Net-HTTP-pending.diff and VICommon.pm.diff. Reproduce the VMware-vSphere-Perl-SDK request if possible, then determine which compatibility behavior is still needed for Net::SSL or Crypt::SSLeay. Done means the VMware request works without requiring users to downgrade dependencies.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.