Bug#502312: libflickr-api-perl: Flickr API calls fail with 'API returned an invalid response' (line 111)

Mark Broadbent mbroadbent at messagelabs.com
Wed Oct 15 14:24:36 UTC 2008


Package: libflickr-api-perl
Version: 1.01-1
Severity: grave
Justification: renders package unusable


When the execute_request function parses the XML response from Flickr, 
it calls
the function _find_tag which checks for tags of type 'element' whereas 
it should
be checking for type 'tag'.

The following diff fixes the problem:

--- Flickr.old/API.pm	2008-10-15 15:21:20.000000000 +0100
+++ Flickr.new/API.pm	2008-10-15 15:21:35.000000000 +0100
@@ -135,7 +135,7 @@
  sub _find_tag {
  	my ($self, $children) = @_;
  	for my $child(@{$children}){
-		return $child if $child->{type} eq 'element';
+		return $child if $child->{type} eq 'tag';
  	}
  	return {};
  }


-- System Information:
Debian Release: lenny/sid
   APT prefers unstable
   APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libflickr-api-perl depends on:
ii  liburi-perl                1.35.dfsg.1-1 Manipulates and accesses 
URI strin
ii  libwww-perl                5.813-1       WWW client/server library 
for Perl
ii  libxml-parser-lite-tree-pe 0.03-2        Lightweight XML tree builder
ii  perl                       5.10.0-15     Larry Wall's Practical 
Extraction

Versions of packages libflickr-api-perl recommends:
ii  libcompress-zlib-perl         2.015-1    Perl module for creation 
and manip

libflickr-api-perl suggests no packages.

-- no debconf information

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________





More information about the pkg-perl-maintainers mailing list