#3 — UnicodeDecodeError if the title of the CD object contains non ASCII character
| State | Resolved |
|---|---|
| Version: | 0.5.3 |
| Area | Functionality |
| Issue type | Bug |
| Severity | Medium |
| Submitted by | (anonymous) |
| Submitted on | Jan 27, 2006 |
| Responsible | Nate Aune |
| Target release: | 0.5.4 |
Last modified on
Jan 28, 2006
by
Nate Aune
Request URL
http://localhost/proba-1/ataudio.2006-01-27.2389556485/base_edit
Exception Type
UnicodeDecodeError
Exception Value
'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)
Traceback (innermost last):
* Module ZPublisher.Publish, line 101, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 39, in call_object
* Module Products.CMFFormController.FSControllerPageTemplate, line 102, in __call__
* Module Products.CMFFormController.BaseControllerPageTemplate, line 43, in _call
* Module Products.CMFFormController.ControllerBase, line 247, in getNext
* Module Products.CMFFormController.Actions.TraverseTo, line 36, in __call__
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 39, in call_object
* Module Products.CMFFormController.FSControllerPythonScript, line 109, in __call__
* Module Products.CMFFormController.Script, line 141, in __call__
* Module Products.CMFCore.FSPythonScript, line 108, in __call__
* Module Shared.DC.Scripts.Bindings, line 306, in __call__
* Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
* Module Products.CMFCore.FSPythonScript, line 163, in _exec
* Module None, line 1, in content_edit
<FSControllerPythonScript at /Plone/content_edit used for /Plone/proba-1/01-pigs.mp3>
Line 1
* Module Products.CMFCore.FSPythonScript, line 108, in __call__
* Module Shared.DC.Scripts.Bindings, line 306, in __call__
* Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
* Module Products.CMFCore.FSPythonScript, line 163, in _exec
* Module None, line 11, in content_edit_impl
<FSPythonScript at /Plone/content_edit_impl used for /Plone/proba-1/01-pigs.mp3>
Line 11
* Module Products.Archetypes.BaseObject, line 631, in processForm
* Module Products.Archetypes.BaseObject, line 620, in _processForm
__traceback_info__: (<ATAudio at /Plone/proba-1/01-pigs.mp3>, <Field file(file:rw)>, <bound method ATAudio.setFile of <ATAudio at /Plone/proba-1/01-pigs.mp3>>)
* Module Products.Archetypes.utils, line 143, in mapply
* Module Products.ATContentTypes.content.file, line 120, in setFile
* Module Products.ATContentTypes.content.base, line 485, in _setATCTFileContent
* Module Products.Archetypes.BaseObject, line 226, in setId
* Module Products.Archetypes.OrderedBaseFolder, line 209, in manage_renameObject
* Module OFS.CopySupport, line 267, in manage_renameObject
* Module OFS.ObjectManager, line 276, in _setObject
* Module Products.Archetypes.BaseContent, line 38, in manage_afterAdd
* Module Products.CMFCore.CMFCatalogAware, line 198, in manage_afterAdd
* Module Products.Archetypes.CatalogMultiplex, line 26, in indexObject
* Module Products.CMFPlone.CatalogTool, line 412, in catalog_object
* Module Products.ZCatalog.ZCatalog, line 528, in catalog_object
* Module Products.ZCatalog.Catalog, line 381, in catalogObject
* Module Products.PluginIndexes.common.UnIndex, line 252, in index_object
* Module Products.PluginIndexes.common.UnIndex, line 282, in _index_object
* Module Products.PluginIndexes.common.UnIndex, line 229, in insertForwardIndexEntry
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 2: ordinal not in range(128)
Display traceback as text
REQUEST
form
description_text_format 'text/plain'
form_submit 'Save'
file_delete ''
fieldset 'default'
description 'fdasfdasfasf'
last_referer 'http://localhost/proba-1/audiofolder_view?portal_status_message=Changes%20saved.'
file_file <ZPublisher.HTTPRequest.FileUpload instance at 0x044321C0>
relatedItems ['']
add_reference {'destination': '', 'field': '', 'type': ''}
allowDiscussion '1'
id 'ataudio.2006-01-27.2389556485'
cookies
lazy items
SESSION <bound method SessionDataManager.getSessionData of <SessionDataManager instance at 02A98800>>
other
description_text_format 'text/plain'
form_submit 'Save'
file_delete ''
last_referer 'http://localhost/proba-1/audiofolder_view?portal_status_message=Changes%20saved.'
SiteRootPATH '/'
URL3 'http://localhost'
URL2 'http://localhost/proba-1'
AUTHENTICATION_PATH ''
AUTHENTICATED_USER jjaroli
SERVER_URL 'http://localhost'
file_file <ZPublisher.HTTPRequest.FileUpload instance at 0x044321C0>
id 'ataudio.2006-01-27.2389556485'
traverse_subpath []
relatedItems ['']
ACTUAL_URL 'http://localhost/proba-1/ataudio.2006-01-27.2389556485/base_edit'
portal_status_message 'Changes saved.'
fieldset 'default'
description 'fdasfdasfasf'
URL 'http://localhost/proba-1/ataudio.2006-01-27.2389556485/base_edit'
add_reference {'destination': '', 'field': '', 'type': ''}
PUBLISHED <FSControllerPageTemplate at /Plone/base_edit used for /Plone/proba-1/01-pigs.mp3>
controller_state <ControllerState instance at 02AF6450>
TraversalRequestNameStack []
VirtualRootPhysicalPath ('', 'Plone')
BASE1 'http://localhost'
BASE2 'http://localhost/proba-1'
BASE3 'http://localhost/proba-1/ataudio.2006-01-27.2389556485'
BASE4 'http://localhost/proba-1/ataudio.2006-01-27.2389556485/base_edit'
allowDiscussion '1'
URL1 'http://localhost/proba-1/ataudio.2006-01-27.2389556485'
URL0 http://localhost/proba-1/ataudio.2006-01-27.2389556485/base_edit
URL1 http://localhost/proba-1/ataudio.2006-01-27.2389556485
URL2 http://localhost/proba-1
URL3 http://localhost
BASE0 http://localhost
BASE1 http://localhost
BASE2 http://localhost/proba-1
BASE3 http://localhost/proba-1/ataudio.2006-01-27.2389556485
BASE4 http://localhost/proba-1/ataudio.2006-01-27.2389556485/base_edit
environ
HTTP_COOKIE '__ac="amphcm9saTpjc2FiYQ%3D%3D"'
SERVER_SOFTWARE 'Zope/(Zope 2.7.8-final, python 2.3.5, win32) ZServer/1.1 Plone/Unknown'
SCRIPT_NAME ''
REQUEST_METHOD 'POST'
HTTP_KEEP_ALIVE '300'
SERVER_PROTOCOL 'HTTP/1.1'
channel.creation_time 1138364239
CONNECTION_TYPE 'keep-alive'
HTTP_ACCEPT_CHARSET 'UTF-8,*'
HTTP_USER_AGENT 'Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.8) Gecko/20051111 Firefox/1.5'
HTTP_REFERER 'http://localhost/proba-1/ataudio.2006-01-27.2389556485/base_edit?portal_status_message=Audio%20file%20has%20been%20created.'
SERVER_NAME 'jaroli-xp.graphisoft.hu'
REMOTE_ADDR '127.0.0.1'
PATH_TRANSLATED '\\proba-1\\ataudio.2006-01-27.2389556485\\base_edit'
SERVER_PORT '80'
CONTENT_LENGTH '8033155'
HTTP_HOST 'localhost'
HTTP_ACCEPT 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'
GATEWAY_INTERFACE 'CGI/1.1'
HTTP_ACCEPT_LANGUAGE 'en,es;q=0.8,hu;q=0.6,en-us;q=0.4,es-ar;q=0.2'
CONTENT_TYPE 'multipart/form-data; boundary=---------------------------24597188539133'
HTTP_ACCEPT_ENCODING 'gzip,deflate'
PATH_INFO '/proba-1/ataudio.2006-01-27.2389556485/base_edit'
- Steps to reproduce:
- 1. vanilla Plone 2.1.2 with ATAudio
2. create a CD or recordings object: Title must have some accented letters like: éáőúüóűöí (in this case I have tried "próba")
3. try to upload an mp3 file: you will get the enclosed error message/traceback
Added by
(anonymous)
on
January 27, 2006 - 12:24
Target release:
0.5.4 → None
Responsible manager:
nateaune → (UNASSIGNED)
Oops. please delete the SERVER NAME line. Thanks.
Added by
Nate Aune
on
January 28, 2006 - 22:07
Issue state:
unconfirmed → open
Responsible manager:
(UNASSIGNED) → nateaune
If you update to the latest ATAudio from svn trunk, it will no longer give this error. The eyeD3 library was recently updated with many unicode fixes.
However, this bug is fixed but the metadata fields are now blank. I'm closing this issue and adding a new one to find out why files with non-ascii characters do not get parsed correctly by ATAudio.
However, this bug is fixed but the metadata fields are now blank. I'm closing this issue and adding a new one to find out why files with non-ascii characters do not get parsed correctly by ATAudio.
Added by
Nate Aune
on
January 28, 2006 - 22:31
Issue state:
open → resolved
Target release:
None → 0.5.4
The issue describing that the metadata fields are empty when uploading an audio file with non-ascitt characters is here: http://plone.org/products/ataudio/issues/5/