unable to set double (fixed upstream)

Bug #756426 reported by ajf
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
json-glib (Ubuntu)
Fix Released
Low
Rodrigo Moya
Maverick
Fix Released
Low
Rodrigo Moya

Bug Description

The version of json-glib shipped with Ubuntu 10.10 has a bug in JsonGenerator which means doubles are not serialized correctly. Users of my application on Ubuntu 10.10 find that the JSON-RPC server rejects the whole request if it contains a double.

It's a very simple fix from over a year ago (March 18th 2010), 0.10.4 was released on the 19th so should resolve the issue.

http://git.gnome.org/browse/json-glib/commit/?id=f622ee8d8ba54ddea6fbb7311a905ffab7842e8d

Related branches

Changed in json-glib (Ubuntu):
assignee: nobody → Rodrigo Moya (rodrigo-moya)
status: New → In Progress
Revision history for this message
Sebastien Bacher (seb128) wrote :

hum, I'm having issues building on my 10.10 box right now so setting back in the queue, it seems fine to pick up if someone want to upload, I will do it later once I fix my install if nobody does it

Changed in json-glib (Ubuntu):
importance: Undecided → Low
status: In Progress → Fix Released
Changed in json-glib (Ubuntu Maverick):
importance: Undecided → Low
status: New → Fix Committed
assignee: nobody → Rodrigo Moya (rodrigo-moya)
status: Fix Committed → Triaged
Changed in json-glib (Ubuntu):
status: Fix Released → In Progress
status: In Progress → Fix Released
Changed in json-glib (Ubuntu Maverick):
status: Triaged → In Progress
Revision history for this message
Michael Vogt (mvo) wrote :

I uploaded this to maverick-proposed now

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

This bug report needs appropriate SRU justification per the instructions in https://wiki.ubuntu.com/StableReleaseUpdates

Please add that. I will leave it in the -proposed upload queue until the necessary info is added to the bug description. Thank you!

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted json-glib into maverick-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in json-glib (Ubuntu Maverick):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Martin Pitt (pitti) wrote :

Do you have a python snippet or other simple example code that we can use to verify the fix?

Revision history for this message
ajf (ajf) wrote :

Hi!

Thanks for looking into this. I've just tested the package from maverick-proposed and it fixes the issue in the application I was linking to it.

The library is C. I've put together a simple test (attached) which places a single double value into a JSON array, serializes it into a string, then deserializes that string and checks the parsed value.

With the -dev package installed, you should be able to compile it like so:

gcc $(pkg-config --cflags --libs glib-2.0 json-glib-1.0) -o lp756426-test-double lp756426-test-double.c

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package json-glib - 0.10.2-2ubuntu2.1

---------------
json-glib (0.10.2-2ubuntu2.1) maverick-proposed; urgency=low

  * debian/patches/01_use_g_format_for_g_ascii_formatd.patch:
    - Add upstream patch to fix serialization of doubles (LP: #756426)
 -- Rodrigo Moya <email address hidden> Wed, 13 Apr 2011 13:10:57 +0200

Changed in json-glib (Ubuntu Maverick):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.