Red Hat Bugzilla – Bug 622835
add fix for containerless unicode float decoding
Last modified: 2016-09-19 22:41:01 EDT
In EPEL, simplejson.loads(u'-2.75') will raise an exception because of http://code.google.com/p/simplejson/issues/detail?id=43 . I'd like to request inclusion of the fix into python-simplejson for EPEL as this is a simple bug fix. The bug itself is easy to hit in 'normal' use cases.
upstream fixed this in 2.1 but that release is not officially supported on Python 2.4. Also 2.1 is in some respect incompatible to 2.0.9 so we should not update python-simplejson in general but just pull in selected fixes.
Looks good. Just a question of whether that's the complete fix or not. The commit mentioned in the bug seems to only affect the .c file used for speedup, not the .py file (which I suppose wouldn't affect us since we'll always build the speedup in Fedora packages) and the unittests don't seem to be updated to test the given error condition.
yes, the pure-python version is not affected by the bug (something that confused me thoroughly until I found out - as they seemingly similar machines showed different behavior).
I'll try to update the package (assuming that I can beat git hard enough to get it working ;-).
python-simplejson-2.0.9-2.el5 has been submitted as an update for Fedora EPEL 5.
python-simplejson-2.0.9-2.el5 has been pushed to the Fedora EPEL 5 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update python-simplejson'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/python-simplejson-2.0.9-2.el5
python-simplejson-2.0.9-2.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.