Skip Menu |

This queue is for tickets about the WWW-Facebook-API CPAN distribution.

Report information
The Basics
Id: 27815
Status: resolved
Priority: 0/
Queue: WWW-Facebook-API

People
Owner: Nobody in particular
Requestors: jspath [...] pangeamedia.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: v0.3.5
Fixed in: (no value)



Subject: query method bug
One of the first thing I do in my application is call validate_sig, and I pass it my Catalyst::Request object (which has the necessary methods available). validate_sig calls the query method appropriate and sets the query object: sub validate_sig { my $self = shift; $self->base->query(shift); my $fb_params = $self->get_fb_params; ... But the problem occurs in get_fb_param, when another attempt is made to set the query object: sub get_fb_params { my $self = shift; $self->base->query(shift); This call query() destroys the previously created query object, and I end up with the following error: Can't call method "param" without a package or object reference at /usr/share/perl5/WWW/Facebook/API/Canvas.pm line 33. I'm using 0.3.5 currently.
Subject: Re: [rt.cpan.org #27815] query method bug
Date: Fri, 29 Jun 2007 11:13:17 -0700
To: Jim Spath via RT <bug-WWW-Facebook-API [...] rt.cpan.org>
From: David Romano <unobe [...] cpan.org>
Hi Jim, Jim Spath via RT wrote on Fri, Jun 29, 2007 at 09:36:19AM PDT: Show quoted text
> ... > > This call query() destroys the previously created query object, and I > end up with the following error: > > Can't call method "param" without a package or object reference at > /usr/share/perl5/WWW/Facebook/API/Canvas.pm line 33. > > I'm using 0.3.5 currently.
I just released 0.3.6 that fixes this and adds a test. The problem is that I forgot to change the attribute setting logic in API.pm. I've attached a patch for v0.3.5, too. My apologies, - David -- "Macte nova virtute, puer, sic itur ad astra" -- Virgil

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

v0.3.6