Bug 1381668 - khard throws UnicodeDecodeError
Summary: khard throws UnicodeDecodeError
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: khard
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ben Boeckel
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-04 16:53 UTC by Sebastian Dyroff
Modified: 2017-08-08 19:19 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-08-08 19:19:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
add missing python-atomicwrites dependency (1.16 KB, patch)
2016-10-11 13:00 UTC, Sebastian Dyroff
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Github scheibler khard issues 30 0 None None None 2016-10-04 16:55:55 UTC

Description Sebastian Dyroff 2016-10-04 16:53:25 UTC
Description of problem:

when searching with khard, it crashes with the following stacktrace:
                                                     
Traceback (most recent call last):
  File "/usr/bin/khard", line 9, in <module>
    load_entry_point('khard==0.6.3', 'console_scripts', 'khard')()
  File "/usr/lib/python2.7/site-packages/khard/khard.py", line 298, in main
    selected_address_books, args.sort, args.reverse, search_terms[0], False)
  File "/usr/lib/python2.7/site-packages/khard/khard.py", line 220, in get_contact_list_by_user_selection
    if regexp.search(contact.print_vcard()) != None:
  File "/usr/lib/python2.7/site-packages/khard/carddav_object.py", line 604, in print_vcard
    if self.get_organisation() == "" and self.get_full_name() == "":
  File "/usr/lib/python2.7/site-packages/khard/carddav_object.py", line 121, in get_full_name
    return self.vcard.fn.value.encode("utf-8")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)


seems fixed with version 0.8.5 see:
https://github.com/scheibler/khard/issues/30

The current f24 branch is on 0.9.0, but there is no bodhi update, maybe it should just be released.

Comment 1 Ben Boeckel 2016-10-08 22:31:28 UTC
Fedora 24 is currently on 0.6.3. The jump to 0.8.5 (or 0.9.0 for that matter) is large. Could you test the update thoroughly (I only use it on my Rawhide machines)?

Comment 2 Fedora Update System 2016-10-09 13:50:33 UTC
khard-0.9.0-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-662052da94

Comment 3 Sebastian Dyroff 2016-10-11 13:00:03 UTC
Created attachment 1209154 [details]
add missing python-atomicwrites dependency

Comment 4 Sebastian Dyroff 2016-10-11 13:01:19 UTC
I added a patch for the missing dependency and did a koji scratch build:

http://koji.fedoraproject.org/koji/taskinfo?taskID=16048526

Comment 5 Fedora Update System 2016-11-11 10:20:22 UTC
khard-0.9.0-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-6adc3feabf

Comment 6 Fedora Update System 2016-11-11 22:22:15 UTC
khard-0.9.0-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-6adc3feabf

Comment 7 Fedora End Of Life 2017-07-25 23:21:24 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2017-08-08 19:19:13 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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