-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Thumbnailer fails with requested width=0
or height=0
#14579
Comments
Similar error 💯 Debian/Ubuntu platform I think this error is caused by the Element IOS client. I'm not sure, but an error appeared in the logs when an avatar was added from such clients. |
I've got many IOS clients connected to my homeserver, and the log is full of these errors. (And have been for a long time) Also running Synapse in a container. |
Did a little more digging, this example line from my reverse proxy
results in this in the synapse log
There are many many lines like this, and they all come from a various combination of IOS element clients, so maybe it would make sense to make a bugreport there as well. But, this should probably be handled in Synapse as well. |
Description
If you request a thumbnail with
width=0&height=0
(for bothscale
andcrop
)HTTP 500
I cannot explain why the platforms behave differently.
In any case, validation of the rest API is missing (#13147).
Steps to reproduce
Ubuntu package deployment
HTTP GET
https://example.com/_matrix/media/r0/thumbnail/example.com/<media_id>?width=0&height=0&method=scalecontainer deployment
HTTP GET
https://example.com/_matrix/media/r0/thumbnail/example.com/<media_id>?width=0&height=0&method=scaleHTTP 500
:{"errcode":"M_UNKNOWN","error":"Internal server error"}
I am did the same image for both plattforms / servers.
Homeserver
another homeserver
Synapse Version
various
Installation Method
Other (please mention below)
Database
single PostgreSQL server
Workers
Multiple workers
Platform
matrixdotorg/synapse:latest
)Configuration
No response
Relevant log output
Anything else that would be useful to know?
container version:
package version:
The text was updated successfully, but these errors were encountered: