thumbor / thumbor

thumbor is an open-source photo thumbnail service by globo.com

Home Page:http://thumbor.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uploading files with 'umlauts' in filename not working

p4sI opened this issue · comments

Thumbor request URL

example.com/images

Expected behaviour

Image with the name "grün.png" can be uploaded

Actual behaviour

Thumbor throws an exception:

2023-10-31 15:58:37 thumbor:ERROR ERROR: Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/tornado/web.py", line 1788, in _execute
    self.finish()
  File "/usr/local/lib/python3.11/site-packages/tornado/web.py", line 1234, in finish
    future = self.flush(include_footers=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/tornado/web.py", line 1171, in flush
    return self.request.connection.write_headers(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/tornado/http1connection.py", line 454, in write_headers
    lines.extend(line.encode("latin1") for line in header_lines)
  File "/usr/local/lib/python3.11/site-packages/tornado/http1connection.py", line 454, in <genexpr>
    lines.extend(line.encode("latin1") for line in header_lines)
                 ^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'latin-1' codec can't encode character '\u0308' in position 53: ordinal not in range(256)

2023-10-31 15:58:37 tornado.general:ERROR Cannot send error response after headers written

Operating system

Thumbor is running in Docker using https://github.com/MinimalCompact/thumbor version 7.6.0

Your thumbor.conf

default

This issue is stale because it has been open 30 days with no activity. Remove the stale label or add a comment, or this issue will be closed in 15 days. You can always re-open if you still feel this is still an issue. Tag @heynemann for more information.

This issue is stale because it has been open 30 days with no activity. Remove the stale label or add a comment, or this issue will be closed in 15 days. You can always re-open if you still feel this is still an issue. Tag @heynemann for more information.