Webfrontend #373

Upload error related to character encoding

Added by Alexander Blum almost 7 years ago. Updated over 4 years ago.

Status:ErledigtStart date:
Priority:HochDue date:
Assignee:Alexander Blum% Done:

100%

Category:-Estimated time:1.00 h
Target version:Repertoire 1) Testing phase I

Description

A "ΓΈ" in a filename seems to raise an error on upload.

Associated revisions

Revision 29303b7e
Added by Thomas Mielke over 6 years ago

now utf-8-encoded the filename in repertoire_upload.py to fix internal server error on non-ascii-filenames; fixes #373

History

#1 Updated by Thomas Mielke over 6 years ago

  • Assignee set to Thomas Mielke

#2 Updated by Thomas Mielke over 6 years ago

  • Status changed from Neu to Erledigt
  • % Done changed from 0 to 100

Applied in changeset commit:collecting_society_portal_repertoire|29303b7e3b523e4dfc04f188e6529b6a5785eb36.

#3 Updated by Thomas Mielke over 6 years ago

filename_hash = _hash_algorithm(filename).hexdigest()
resulted in UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8', so I utf-8-encoded the filename.

#4 Updated by Thomas Mielke over 6 years ago

  • Assignee changed from Thomas Mielke to Alexander Blum

#5 Updated by Alexander Blum over 4 years ago

  • Target version changed from 1) Testing phase I to Repertoire 1) Testing phase I

#6 Updated by Alexander Blum over 4 years ago

  • Project changed from repertoire to collecting_society

Also available in: Atom PDF