Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to a member function getDelimiter() on bool in file MailboxesController.php line 97 #7510

Open
bani6809 opened this issue Nov 2, 2022 · 3 comments

Comments

@bani6809
Copy link

bani6809 commented Nov 2, 2022

Steps to reproduce

  1. create local user on fedora. try to manual connect locally to it (imap: ssl/tls, port 993. smtp: none, port 25)
  2. Connect
  3. "There was an error while setting up your account"

Expected behavior

Get into local mailbox with nextcloud mail

Actual behavior

User gets "There was an error while setting up your account".

Mail app version

1.14.1

Mailserver or service

postfix 3.6.4 + cyrus-imapd 3.2.8

Operating system

Fedora 35

PHP engine version

PHP 7.4

Web server

Apache (supported)

Database

MySQL

Additional info

nextcloud.log:

{
  "reqId": "Y2JEWrCygaiSvDDlITQmQgAAANE",
  "level": 3,
  "time": "2022-11-02T10:20:10+00:00",
  "remoteAddr": "192.168.33.3",
  "user": "dh06973",
  "app": "mail",
  "method": "GET",
  "url": "/m129g/index.php/apps/mail/api/mailboxes?accountId=35",
  "message": "Call to a member function getDelimiter() on bool in file '/home/httpd/nc/public_html/m129g/apps/mail/lib/Controller/MailboxesController.php' line 97",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0",
  "version": "24.0.6.1",
  "exception": {
    "Exception": "Exception",
    "Message": "Call to a member function getDelimiter() on bool in file '/home/httpd/nc/public_html/m129g/apps/mail/lib/Controller/MailboxesController.php' line 97",
    "Code": 0,
    "Trace": [
      {
        "file": "/home/httpd/nc/public_html/m129g/lib/private/AppFramework/App.php",
        "line": 172,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/home/httpd/nc/public_html/m129g/lib/private/Route/Router.php",
        "line": 298,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/home/httpd/nc/public_html/m129g/lib/base.php",
        "line": 1030,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/home/httpd/nc/public_html/m129g/index.php",
        "line": 36,
        "function": "handleRequest",
        "class": "OC",
        "type": "::"
      }
    ],
    "File": "/home/httpd/nc/public_html/m129g/lib/private/AppFramework/Http/Dispatcher.php",
    "Line": 165,
    "Previous": {
      "Exception": "Error",
      "Message": "Call to a member function getDelimiter() on bool",
      "Code": 0,
      "Trace": [
        {
          "file": "/home/httpd/nc/public_html/m129g/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 225,
          "function": "index",
          "class": "OCA\\Mail\\Controller\\MailboxesController",
          "type": "->"
        },
        {
          "file": "/home/httpd/nc/public_html/m129g/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 133,
          "function": "executeController",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "/home/httpd/nc/public_html/m129g/lib/private/AppFramework/App.php",
          "line": 172,
          "function": "dispatch",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "/home/httpd/nc/public_html/m129g/lib/private/Route/Router.php",
          "line": 298,
          "function": "main",
          "class": "OC\\AppFramework\\App",
          "type": "::"
        },
        {
          "file": "/home/httpd/nc/public_html/m129g/lib/base.php",
          "line": 1030,
          "function": "match",
          "class": "OC\\Route\\Router",
          "type": "->"
        },
        {
          "file": "/home/httpd/nc/public_html/m129g/index.php",
          "line": 36,
          "function": "handleRequest",
          "class": "OC",
          "type": "::"
        }
      ],
      "File": "/home/httpd/nc/public_html/m129g/apps/mail/lib/Controller/MailboxesController.php",
      "Line": 97
    },
    "message": "Call to a member function getDelimiter() on bool in file '/home/httpd/nc/public_html/m129g/apps/mail/lib/Controller/MailboxesController.php' line 97",
    "exception": {},
    "CustomMessage": "Call to a member function getDelimiter() on bool in file '/home/httpd/nc/public_html/m129g/apps/mail/lib/Controller/MailboxesController.php' line 97"
  }
}

horde_imap.log:

