freescout-help-desk / freescout

FreeScout — Free self-hosted help desk & shared mailbox (Zendesk / Help Scout alternative)
https://freescout.net
GNU Affero General Public License v3.0
3.03k stars 495 forks source link

Image is not displayed in the costumer's email #4225

Closed il2020 closed 1 month ago

il2020 commented 1 month ago

A picture was inserted in the text of the email:

Content-Type: image/jpeg; name="=?UTF-8?B?0KHQv9GD0YLQvdC40LogMCUuanBn?="
Content-Disposition: inline; filename="=?UTF-8?B?0KHQv9GD0YLQvdC40LogMCUuanBn?="
Content-Transfer-Encoding: base64

But instead of the picture, only part of the link to it is displayed in the text. In the browser inspector, it says:

<img style="width:833px;" src="https://example.com/storage/attachment/0/9/1/%D0%A1%D0%BF%D1%83%D1%82%D0%BD%D0%B8%D0%BA_0%25.jpg?id=58165&amp;token=231e7625257d350c32" alt="Спутник_0%25.jpg?id=58165&amp;token=231e7625257d350c32">

There are errors like this in web-server.log:

2024/09/10 16:03:16 [error] 2632068#2632068: *7003162 open() "/var/www/html/storage/app/attachment/0/9/1/Спутник_0.jpg" failed (2: No such file or directory), client: X, server: example.com, request: "GET /storage/attachment/0/9/1/%D0%A1%D0%BF%D1%83%D1%82%D0%BD%D0%B8%D0%BA_0%25.jpg?id=58165&token=231e7625257d350c32 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.2-fpm.sock", host: "example.com"

On the server, I see the file with this name:

/var/www/html/storage/app/attachment/0/9/1/Спутник_0%.jpg

PHP version: 8.2.20 FreeScout version: 1.8.152 Database: MySQL Are you using CloudFlare: No Are you using non-official modules: Yes

freescout-help commented 1 month ago

We can't reproduce the issue. It looks like web server or proxy issue. What web server are you using? Are you using some proxies?

il2020 commented 1 month ago

I use nginx/1.22.1 without proxy. Okay, we can consider it a momentary glitch.