Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading files with 'umlauts' in filename not working #1613

Open
p4sI opened this issue Oct 31, 2023 · 2 comments
Open

Uploading files with 'umlauts' in filename not working #1613

p4sI opened this issue Oct 31, 2023 · 2 comments

Comments

@p4sI
Copy link

p4sI commented Oct 31, 2023

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

Copy link

github-actions bot commented Dec 1, 2023

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.

Copy link

github-actions bot commented Jan 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants