Bug 37823 - Uploading files in distribution: Umlauts do not work
Uploading files in distribution: Umlauts do not work
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Distribution
UCS@school 3.2 R2
Other Linux
: P5 normal (vote)
: UCS@school 3.2 R2 Errata
Assigned To: Florian Best
Alexander Kramer
:
Depends on: 36846
Blocks: 37694
  Show dependency treegraph
 
Reported: 2015-02-17 11:43 CET by Florian Best
Modified: 2015-02-27 15:18 CET (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2015-02-17 11:43:15 CET
merge to UCS@school 3.2.

+++ This bug was initially created as a clone of Bug #36846 +++

Files with umlauts in their name do not work in distribution. They do not show up in the file system after uploading (but they are saved somehow).

Interestingly, this action (uploading an umlaut containing file) *distributes an undistributed project* immediately.

Firefox. Filename was "companyName_ Wichtige Änderung.PDF"
Comment 1 Alexander Kramer univentionstaff 2015-02-18 12:57:18 CET
Missing self in function signature __workaround_filename_bug(file)
inside schoolexam/__init__.py

TRACEBACK:
Die Ausführung des Kommandos schoolexam/upload ist fehlgeschlagen:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/__init__.py", line 176, in _decorated
    return function(self, request, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/decorators.py", line 626, in _response
    return function(self, request)
  File "/usr/lib/pymodules/python2.7/univention/management/console/modules/schoolexam/__init__.py", line 108, in upload
    filename = self.__workaround_filename_bug(file)
TypeError: __workaround_filename_bug() takes exactly 1 argument (2 given)
Comment 2 Florian Best univentionstaff 2015-02-18 13:01:54 CET
fixed, packages are building
Comment 3 Alexander Kramer univentionstaff 2015-02-20 09:34:45 CET
OK - debian/changelog
OK - changelog
OK - Files with umlauts
-- tested:
--- distribution module: utf8 and latin1 with umlauts
--- distribution module: latin1 broken umlaut char
--- exam module: utf8 and latin1 with umlauts
--- exam module: latin1 broken char

fyi: upload file with broken char (latin1) only worked with firefox.
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2015-02-27 15:18:34 CET
UCS@school 3.2 R2 v3 has been released:
http://docs.univention.de/release-notes-ucsschool-3.2R2v3-de.html

If this error occurs again, please use "Clone This Bug".