Ticket #118 (closed defect: fixed)

Opened 4 years ago

Last modified 7 months ago

Crash with non-unicode chars in file name

Reported by: netmask Assigned to: dev
Priority: blocker Milestone:
Component: MediaServer Backend FileSystem Version:
Keywords: Cc:

Description

I've got some file names written in iso8859-1, while my system is configured to utf-8. When Coherence tries to read those files, it throws in an exception:

DEBUG mediaserver Fev 02 16:19:04 [Failure instance: Traceback: <type 'exceptions.UnicodeDecodeError?'>: 'ascii' codec can't decode byte 0xea in position 19: ordinal not in range(128)/usr/lib64/python2.5/threading.py:440:run/usr/lib64/python2.5/site-packages/twisted/python/threadpool.py:148:_worker/usr/lib64/python2.5/site-packages/twisted/python/context.py:59:callWithContext/usr/lib64/python2.5/site-packages/twisted/python/context.py:37:callWithContext--- <exception caught here> ---/usr/lib64/python2.5/site-packages/twisted/internet/threads.py:25:_putResultInDeferred/usr/lib/python2.5/site-packages/coherence/backends/fs_storage.py:312:__init__/usr/lib/python2.5/site-packages/coherence/backends/fs_storage.py:357:walk/usr/lib/python2.5/site-packages/coherence/backends/fs_storage.py:394:append/usr/lib/python2.5/site-packages/coherence/backends/fs_storage.py:371:create/usr/lib/python2.5/site-packages/coherence/backends/fs_storage.py:74:__init__/usr/lib/python2.5/site-packages/coherence/backends/fs_storage.py:176:check_for_cover_art/usr/lib64/python2.5/site-packages/twisted/python/filepath.py:59:children/usr/lib64/python2.5/site-packages/twisted/python/filepath.py:150:child/usr/lib64/python2.5/posixpath.py:65:join] (coherence/upnp/devices/media_server.py:371)

So I think there should be some way to circumvent badly formatted file names.

http://pastebin.ca/889140

Change History

22.04.2008 22:45:08 changed by dev

  • status changed from new to closed.
  • resolution set to fixed.

in [849] - if it still happens pls reopen this ticket