Skip Menu |
 

This queue is for tickets about the JSON-Any CPAN distribution.

Report information
The Basics
Id: 68240
Status: rejected
Priority: 0/
Queue: JSON-Any

People
Owner: Nobody in particular
Requestors: AWNCORP [...] cpan.org
Cc:
AdminCc:

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



MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 631
Download (untitled) / with headers
text/plain 631b
Test case A: my $meta = WWW::CPAN->new->fetch_distmeta({ dist => 'Spreadsheet-Perl', author => 'NKH', format => 'json' }); Error: ERROR: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "(end of string)") at C:/str awberry/perl/site/lib/JSON/Any.pm line 527, <IN> line 21. Test case B: my $meta = WWW::CPAN->new->fetch_distmeta({ dist => 'Net-VNC', author => 'LBROCARD', format => 'json' }); Error: ERROR: malformed UTF-8 character in JSON string, at character offset 65 (before "\x{9bee} Brocard <lb...") at C:/strawberry/perl/site/l ib/JSON/Any.pm line 527, <IN> line 27.
From perigrin [...] gmail.com Mon May 16 13: 01:06 2011
MIME-Version: 1.0
X-Spam-Status: No, score=-4.94 tagged_above=-99.9 required=10 tests=[AWL=1.169, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_HI=-5, RFC_ABUSE_POST=0.001, SPF_NEUTRAL=0.779, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-18807-1305564188-1911.68240-4-0 [...] rt.cpan.org>
X-Spam-Flag: NO
References: <RT-Ticket-68240 [...] rt.cpan.org> <rt-3.8.HEAD-18807-1305564188-1911.68240-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <BANLkTi=ZnL-z9GFLbaPTvr8WnvWUseDuAw [...] mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
X-RT-Original-Encoding: utf-8
X-Spam-Score: -4.94
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Authentication-Results: hipster.bestpractical.com (amavisd-new); domainkeys=pass header.sender=perigrin [...] gmail.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 6B768241AA3 for <cpan-bug+JSON-Any [...] hipster.bestpractical.com>; Mon, 16 May 2011 13:01:06 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hWVbP4iEbVWR for <cpan-bug+JSON-Any [...] hipster.bestpractical.com>; Mon, 16 May 2011 13:01:04 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 61631241A9A for <bug-JSON-Any [...] rt.cpan.org>; Mon, 16 May 2011 13:01:04 -0400 (EDT)
Received: (qmail 30773 invoked by uid 103); 16 May 2011 17:01:03 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 16 May 2011 17:01:03 -0000
Received: from mail-ww0-f52.google.com (HELO mail-ww0-f52.google.com) (74.125.82.52) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Mon, 16 May 2011 10:01:00 -0700
Received: by wwb31 with SMTP id 31so4708300wwb.21 for <bug-JSON-Any [...] rt.cpan.org>; Mon, 16 May 2011 10:00:57 -0700 (PDT)
Received: by 10.216.197.168 with SMTP id t40mr4495640wen.55.1305565257220; Mon, 16 May 2011 10:00:57 -0700 (PDT)
Received: by 10.216.157.19 with HTTP; Mon, 16 May 2011 10:00:57 -0700 (PDT)
Delivered-To: cpan-bug+JSON-Any [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #68240]
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=Tj8NJ/yi/DhPI+TsJa6xTwb7krSubbstQwKINHLBISqbwHNYd0+Th0z8yUfeKbTiXk vr+ZAPGMjZNmnQOpYOWoWn8ASM+eOwg8Nc6neJzntThCrkP2OsvJgDg7fpU2uOsV4XsC jFYYRO0QneJkCfE4dQsGFt1rZew0i7cqsn94w=
Return-Path: <perigrin [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=dEyc2fgwht7OUW8MeyofYWyjrZmmdSsdDM59jdGT+T4=; b=GCnNp8e81hTs5+d4dH3/imN8OEzW/WOlSdIf2Qze4Jcehs3scweNIjxo867oRdU5xR tM5QSefKO4OKaj6pKu/tjRH1PIJ8iMwKMqrS5eKllmdRgu83uXtkRDo3rM1M95TPNOZ7 Lxe1i4YG2DwrSnUNplnjWNnJV0rQR6SuO7e6k=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+JSON-Any [...] hipster.bestpractical.com
X-RT-Mail-Extension: json-any
X-Google-Sender-Auth: rFq6X9d8_FGftU0-GwP-192si7g
Sender: perigrin [...] gmail.com
Date: Mon, 16 May 2011 13:00:57 -0400
X-Spam-Level:
To: bug-JSON-Any [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: Chris Prather <chris [...] prather.org>
RT-Message-ID: <rt-3.8.HEAD-18812-1305565267-213.68240-0-0 [...] rt.cpan.org>
Content-Length: 1287
Download (untitled) / with headers
text/plain 1.2k
On Mon, May 16, 2011 at 12:43 PM, Al Newkirk via RT <bug-JSON-Any@rt.cpan.org> wrote: Show quoted text
> Mon May 16 12:43:08 2011: Request 68240 was acted upon. > Transaction: Ticket created by AWNCORP >       Queue: JSON-Any >     Subject: (No subject given) >   Broken in: (no value) >    Severity: (no value) >       Owner: Nobody >  Requestors: AWNCORP@cpan.org >      Status: new >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=68240 > > > > Test case A: > my $meta = WWW::CPAN->new->fetch_distmeta({ dist => 'Spreadsheet-Perl', > author => 'NKH', format => 'json' }); > > Error: > ERROR: malformed JSON string, neither array, object, number, string or > atom, at character offset 0 (before "(end of string)") at C:/str > awberry/perl/site/lib/JSON/Any.pm line 527, <IN> line 21. > > Test case B: > my $meta = WWW::CPAN->new->fetch_distmeta({ dist => 'Net-VNC', author => > 'LBROCARD', format => 'json' }); > > Error: > ERROR: malformed UTF-8 character in JSON string, at character offset 65 > (before "\x{9bee} Brocard <lb...") at C:/strawberry/perl/site/l > ib/JSON/Any.pm line 527, <IN> line 27. >
You'll need to show me the JSON it is trying to parse. JSON::Any does not actually do any of the parsing itself, it is simply a wrapper for other JSON parsers. -Chris
From awnstudio [...] gmail.com Mon May 16 13: 09:49 2011
CC: AWNCORP [...] cpan.org
MIME-Version: 1.0
X-Spam-Status: No, score=-6.108 tagged_above=-99.9 required=10 tests=[AWL=-0.000, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RFC_ABUSE_POST=0.001, SPF_NEUTRAL=0.779, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-18812-1305565267-362.68240-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
References: <RT-Ticket-68240 [...] rt.cpan.org> <rt-3.8.HEAD-18807-1305564188-1911.68240-4-0 [...] rt.cpan.org> <BANLkTi=ZnL-z9GFLbaPTvr8WnvWUseDuAw [...] mail.gmail.com> <rt-3.8.HEAD-18812-1305565267-362.68240-6-0 [...] rt.cpan.org>
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <BANLkTi=2vHPfOxY-c+UTo=UHdz5gOMy3yw [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary=001636e0b8b295b9e804a367b82e
X-Spam-Score: -6.108
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Authentication-Results: hipster.bestpractical.com (amavisd-new); domainkeys=pass header.sender=awnstudio [...] gmail.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 5FF30241A9A for <cpan-bug+JSON-Any [...] hipster.bestpractical.com>; Mon, 16 May 2011 13:09:49 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P6OGsGTmQwWA for <cpan-bug+JSON-Any [...] hipster.bestpractical.com>; Mon, 16 May 2011 13:09:47 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id E00F6241A94 for <bug-JSON-Any [...] rt.cpan.org>; Mon, 16 May 2011 13:09:46 -0400 (EDT)
Received: (qmail 31403 invoked by uid 103); 16 May 2011 17:09:46 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 16 May 2011 17:09:46 -0000
Received: from mail-iy0-f178.google.com (HELO mail-iy0-f178.google.com) (209.85.210.178) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Mon, 16 May 2011 10:09:43 -0700
Received: by iyi12 with SMTP id 12so4196641iyi.9 for <bug-JSON-Any [...] rt.cpan.org>; Mon, 16 May 2011 10:09:41 -0700 (PDT)
Received: by 10.231.195.222 with SMTP id ed30mr3100666ibb.114.1305565780621; Mon, 16 May 2011 10:09:40 -0700 (PDT)
Received: by 10.231.14.200 with HTTP; Mon, 16 May 2011 10:09:40 -0700 (PDT)
Delivered-To: cpan-bug+JSON-Any [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #68240]
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=KBwVaQngOS9xTC+mY/j6YiQbWblF8T+nfZLDXCSxwHzPW/4zUISt661PT9A07s3T23 qD9PLhVq+jTqJI5IQ/I1UKz33hzAjmOnfDHNh9jen7pCCtWrbnYW2g+NyBJ7yJN87G5N e/DR0hFc5aaU75NkW1+0Wx2rspfXF+U9QB5sY=
Return-Path: <awnstudio [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=0lxlO5ISsut/jOdVmda2vNXtWxuWT1dEkRxQ5vxy9pM=; b=xDZmUGMe6xcWAIxXC4l7YkvWuB6JYCkPL6Md+kVx+rqB/s3MiBOI7UHoeC2Qua3voI EZ12LJkgqUbxMt/FtLQjMX6MfZncL2OmEM+vgdkXoMm9gzfP6tKrpB8G/2CU46COtch7 OiZbwulfN2cFBOCPLxY70Sz5gv5ca3EeqP73I=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+JSON-Any [...] hipster.bestpractical.com
X-RT-Mail-Extension: json-any
X-Google-Sender-Auth: ytCl7vUUkWxTbTtZUpxm8vLZpYA
Sender: awnstudio [...] gmail.com
Date: Mon, 16 May 2011 13:09:40 -0400
X-Spam-Level:
To: bug-JSON-Any [...] rt.cpan.org
From: "Al Newkirk & Associates" <we [...] ana.im>
RT-Message-ID: <rt-3.8.HEAD-18805-1305565790-155.68240-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 1847
Download (untitled) / with headers
text/plain 1.8k
Test case B: http://search.cpan.org/meta/LBROCARD/Net-VNC/META.json <http://search.cpan.org/meta/LBROCARD/Net-VNC/META.json>Test case A: http://search.cpan.org/meta/NKH/Spreadsheet-Perl/META.json -- should probably return an empty json object On Mon, May 16, 2011 at 1:01 PM, chris@prather.org via RT < bug-JSON-Any@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=68240 > > > On Mon, May 16, 2011 at 12:43 PM, Al Newkirk via RT > <bug-JSON-Any@rt.cpan.org> wrote:
> > Mon May 16 12:43:08 2011: Request 68240 was acted upon. > > Transaction: Ticket created by AWNCORP > > Queue: JSON-Any > > Subject: (No subject given) > > Broken in: (no value) > > Severity: (no value) > > Owner: Nobody > > Requestors: AWNCORP@cpan.org > > Status: new > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=68240 > > > > > > > Test case A: > > my $meta = WWW::CPAN->new->fetch_distmeta({ dist => 'Spreadsheet-Perl', > > author => 'NKH', format => 'json' }); > > > > Error: > > ERROR: malformed JSON string, neither array, object, number, string or > > atom, at character offset 0 (before "(end of string)") at C:/str > > awberry/perl/site/lib/JSON/Any.pm line 527, <IN> line 21. > > > > Test case B: > > my $meta = WWW::CPAN->new->fetch_distmeta({ dist => 'Net-VNC', author => > > 'LBROCARD', format => 'json' }); > > > > Error: > > ERROR: malformed UTF-8 character in JSON string, at character offset 65 > > (before "\x{9bee} Brocard <lb...") at C:/strawberry/perl/site/l > > ib/JSON/Any.pm line 527, <IN> line 27. > >
> > > You'll need to show me the JSON it is trying to parse. > > JSON::Any does not actually do any of the parsing itself, it is simply > a wrapper for other JSON parsers. > > -Chris > >
-- Al Newkirk & Associates Internet Business Consultants http://ana.im we@ana.im 215 469 1262
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 3065
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-5501-1397857202-1712.68240-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 523
Download (untitled) / with headers
text/plain 523b
JSON::Any just proxies the file to one of the backends; it doesn't actually do any decoding itself. You didn't provide any details in the report that indicated which backend was in use. However, in the last year there has been a lot of churn with META.json generation concerning utf8 and unicode encoding; it is quite possible that the meta files in question were badly generated. Please feel free to open a new ticket with more diagnostics if you see this again, but otherwise, I don't think there's anything we can do.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

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