nextcloud / mail

💌 Mail app for Nextcloud
https://apps.nextcloud.com/apps/mail
GNU Affero General Public License v3.0
821 stars 255 forks source link

Incorrect height of the IFrame of the email body from Jira #8941

Open Bockser opened 9 months ago

Bockser commented 9 months ago

Steps to reproduce

  1. Login to Nextcloud server
  2. Go to Mail App
  3. Open incoming mail
  4. Find and open mail from Jira (Self-Hosted)

Expected behavior

I'm expecting to see messages

Actual behavior

The emails from Jira always have a height of 8px, making it impossible to read the email

273813993-233a8225-fb59-4e5d-82b2-59c5c58b0fd2

Mail app version

3.4.1

Mailserver or service

Mailcow-dockerized

Operating system

Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database

PostgreSQL

Additional info

No response

ChristophWurst commented 9 months ago

check conf.php for overwrite.cli.url and similar. are the domain names and the schema (http vs https) correct?

Bockser commented 9 months ago

Yes, I checked it right away as I was finding a similar issue

Снимок экрана 2023-10-10 в 13 42 14
Bockser commented 9 months ago

@ChristophWurst The screenshot shows that the iframe content is loaded via https

ChristophWurst commented 9 months ago

There is a script called iframeresizer running inside the iframe. Can you try to find out if it's running?

Bockser commented 9 months ago

@ChristophWurst Yes, of course! How can I do that?

ChristophWurst commented 9 months ago

I don't know. Inspect the iframe with your browser tools? Check for included scripts, etc

Bockser commented 9 months ago

@ChristophWurst No, the script "htmlrespone.js" specified in the head of the iframe does not work because when loading the iframe content the error "Refused to load the image 'cid:jira-generated-image-avatar-cedd8d02-fc26-4f9b-a70d-cd28991698e6' because it violates the following Content Security Policy directive: "img-src 'self' data: blob:"".

Even though the script is minimized, you can still see that the logic of iframeResizer is contained in this very script

ChristophWurst commented 9 months ago

The CSP error of the inline image should not influence the execution of the script.

Bockser commented 9 months ago

There is a script called iframeresizer running inside the iframe. Can you try to find out if it's running?

Yes, the script runs and I can debug it,

Снимок экрана 2023-10-13 в 18 09 17
Bockser commented 9 months ago

You can even see the moment when the height is set to 8px (7.99px)

dyoma-bat commented 3 weeks ago

I have exactly the same problem with emails from jira, although emails from gitlab are displayed correctly