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

Report information
The Basics
Id:
42835
Status:
open
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
markus [...] nemesol.fi
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: "data" parameter name for image data clashes with call to data.setAssociation when using $client->call()
Date: Tue, 27 Jan 2009 18:58:00 +0200 (EET)
To: bug-WWW-Facebook-API@rt.cpan.org
From: Markus Seppälä <markus@nemesol.fi>
Fedora 9. perl 5.10.0 WWW::Facebook::API v 0.4.14 from CPAN. THe data -parameter gets stripped off when calling data.setAssociation with WWW::Facebook::API::call(). Affected methods in WWW::FaceBook::API (at least): call() _format_and_check_params() The parameter could probably be named img_data or binary_data so as not to be confused with API parameters not requiring special handling. Code to reproduce: my %data = (); $datas{name} = $association_name; $datas{obj_id1} = $obj_id1; $datas{obj_id2} = $obj_id2; $datas{'data'} = $data; my $datares = $self->{api}->call( 'data.setAssociation', %datas); Call is successful, but data-parameters is stripped off which can be seen if rest-debugging output is enabled. ------------------- br. markus -- Markus Seppälä markus@nemesol.fi Nemesol Oy http://nemesol.fi
Subject: Re: [rt.cpan.org #42835] "data" parameter name for image data clashes with call to data.setAssociation when using $client->call()
Date: Wed, 28 Jan 2009 17:30:52 -0500
To: bug-WWW-Facebook-API@rt.cpan.org
From: Clayton Scott <clayton.scott@gmail.com>
Ho Markus,

Is there any chance you could submit a module that implements the setAssociation call in the data namespace and a patch for 
WWW::Facebook::API to do the right thing?

Thanks,
Clayton

On Tue, Jan 27, 2009 at 11:59 AM, Markus Seppälä via RT <bug-WWW-Facebook-API@rt.cpan.org> wrote:
Show quoted text
Tue Jan 27 11:59:07 2009: Request 42835 was acted upon.
Transaction: Ticket created by markus@nemesol.fi
      Queue: WWW-Facebook-API
    Subject: "data" parameter name for image data clashes with call to  data.setAssociation when using $client->call()
  Broken in: (no value)
   Severity: (no value)
      Owner: Nobody
 Requestors: markus@nemesol.fi
     Status: new
 Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=42835 >


Fedora 9.
perl 5.10.0
WWW::Facebook::API v 0.4.14 from CPAN.

THe data -parameter gets stripped off when calling data.setAssociation
with WWW::Facebook::API::call().

Affected methods in WWW::FaceBook::API (at least):

call()
_format_and_check_params()

The parameter could probably be named img_data or binary_data so as not to
be confused with API parameters not requiring special handling.

Code to reproduce:
my %data = ();
$datas{name} = $association_name;
$datas{obj_id1} = $obj_id1;
$datas{obj_id2} = $obj_id2;
$datas{'data'} = $data;
my $datares = $self->{api}->call( 'data.setAssociation',  %datas);

Call is successful, but data-parameters is stripped off which can be seen
if rest-debugging output is enabled.

-------------------

br. markus
--
Markus Seppälä
markus@nemesol.fi
Nemesol Oy
http://nemesol.fi





--

Clayton Scott
clayton.scott@gmail.com
Hi Clayton, sure this is possible. Just let me know how you want me to do this exactly: - is there a development branch somewhere that I can access and get the latest versions of the module? And how should I provide the updated code? - should the calls to the data API be added to the WWW::Facebook::API::Data module? -- I can add some other data API calls there as well, which I am any way using at the moment. - markus On Wed Jan 28 17:39:45 2009, clayton.scott@gmail.com wrote:
Show quoted text
> Ho Markus, > Is there any chance you could submit a module that implements the > setAssociation call in the data namespace and a patch for > WWW::Facebook::API to do the right thing? > > Thanks, > Clayton > > On Tue, Jan 27, 2009 at 11:59 AM, Markus Seppälä via RT < > bug-WWW-Facebook-API@rt.cpan.org> wrote: >
> > Tue Jan 27 11:59:07 2009: Request 42835 was acted upon. > > Transaction: Ticket created by markus@nemesol.fi > > Queue: WWW-Facebook-API > > Subject: "data" parameter name for image data clashes with call to > > data.setAssociation when using $client->call() > > Broken in: (no value) > > Severity: (no value) > > Owner: Nobody > > Requestors: markus@nemesol.fi > > Status: new > > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=42835 > > > > > > > Fedora 9. > > perl 5.10.0 > > WWW::Facebook::API v 0.4.14 from CPAN. > > > > THe data -parameter gets stripped off when calling data.setAssociation > > with WWW::Facebook::API::call(). > > > > Affected methods in WWW::FaceBook::API (at least): > > > > call() > > _format_and_check_params() > > > > The parameter could probably be named img_data or binary_data so as
not to
Show quoted text
> > be confused with API parameters not requiring special handling. > > > > Code to reproduce: > > my %data = (); > > $datas{name} = $association_name; > > $datas{obj_id1} = $obj_id1; > > $datas{obj_id2} = $obj_id2; > > $datas{'data'} = $data; > > my $datares = $self->{api}->call( 'data.setAssociation', %datas); > > > > Call is successful, but data-parameters is stripped off which can be
seen
Show quoted text
> > if rest-debugging output is enabled. > > > > ------------------- > >
> >
Subject: Re: [rt.cpan.org #42835] "data" parameter name for image data clashes with call to data.setAssociation when using $client->call()
Date: Fri, 30 Jan 2009 06:51:49 -0500
To: bug-WWW-Facebook-API@rt.cpan.org
From: Clayton Scott <clayton.scott@gmail.com>
What's on CPAN is the current HEAD of the repository:
http://github.com/unobe/perl-wfa/tree/master

You can provide the new/changed code either as:
 + patches
 + the url of a remote git repo for me to pull from
 + the changed files
which ever option suits you best.

Add the Data API calls to the WWW::Facebook::API::Data package.
Please add which ever API calls you can!

Just to et you know I won't be near email for the next week so please
don't be offended f I don't get back to you right away.

Thanks,
Clayton

On Thu, Jan 29, 2009 at 10:47 AM, Markus Seppälä via RT <bug-WWW-Facebook-API@rt.cpan.org> wrote:
Show quoted text
      Queue: WWW-Facebook-API
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=42835 >

Hi Clayton,

sure this is possible.

Just let me know how you want me to do this exactly:
- is there a development branch somewhere that I can access and get the
latest versions of the module? And how should I provide the updated code?
- should the calls to the data API be added to the
WWW::Facebook::API::Data module?
-- I can add some other data API calls there as well, which I am any way
using at the moment.

- markus

On Wed Jan 28 17:39:45 2009, clayton.scott@gmail.com wrote:
> Ho Markus,
> Is there any chance you could submit a module that implements the
> setAssociation call in the data namespace and a patch for
> WWW::Facebook::API to do the right thing?
>
> Thanks,
> Clayton
>
> On Tue, Jan 27, 2009 at 11:59 AM, Markus Seppälä via RT <
> bug-WWW-Facebook-API@rt.cpan.org> wrote:
>
> > Tue Jan 27 11:59:07 2009: Request 42835 was acted upon.
> > Transaction: Ticket created by markus@nemesol.fi
> >       Queue: WWW-Facebook-API
> >     Subject: "data" parameter name for image data clashes with call to
> >  data.setAssociation when using $client->call()
> >   Broken in: (no value)
> >    Severity: (no value)
> >       Owner: Nobody
> >  Requestors: markus@nemesol.fi
> >      Status: new
> >  Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=42835 >
> >
> >
> > Fedora 9.
> > perl 5.10.0
> > WWW::Facebook::API v 0.4.14 from CPAN.
> >
> > THe data -parameter gets stripped off when calling data.setAssociation
> > with WWW::Facebook::API::call().
> >
> > Affected methods in WWW::FaceBook::API (at least):
> >
> > call()
> > _format_and_check_params()
> >
> > The parameter could probably be named img_data or binary_data so as
not to
> > be confused with API parameters not requiring special handling.
> >
> > Code to reproduce:
> > my %data = ();
> > $datas{name} = $association_name;
> > $datas{obj_id1} = $obj_id1;
> > $datas{obj_id2} = $obj_id2;
> > $datas{'data'} = $data;
> > my $datares = $self->{api}->call( 'data.setAssociation',  %datas);
> >
> > Call is successful, but data-parameters is stripped off which can be
seen
> > if rest-debugging output is enabled.
> >
> > -------------------
> >
>
>






--

Clayton Scott
clayton.scott@gmail.com


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.