RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1301017 - I'm hit by Python bug #11489, could the fix be backported?
Summary: I'm hit by Python bug #11489, could the fix be backported?
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: python
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Charalampos Stratakis
QA Contact: Branislav Náter
URL:
Whiteboard:
Depends On:
Blocks: 1305230
TreeView+ depends on / blocked
 
Reported: 2016-01-22 10:49 UTC by Aurelien Bompard
Modified: 2016-11-03 20:16 UTC (History)
6 users (show)

Fixed In Version: python-2.7.5-42
Doc Type: Bug Fix
Doc Text:
Cause: Unicode and UTF-8 considers unpaired surrogates invalid. Consequence: Some JSON data encoded by Python 2.7 or 3.X can't be decoded in Python 2.7 Fix: Upstream patch that with it, JSON decoder now accepts lone surrogates Result: It is possible to decode JSON data in Python 2.7 no matter which Python version was the date encoded at.
Clone Of:
Environment:
Last Closed: 2016-11-03 20:16:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Python 11489 0 None None None 2016-01-22 10:49:14 UTC
Red Hat Product Errata RHSA-2016:2586 0 normal SHIPPED_LIVE Low: python security, bug fix, and enhancement update 2016-11-03 12:09:15 UTC

Description Aurelien Bompard 2016-01-22 10:49:14 UTC
Description of problem:
I'm a member of the Fedora Engineering team. On the new Mailman server that we use in the Fedora Infrastructure (RHEL7.2), I'm experiencing the Python bug #11489 <https://bugs.python.org/issue11489> which has been fixed upstream by this commit: https://hg.python.org/cpython/rev/c85305a54e6d
The consequence of this bug is that some JSON data encoded by Python 2.7 or 3.X can't be decoded in Python 2.7. It breaks an important feature of Mailman for some lists: the ability of moderating held messages (Mailman 3 uses a REST API with JSON-encoded content).

Version-Release number of selected component (if applicable):
python-2.7.5-34.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Try to decode this JSON data with the version of python specified above: http://paste.fedoraproject.org/313658/45345906

2. Get the following traceback:
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "/usr/lib64/python2.7/json/__init__.py", line 290, in load
    **kw)
  File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib64/python2.7/json/decoder.py", line 381, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Unpaired low surrogate: line 1 column 10115 (char 10114)

It would be very useful if the fix could be backported, or if the package could be updated to a version which includes this fix.

Comment 3 Charalampos Stratakis 2016-03-16 16:03:05 UTC
(In reply to Aurelien Bompard from comment #0)
> Description of problem:
> I'm a member of the Fedora Engineering team. On the new Mailman server that
> we use in the Fedora Infrastructure (RHEL7.2), I'm experiencing the Python
> bug #11489 <https://bugs.python.org/issue11489> which has been fixed
> upstream by this commit: https://hg.python.org/cpython/rev/c85305a54e6d
> The consequence of this bug is that some JSON data encoded by Python 2.7 or
> 3.X can't be decoded in Python 2.7. It breaks an important feature of
> Mailman for some lists: the ability of moderating held messages (Mailman 3
> uses a REST API with JSON-encoded content).
> 
> Version-Release number of selected component (if applicable):
> python-2.7.5-34.el7.x86_64
> 
> How reproducible:
> Always
> 
> Steps to Reproduce:
> 1. Try to decode this JSON data with the version of python specified above:
> http://paste.fedoraproject.org/313658/45345906
> 
> 2. Get the following traceback:
> Traceback (most recent call last):
>   File "<stdin>", line 2, in <module>
>   File "/usr/lib64/python2.7/json/__init__.py", line 290, in load
>     **kw)
>   File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
>     return _default_decoder.decode(s)
>   File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode
>     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
>   File "/usr/lib64/python2.7/json/decoder.py", line 381, in raw_decode
>     obj, end = self.scan_once(s, idx)
> ValueError: Unpaired low surrogate: line 1 column 10115 (char 10114)
> 
> It would be very useful if the fix could be backported, or if the package
> could be updated to a version which includes this fix.

Could you repost the json data page for reproducing the issue, since it seems that it expired?

Comment 11 errata-xmlrpc 2016-11-03 20:16:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-2586.html


Note You need to log in before you can comment on or make changes to this bug.