Skip Menu |

This queue is for tickets about the Geo-Coder-Yahoo CPAN distribution.

Report information
The Basics
Id: 37990
Status: resolved
Priority: 0/
Queue: Geo-Coder-Yahoo

People
Owner: Nobody in particular
Requestors: MAROS [...] cpan.org
pdemarco [...] ppg.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.41
Fixed in: (no value)



Subject: It crashes on some addresses
Some addresses crash yahoo with an XML error. Error in Yahoo::Search::XML on line 155: unknown entity ì The address that I passed was: VIA PROLUNGAMENTO ASCHENEZ 38/A REGGIO CALABRIA, RC 89100 Italy or SOBBORGO F COMANDINI 86 CESENA, FO 47023 Italy fails every time, in the same way.
From: pdemarco [...] ppg.com
It fails with some other errors I didn't notice before This time Spain addresses. Could these be accent marks? Error in Yahoo::Search::XML on line 155: unknown entity é Error in Yahoo::Search::XML on line 155: unknown entity ó Error in Yahoo::Search::XML on line 155: unknown entity ç Error in Yahoo::Search::XML on line 155: unknown entity í Error in Yahoo::Search::XML on line 155: unknown entity ú Error in Yahoo::Search::XML on line 155: unknown entity ñ
Subject: Re: [rt.cpan.org #37990] It crashes on some addresses
Date: Thu, 31 Jul 2008 13:13:35 -0700
To: bug-Geo-Coder-Yahoo [...] rt.cpan.org
From: Ask Bjørn Hansen <ask [...] perl.org>
Which version of Yahoo::Search do you use? - ask
Subject: RE: [rt.cpan.org #37990] It crashes on some addresses
Date: Fri, 1 Aug 2008 07:42:24 -0400
To: <bug-Geo-Coder-Yahoo [...] rt.cpan.org>
From: "DeMarco, Paul" <pdemarco [...] ppg.com>
Version 1.10.13 Downloaded as a binary from activestate's ppm Show quoted text
-----Original Message----- From: ask@perl.org via RT [mailto:bug-Geo-Coder-Yahoo@rt.cpan.org] Sent: Thursday, July 31, 2008 4:14 PM To: DeMarco, Paul Subject: Re: [rt.cpan.org #37990] It crashes on some addresses <URL: http://rt.cpan.org/Ticket/Display.html?id=37990 > Which version of Yahoo::Search do you use? - ask
I'm experiencing the same kind of problems with some (but not all) addresses containing non ascii characters. eg. "Bertolt-Brecht-Str. 2b, 09217 Burgstädt, Germany" or "St. Töniser Str. 29, 47906 Kempen, Germany" Appling this regexp to the xml response before handing it to Search::Yahoo::XML might (not tested) help: $string =~ s/&#x([0-9A-Fa-f]+);/chr(hex($1))/ge;
This is fixed in the (about to be released 1.11.1) version of Yahoo::Search http://blog.timbunce.org/2010/06/11/new-lease-of-life-for-yahoosearch/ Ask: FYI the release also properly decodes utf8, so the existing utf8 decode workaround in Geo::Coder::Yahoo isn't needed any more and may even cause problems (I don't know if decode() on an already decoded string is a problem. I've not checked.)
Thanks Tim - the next release will require Yahoo::Search 1.11.1 or newer.