------------------------------
>> Wed, 02 Nov 2022 10:20:10 +0000
>> Connection to: imap://{redacted}:993/
>> Server connection took 0.0067 seconds.
S: * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE AUTH=LOGIN AUTH=PLAIN SASL-IR] {redacted} Cyrus IMAP 3.2.8-2.fc35 Fedora server ready
C: 1 AUTHENTICATE PLAIN [INITIAL CLIENT RESPONSE (username: dh06973)]
S: 1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxten QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SEARCH=FUZZY SORT SORT=MODSEQ SORT=DISPLAY SORT=UID THREAD=ORDEREDSUBJECT THREAD=REFERENCES THREAD=REFS ANNOTATE-EXPERIMENT-1 METADATA LIST-EXTENDED LIST-STATUS LIST-MYRIGHTS LIST-METADATA WITHIN QRESYNC SCAN XLIST XMOVE MOVE SPECIAL-USE CREATE-SPECIAL-USE DIGEST=SHA1 X-REPLICATION STATUS=SIZE OBJECTID SAVEDATE X-CREATEDMODSEQ PREVIEW=FUZZY URLAUTH URLAUTH=BINARY LOGINDISABLED XCONVERSATIONS COMPRESS=DEFLATE X-QUOTA=STORAGE X-QUOTA=MESSAGE X-QUOTA=X-ANNOTATION-STORAGE X-QUOTA=X-NUM-FOLDERS IDLE] Success (tls protection) SESSIONID=<cyrus-1667384410-1497810-1-5227505053838103020>
>> Command 1 took 0.088 seconds.
>> CACHE: Using the Horde_Imap_Client_Cache_Backend_Null storage driver.
C: 2 ENABLE QRESYNC
C: 3 LOGOUT
S: * ENABLED CONDSTORE QRESYNC
S: 2 OK Completed
>> Command 2 took 0.0005 seconds.
S: * BYE LOGOUT received
S: 3 OK Completed
>> Command 3 took 0.0009 seconds.
------------------------------
>> Wed, 02 Nov 2022 10:20:10 +0000
>> Connection to: imap://{redacted}:993/
>> Server connection took 0.0069 seconds.
S: * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE AUTH=LOGIN AUTH=PLAIN SASL-IR] {redacted} Cyrus IMAP 3.2.8-2.fc35 Fedora server ready
C: 1 AUTHENTICATE PLAIN [INITIAL CLIENT RESPONSE (username: dh06973)]
S: 1 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxten QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SEARCH=FUZZY SORT SORT=MODSEQ SORT=DISPLAY SORT=UID THREAD=ORDEREDSUBJECT THREAD=REFERENCES THREAD=REFS ANNOTATE EXPERIMENT-1 METADATA LIST-EXTENDED LIST-STATUS LIST-MYRIGHTS LIST-METADATA WITHIN QRESYNC SCAN XLIST XMOVE MOVE SPECIAL-USE CREATE-SPECIAL-USE DIGEST=SHA1 X-REPLICATION STATUS=SIZE OBJECTID SAVEDATE X-CREATEDMODSEQ PREVIEW=FUZZY URLAUTH URLAUTH=BINARY LOGINDISABLED XCONVERSATIONS COMPRESS=DEFLATE  X-QUOTA=STORAGE X-QUOTA=MESSAGE X-QUOTA=X-ANNOTATION-STORAGE X-QUOTA=X-NUM-FOLDERS IDLE] Success (tls protection) SESSIONID=<cyrus-1667384410-1497955-1-2115529666616520559>
>> Command 1 took 0.0884 seconds.
>> CACHE: Using the Horde_Imap_Client_Cache_Backend_Null storage driver.
C: 2 ENABLE QRESYNC
C: 3 NAMESPACE
S: * ENABLED CONDSTORE QRESYNC
S: 2 OK Completed
>> Command 2 took 0.0005 seconds.
S: * NAMESPACE NIL (("Other Users/" "/")) (("Shared Folders/" "/"))
S: 3 OK Completed
>> Command 3 took 0.0412 seconds.
C: 4 LIST () "" (*) RETURN (SUBSCRIBED SPECIAL-USE)
S: 4 OK Completed (0.000 secs)
>> Command 4 took 0.0011 seconds.
C: 5 LOGOUT
S: * BYE LOGOUT received
S: 5 OK Completed
>> Command 5 took 0.0007 seconds.

horde_smtp.log:

------------------------------
>> Wed, 02 Nov 2022 10:20:10 +0000
>> Connection to: smtp://{redacted}:25
S: 220 {redacted} ESMTP
C: EHLO {redacted}
S: 250-{redacted}
S: 250-PIPELINING
S: 250-SIZE 268435456
S: 250-VRFY
S: 250-ETRN
S: 250-STARTTLS
S: 250-ENHANCEDSTATUSCODES
S: 250-8BITMIME
S: 250-DSN
S: 250-SMTPUTF8
S: 250 CHUNKING
C: QUIT
S: 221 2.0.0 Bye
@ChristophWurst
Copy link
Member

Looks like the account doesn't have a single mailbox and the app takes the first mailbox to figure out a delimiter in \OCA\Mail\Controller\MailboxesController::index.

@bani6809
Copy link
Author

bani6809 commented Nov 4, 2022

any change I can make to cyrus-imap or postfix configuration to make this work?

@ChristophWurst
Copy link
Member

You could configure it so every account has at least an inbox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants