Skip Menu |

This queue is for tickets about the REST-Client CPAN distribution.

Report information
The Basics
Id: 86726
Status: resolved
Priority: 0/
Queue: REST-Client

People
Owner: Nobody in particular
Requestors: forni.massimo [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in:
  • 118
  • 134
  • 150
  • 164
  • 171
  • 217
  • 236
  • 240
  • 243
  • 245
  • 249
  • 95



Subject: Wrong call in POST request
Date: Fri, 5 Jul 2013 11:39:15 +0200
To: bug-REST-Client [...] rt.cpan.org
From: Massimo Forni <forni.massimo [...] gmail.com>
Hello, in the sub POST you call the request sub with 'PUT' parameter. It should be 'POST' From: sub POST { my $self = shift; return $self->request('PUT', @_); } To: sub POST { my $self = shift; return $self->request('POST', @_); }
I've just checked and I do not see the code you're referencing. the POST sub definitely says Post, going back to 2011. Are you sure this is a fresh copy you have? On Fri Jul 05 05:39:29 2013, forni.massimo@gmail.com wrote: Show quoted text
> Hello, > in the sub POST you call the request sub with 'PUT' parameter. > It should be 'POST' > > From: > > sub POST { > my $self = shift; > return $self->request('PUT', @_); > } > > To: > > sub POST { > my $self = shift; > return $self->request('POST', @_); > }
Subject: [rt.cpan.org #86726]
Date: Tue, 3 Sep 2013 12:17:03 -0600
To: <bug-REST-Client [...] rt.cpan.org>
From: Joe Lewis <jlewis [...] overstock.com>
Definitely a problem in REST-Client-88.tar.gz. Had to manually change the request from PUT to POST : [joe@hostname RestClient]# diff /root/tmp/RestClient/lib/REST/Client.pm /usr/lib/perl5/site_perl/5.8.8/REST/Client.pm 161c161 < return $self->request('PUT', @_); --- Show quoted text
> return $self->request('POST', @_);
[joe@hostname RestClient]# Without that, I was receiving a method-not-allowed error from the tomcat implementation for the REST implementation we were doing. -- Joe Lewis Overstock.com Linux Engineer http://www.overstock.com/ https://itsaboutlove.org/ial/profiles/28499924/ourMessage.jsf Show quoted text
________________________________ CONFIDENTIALITY NOTICE: This message is intended only for the use and review of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message solely to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify sender immediately by telephone or return email. Thank you.
This is a duplicate of https://rt.cpan.org/Public/Bug/Display.html?id=43819 The bug was fixed in version 95 and up. REST-Client 88 was the last release that contained this bug - you need a newer version of the module. On Tue Sep 03 14:17:22 2013, jlewis@overstock.com wrote: Show quoted text
> Definitely a problem in REST-Client-88.tar.gz. Had to manually change > the request from PUT to POST : > > [joe@hostname RestClient]# diff > /root/tmp/RestClient/lib/REST/Client.pm > /usr/lib/perl5/site_perl/5.8.8/REST/Client.pm > 161c161 > < return $self->request('PUT', @_); > ---
> > return $self->request('POST', @_);
> [joe@hostname RestClient]# > > Without that, I was receiving a method-not-allowed error from the > tomcat > implementation for the REST implementation we were doing. > > -- > Joe Lewis > Overstock.com Linux Engineer > http://www.overstock.com/ > https://itsaboutlove.org/ial/profiles/28499924/ourMessage.jsf > > > ________________________________ > > CONFIDENTIALITY NOTICE: This message is intended only for the use and > review of the individual or entity to which it is addressed and may > contain information that is privileged and confidential. If the reader > of this message is not the intended recipient, or the employee or > agent responsible for delivering the message solely to the intended > recipient, you are hereby notified that any dissemination, > distribution or copying of this communication is strictly prohibited. > If you have received this communication in error, please notify sender > immediately by telephone or return email. Thank you.