espocrm / espocrm-docker

Official Docker Image for EspoCRM
https://hub.docker.com/r/espocrm/espocrm
GNU Affero General Public License v3.0
56 stars 34 forks source link

Some PDF's can't be opened #17

Closed vp-lab closed 3 months ago

vp-lab commented 1 year ago

Describe the bug We can't see some documents (PDF's with 5MB+). The upload it's fine but the app can't open it. Error we get 403 Forbidden.

To Reproduce Steps to reproduce the behavior:

  1. Go to Documents
  2. Add Document
  3. Select a 'big' PDF 5MB+
  4. Try to see the PDF.

Expected behavior To see all the documents (bigger or smaller).

Screenshots 2022-10-05_09-40 2022-10-05_09-41

EspoCRM version EspoCRM Version 7.2.4 in docker container with external database.

Additional context Both documents (1 and 2 from SS) are the same. The first one it's a smaller copy from the second one. The first document I can open. The second document I can't open.

I get this in logs:

[2022-10-05 06:25:03] ERROR: (403) GET /; line: 85, file: /var/www/html/application/Espo/EntryPoints/Download.php [] []
[2022-10-05 06:25:13] ERROR: (403) GET /; line: 85, file: /var/www/html/application/Espo/EntryPoints/Download.php [] []
[2022-10-05 06:32:30] ERROR: (403) GET /; line: 85, file: /var/www/html/application/Espo/EntryPoints/Download.php [] []
[2022-10-05 06:33:12] ERROR: (403) GET /; line: 85, file: /var/www/html/application/Espo/EntryPoints/Download.php [] []
[2022-10-05 06:33:24] ERROR: (403) GET /; line: 85, file: /var/www/html/application/Espo/EntryPoints/Download.php [] []

In settings:

So the size should not be a problem.

Thank you.

nenominal commented 1 year ago

I have the same issue, maybe someone will look into it.

lazespo commented 1 year ago

@vp-lab, unfortunately, I was unable to reproduce this error in my EspoCRM docker environment with my PDF documents (5MB+). Could you please send one of the files so that I can reproduce this issue and help you?

lazespo commented 1 year ago

@nenominal, unfortunately, I was unable to reproduce this error in my EspoCRM docker environment with my PDF documents (5MB+). Could you please send one of the files so that I can reproduce this issue and help you?