Skip Menu |

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

Report information
The Basics
Id: 16968
Status: resolved
Priority: 0/
Queue: Net-Server

People
Owner: Nobody in particular
Requestors: xanco [...] nikhok.hu
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Net::Server::MultiType does not pass forward arguments
Dear Paul Seamons / Authors, I have tried to use Net::Server::MultiType (with XML::RPC::Server) but I could not pass arguments for the chosen personality by passing arguments to the run method. Using only a single personality a quick fix would be to pass forward @_ in Net::Server::MultiType::run when it is calling SUPER::run, so line 108 should be in my opinion: $self->SUPER::run(@_); My current workaround (without modifying this package) is to write arguments to $self->{server}->{xxx} variables by hand breafore calling run method. On the other hand maybe I missed some other interface to pass arguments to the chosen personality, in this case ignore my report, please. Best regards, Aron Ujvari System description: Net::Server v0.90 This is perl, v5.8.7 built for i486-linux-gnu-thread-multi Linux cimitarra 2.6.12-9-k7 #1 Mon Oct 10 13:47:52 BST 2005 i686 GNU/Linux (Ubuntu 5.10, Net::Server installed from CPAN)
Subject: Re: [cpan #16968] Net::Server::MultiType does not pass forward arguments
Date: Wed, 8 Mar 2006 14:33:14 -0700
To: bug-Net-Server [...] rt.cpan.org
From: Paul Seamons <mail [...] seamons.com>
On Sunday 08 January 2006 3:23 pm, Guest via RT wrote: Show quoted text
> This message about Net-Server was sent to you by guest <> via rt.cpan.org > > Full context and any attached attachments can be found at: > <URL: https://rt.cpan.org/Ticket/Display.html?id=16968 > > > Dear Paul Seamons / Authors, > > I have tried to use Net::Server::MultiType (with XML::RPC::Server) but I > could not pass arguments for the chosen personality by passing arguments to > the run method. > > Using only a single personality a quick fix would be to pass forward @_ in > Net::Server::MultiType::run when it is calling SUPER::run, so line 108 > should be in my opinion: $self->SUPER::run(@_); > > My current workaround (without modifying this package) is to write > arguments to $self->{server}->{xxx} variables by hand breafore calling run > method. > > On the other hand maybe I missed some other interface to pass arguments to > the chosen personality, in this case ignore my report, please.
Version 0.91 due out today passes on the arguments just how you have shown. The change log says. Pass parameters to ->run the second time it is called. This allows for multitype to handle more parameters - but needs to be tested for all use cases (it could result in array fields getting multiple entries which should be fine in most cases). Thanks to Aron Ujvari for pointing this out. Paul Seamons
This was resolved with the 0.91 release.