Bug 636601 - Generating rss feed generate a traceback
Summary: Generating rss feed generate a traceback
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: repoview
Version: 14
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Konstantin Ryabitsev
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 672838 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-22 16:46 UTC by Remi Collet
Modified: 2011-12-03 20:56 UTC (History)
4 users (show)

Fixed In Version: repoview-0.6.6-1.el6
Clone Of:
Environment:
Last Closed: 2011-11-25 23:23:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Fix encoding (427 bytes, patch)
2010-09-22 16:46 UTC, Remi Collet
no flags Details | Diff

Description Remi Collet 2010-09-22 16:46:54 UTC
Created attachment 448983 [details]
Fix encoding

Description of problem:
Generating rss feed generate a traceback

Version-Release number of selected component (if applicable):
repoview-0.6.5-1.fc14.noarch

How reproducible:
When a package description contains UTF-8 characters

Steps to Reproduce:
1. repoview .
2.
3.
  
Actual results:
Generating rss feed...Traceback (most recent call last):
  File "/usr/bin/repoview", line 932, in <module>
    main()
  File "/usr/bin/repoview", line 929, in main
    Repoview(opts)
  File "/usr/bin/repoview", line 231, in __init__
    self.do_rss(repo_data, latest)
  File "/usr/bin/repoview", line 869, in do_rss
    etree.write(out, 'utf-8')
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 815, in write
    serialize(write, self._root, encoding, qnames, namespaces)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 933, in _serialize_xml
    _serialize_xml(write, e, encoding, qnames, None)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 933, in _serialize_xml
    _serialize_xml(write, e, encoding, qnames, None)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 933, in _serialize_xml
    _serialize_xml(write, e, encoding, qnames, None)
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 931, in _serialize_xml
    write(_escape_cdata(text, encoding))
  File "/usr/lib64/python2.7/xml/etree/ElementTree.py", line 1067, in _escape_cdata
    return text.encode(encoding, "xmlcharrefreplace")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 203: ordinal not in range(128)


Expected results:
Generating rss feed...done

Additional info:
The attached patch seems to solve this issue.

Comment 1 Remi Collet 2010-09-22 16:59:35 UTC
Don't know why is now requires (no issue in f13)

I suspect a change in the sqlite library.

+

Comment 2 Paul Howarth 2011-07-27 09:05:20 UTC
Still an issue in F-15. Remi's patch works for me.

Comment 3 Rex Dieter 2011-09-19 18:47:38 UTC
*** Bug 672838 has been marked as a duplicate of this bug. ***

Comment 4 Rex Dieter 2011-09-19 18:48:05 UTC
Patch works like a charm for me too.

Comment 5 Fedora Update System 2011-11-16 18:07:06 UTC
repoview-0.6.6-1.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/repoview-0.6.6-1.fc16

Comment 6 Fedora Update System 2011-11-16 18:15:16 UTC
repoview-0.6.6-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/repoview-0.6.6-1.fc15

Comment 7 Fedora Update System 2011-11-16 18:27:08 UTC
repoview-0.6.6-1.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/repoview-0.6.6-1.el6

Comment 8 Fedora Update System 2011-11-16 18:44:10 UTC
repoview-0.6.6-1.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/repoview-0.6.6-1.el5

Comment 9 Fedora Update System 2011-11-17 20:24:17 UTC
Package repoview-0.6.6-1.el5:
* should fix your issue,
* was pushed to the Fedora EPEL 5 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=epel-testing repoview-0.6.6-1.el5'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-EPEL-2011-5007
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2011-11-25 23:23:13 UTC
repoview-0.6.6-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2011-11-25 23:28:37 UTC
repoview-0.6.6-1.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2011-12-03 20:54:53 UTC
repoview-0.6.6-1.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2011-12-03 20:56:05 UTC
repoview-0.6.6-1.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.


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