Bug 636601
| Summary: | Generating rss feed generate a traceback | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Remi Collet <fedora> | ||||
| Component: | repoview | Assignee: | Konstantin Ryabitsev <icon> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 14 | CC: | dan, icon, paul, rdieter | ||||
| Target Milestone: | --- | Keywords: | Patch | ||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | repoview-0.6.6-1.el6 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2011-11-25 23:23:13 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Don't know why is now requires (no issue in f13) I suspect a change in the sqlite library. + Still an issue in F-15. Remi's patch works for me. *** Bug 672838 has been marked as a duplicate of this bug. *** Patch works like a charm for me too. 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 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 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 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 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). 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. 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. 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. 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. |
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.