nextcloud / mail

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

Unable to load message #9729

Open Sjoerd001 opened 3 weeks ago

Sjoerd001 commented 3 weeks ago

Steps to reproduce

1.Click on a message 2.Headers are loaded and imap login is ok, but no body text 3.Occurs with every message 4.Tried 3.6.0 and the updated 3.7.1

Expected behavior

Read Message body

Actual behavior

Got error message and a link to this github for reporting.

Mail app version

3.7.1

Mailserver or service

DBMail imap v3.2.3 running in a vm with fedora 22 and mariadb 10

Operating system

fedora 40

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database

MySQL

Additional info

Integrated Rouncubemail is fully working ok.

Sjoerd001 commented 3 weeks ago

Some errors from nextcloud.log:

{
  "reqId": "Zmfm_SgM-8AZ_mvrWgCr9AAAAM0",
  "level": 3,
  "time": "2024-06-11T05:56:16+00:00",
  "remoteAddr": "10.10.254.1",
  "user": "kxxxxxx",
  "app": "mail",
  "method": "GET",
  "url": "/nextcloud/index.php/apps/mail/api/messages/5255/body",
  "message": "Could not load message",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0",
  "version": "28.0.5.1",
  "exception": {
    "Exception": "OCA\\Mail\\Exception\\ServiceException",
    "Message": "Could not load message",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php",
        "line": 230,
        "function": "getImapMessage",
        "class": "OCA\\Mail\\Service\\MailManager",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 230,
        "function": "getBody",
        "class": "OCA\\Mail\\Controller\\MessagesController",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 137,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/AppFramework/App.php",
        "line": 184,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/Route/Router.php",
        "line": 315,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/usr/share/nextcloud/lib/base.php",
        "line": 1069,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/index.php",
        "line": 39,
        "function": "handleRequest",
        "class": "OC",
        "type": "::"
      }
    ],
    "File": "/var/lib/nextcloud/apps/mail/lib/Service/MailManager.php",
    "Line": 206,
    "Previous": {
      "Exception": "OCP\\AppFramework\\Db\\DoesNotExistException",
      "Message": "Message does not exist",
      "Code": 0,
      "Trace": [
        {
          "file": "/var/lib/nextcloud/apps/mail/lib/Service/MailManager.php",
          "line": 198,
          "function": "find",
          "class": "OCA\\Mail\\IMAP\\MessageMapper",
          "type": "->"
        },
        {
          "file": "/var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php",
          "line": 230,
          "function": "getImapMessage",
          "class": "OCA\\Mail\\Service\\MailManager",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 230,
          "function": "getBody",
          "class": "OCA\\Mail\\Controller\\MessagesController",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 137,
          "function": "executeController",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/AppFramework/App.php",
          "line": 184,
          "function": "dispatch",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/Route/Router.php",
          "line": 315,
          "function": "main",
          "class": "OC\\AppFramework\\App",
          "type": "::"
        },
        {
          "file": "/usr/share/nextcloud/lib/base.php",
          "line": 1069,
          "function": "match",
          "class": "OC\\Route\\Router",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/index.php",
          "line": 39,
          "function": "handleRequest",
          "class": "OC",
          "type": "::"
        }
      ],
      "File": "/var/lib/nextcloud/apps/mail/lib/IMAP/MessageMapper.php",
      "Line": 89
    },
    "message": "Could not load message",
    "exception": {},
    "CustomMessage": "Could not load message"
  }
}
Sjoerd001 commented 3 weeks ago

Data in mail export:

status | "error"
message | "OCA\\Mail\\Http\\AttachmentDownloadResponse::__construct(): Argument #1 ($content) must be of type string, null given, called in /var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php on line 549 in file '/var/lib/nextcloud/apps/mail/lib/Http/AttachmentDownloadResponse.php' line 45"
data |  
debug | true
type | "Exception"
message | "OCA\\Mail\\Http\\AttachmentDownloadResponse::__construct(): Argument #1 ($content) must be of type string, null given, called in /var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php on line 549 in file '/var/lib/nextcloud/apps/mail/lib/Http/AttachmentDownloadResponse.php' line 45"
code | 0
trace |  
0 |  
file | "/usr/share/nextcloud/lib/private/AppFramework/App.php"
line | 184
function | "dispatch"
class | "OC\\AppFramework\\Http\\Dispatcher"
1 |  
file | "/usr/share/nextcloud/lib/private/Route/Router.php"
line | 315
function | "main"
class | "OC\\AppFramework\\App"
2 |  
file | "/usr/share/nextcloud/lib/base.php"
line | 1069
function | "match"
class | "OC\\Route\\Router"
3 |  
file | "/usr/share/nextcloud/index.php"
line | 39
function | "handleRequest"
class | "OC"
previous |  
type | "TypeError"
message | "OCA\\Mail\\Http\\AttachmentDownloadResponse::__construct(): Argument #1 ($content) must be of type string, null given, called in /var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php on line 549"
code | 0
trace |  
0 |  
file | "/var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php"
line | 549
function | "__construct"
class | "OCA\\Mail\\Http\\AttachmentDownloadResponse"
1 |  
file | "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php"
line | 230
function | "export"
class | "OCA\\Mail\\Controller\\MessagesController"
2 |  
file | "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php"
line | 137
function | "executeController"
class | "OC\\AppFramework\\Http\\Dispatcher"
3 |  
file | "/usr/share/nextcloud/lib/private/AppFramework/App.php"
line | 184
function | "dispatch"
class | "OC\\AppFramework\\Http\\Dispatcher"
4 |  
file | "/usr/share/nextcloud/lib/private/Route/Router.php"
line | 315
function | "main"
class | "OC\\AppFramework\\App"
5 |  
file | "/usr/share/nextcloud/lib/base.php"
line | 1069
function | "match"
class | "OC\\Route\\Router"
6 |  
file | "/usr/share/nextcloud/index.php"
line | 39
function | "handleRequest"
class | "OC"
previous | null
code | 0
Sjoerd001 commented 3 weeks ago

Some headers:

Cache-Control: no-cache, no-store, must-revalidate Connection: close Content-Security-Policy: default-src 'none';base-uri 'none';manifest-src 'self';frame-ancestors 'none' Content-Type: application/json; charset=utf-8 Date: Tue, 11 Jun 2024 06:26:27 GMT Expires: Thu, 19 Nov 1981 08:52:00 GMT Feature-Policy: autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone 'none';payment 'none' Pragma: no-cache Referrer-Policy: no-referrer Server: Apache/2.4.59 (Fedora Linux) OpenSSL/3.2.1 mod_auth_gssapi/1.6.5 mod_fcgid/2.3.9 SVN/1.14.3 mod_wsgi/5.0.0 Python/3.12 mod_perl/2.0.13 Perl/v5.38.2 Strict-Transport-Security: max-age=15552000; includeSubDomains Transfer-Encoding: chunked X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-Permitted-Cross-Domain-Policies: none X-Powered-By: PHP/8.3.7 X-Request-Id: ZmfuEzIpnJcAslS-5wgKnQAAAA4 X-Robots-Tag: noindex, nofollow X-XSS-Protection: 1; mode=block x-mail-response: true

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8 Accept-Encoding: gzip, deflate, br, zstd Accept-Language: nl,en-US;q=0.7,en;q=0.3 Connection: keep-alive DNT: 1 Host: mydomain.tld Priority: u=1 Sec-Fetch-Dest: document Sec-Fetch-Mode: navigate Sec-Fetch-Site: same-origin Sec-Fetch-User: ?1 Sec-GPC: 1 Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0