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

Yandex Mail - unable to load Sent folder #972

Closed
serenitatis opened this issue Jul 16, 2018 · 7 comments
Closed

Yandex Mail - unable to load Sent folder #972

serenitatis opened this issue Jul 16, 2018 · 7 comments

Comments

@serenitatis
Copy link

serenitatis commented Jul 16, 2018

Steps to reproduce

  1. Setup Mail app for Yandex mail
  2. Open Mail app
  3. Proceed to Sent Folder

Expected behaviour

Sent folder content will be shown

Actual behaviour

See unable to load Sent folder error

Server configuration detail

Operating system: Linux 4.4.0-127-generic #153-Ubuntu SMP Sat May 19 10:58:46 UTC 2018 x86_64

Webserver: Apache/2.4.18 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.0.2g (apache2handler)

Database: mysql 5.7.22

PHP version: 7.0.30-0ubuntu0.16.04.1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, standard, apache2handler, inotify, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, iconv, igbinary, imagick, imap, intl, json, ldap, exif, mcrypt, mysqli, pdo_mysql, pdo_sqlite, Phar, posix, pspell, readline, redis, shmop, SimpleXML, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache

Nextcloud version: 13.0.4 - 13.0.4.0

Updated from an older Nextcloud/ownCloud or fresh install: fresh

Where did you install Nextcloud from: official site

Signing status

Array

List of activated apps
Enabled:
 - activity: 2.6.1
 - apporder: 0.4.1
 - bruteforcesettings: 1.1.0
 - calendar: 1.6.1
 - contacts: 2.1.5
 - dav: 1.4.7
 - federatedfilesharing: 1.3.1
 - files: 1.8.0
 - files_markdown: 2.0.4
 - files_pdfviewer: 1.2.1
 - files_texteditor: 2.5.1
 - firstrunwizard: 2.2.1
 - issuetemplate: 0.3.0
 - logreader: 2.0.0
 - lookup_server_connector: 1.1.0
 - mail: 0.8.2
 - news: 12.0.4
 - oauth2: 1.1.1
 - password_policy: 1.3.0
 - provisioning_api: 1.3.0
 - quota_warning: 1.2.0
 - serverinfo: 1.3.0
 - tasks: 0.9.6
 - telephoneprovider: 1.0.1
 - theming: 1.4.5
 - theming_customcss: 1.0.0
 - twofactor_backupcodes: 1.2.3
 - twofactor_totp: 1.4.1
 - updatenotification: 1.3.0
 - workflowengine: 1.3.0
Disabled:
 - admin_audit
 - comments
 - encryption
 - federation
 - files_external
 - files_sharing
 - files_trashbin
 - files_versions
 - files_videoplayer
 - gallery
 - nextcloud_announcements
 - notifications
 - sharebymail
 - survey_client
 - systemtags
 - user_external
 - user_ldap

Configuration (config/config.php)
{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "***REMOVED SENSITIVE VALUE***"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
    "htaccess.RewriteBase": "\/",
    "dbtype": "mysql",
    "version": "13.0.4.0",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "defaultapp": "mail",
    "memcache.local": "\\OC\\Memcache\\Redis",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 6379
    },
    "maintenance": false,
    "updater.release.channel": "stable",
    "theme": "",
    "loglevel": 2,
    "debug": false
}

Are you using external storage, if yes which one: No

Are you using encryption: No

Are you using an external user-backend, if yes which one: No

Client configuration

Browser: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 YaBrowser/18.6.1.772 Yowser/2.5 Safari/537.36

Operating system:

Logs

Horde IMAP log

Mon, 16 Jul 2018 10:27:36 +0000
Connection to: imap://imap.yandex.ru:993/
Server connection took 0.0389 seconds.
S: * OK Yandex IMAP4rev1 at imap4o.mail.yandex.net:993 ready to talk with ::ffff:...:35148, 2018-Jul-16 13:27:36, aRe7J41LFqM1
C: 1 CAPABILITY
S: * CAPABILITY IMAP4rev1 CHILDREN UNSELECT LITERAL+ NAMESPACE XLIST BINARY UIDPLUS ENABLE ID AUTH=PLAIN AUTH=XOAUTH2 IDLE MOVE
S: 1 OK CAPABILITY Completed.
Command 1 took 0.0558 seconds.
C: 2 [INITIAL CLIENT RESPONSE (username: ***@yandex.ru)]
S: +
C: bW9yZ2FuLWV2ZXJldHRAeWFuZGV4LnJ1AG1vcmdhbi1ldmVyZXR0QHlhbmRleC5ydQBhc2J6cGJ0Y2FsbGh4ZGx0
S: * CAPABILITY IMAP4rev1 CHILDREN UNSELECT LITERAL+ NAMESPACE XLIST BINARY UIDPLUS ENABLE ID IDLE MOVE
S: 2 OK AUTHENTICATE Completed.
Command 2 took 0.1033 seconds.
CACHE: Using the OCA\Mail\Cache\Cache storage driver.
C: 3 EXAMINE INBOX
S: * FLAGS (\Answered \Seen \Draft \Deleted $Forwarded)
S: * 0 EXISTS
S: * 0 RECENT
S: * OK [PERMANENTFLAGS (\Answered \Seen \Draft \Flagged \Deleted $Forwarded *)] Limited
S: * OK [UIDNEXT 2332] Ok
S: * OK [UIDVALIDITY 1451503145] Ok
S: 3 OK [READ-ONLY] EXAMINE Completed.
Command 3 took 0.0877 seconds.
C: 4 LOGOUT
S: * BYE IMAP4rev1 Server logging out
S: 4 OK LOGOUT completed
Command 4 took 0.0111 seconds.

Nextcloud log

{"reqId":"r7ldbp5TpG6ideM1N2pT","level":0,"time":"2018-07-16T10:27:33+00:00","remoteAddr":"...","user":"serenitatis","app":"mail","method":"GET","url":"/apps/mail/","message":"no default config found","userAgent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 YaBrowser/18.6.1.772 Yowser/2.5 Safari/537.36","version":"13.0.4.0"}
{"reqId":"pAzpIY3yHaHn4yEyvPZ6","level":0,"time":"2018-07-16T10:27:36+00:00","remoteAddr":"...","user":"serenitatis","app":"mail","method":"GET","url":"/apps/mail/api/accounts/4/folders/SU5CT1g%3D/messages?filter=","message":"loading messages of folder <SU5CT1g=>","userAgent":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 YaBrowser/18.6.1.772 Yowser/2.5 Safari/537.36","version":"13.0.4.0"}


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@ChristophWurst
Copy link
Member

Unfortunately, there is no obvious error in any of the logs.

Could you try to reproduce once again and check if anything else is logged that might give us a hint of what's going wrong? That would be awesome.
Also, please provide a screenshot of your browser's developer console's network tab so that we can see if any of the requests fails (with a non HTTP-200 code).

@serenitatis
Copy link
Author

serenitatis commented Jul 24, 2018

Here is the log again:

`>> Tue, 24 Jul 2018 14:58:47 +0000

Connection to: imap://imap.yandex.ru:993/
Server connection took 0.0256 seconds.
S: * OK Yandex IMAP4rev1 at imap32j.mail.yandex.net:993 ready to talk with ::ffff:185.158.113.162:53110, 2018-Jul-24 17:58:47, lwNfWR24DmI1
C: 1 CAPABILITY
S: * CAPABILITY IMAP4rev1 CHILDREN UNSELECT LITERAL+ NAMESPACE XLIST BINARY UIDPLUS ENABLE ID AUTH=PLAIN AUTH=XOAUTH2 IDLE MOVE
S: 1 OK CAPABILITY Completed.
Command 1 took 0.0491 seconds.
C: 2 [INITIAL CLIENT RESPONSE (username: ***@yandex.ru)]
S: +
C: bW9yZ2FuLWV2ZXJldHRAeWFuZGV4LnJ1AG1vcmdhbi1ldmVyZXR0QHlhbmRleC5ydQBhc2J6cGJ0Y2FsbGh4ZGx0
S: * CAPABILITY IMAP4rev1 CHILDREN UNSELECT LITERAL+ NAMESPACE XLIST BINARY UIDPLUS ENABLE ID IDLE MOVE
S: 2 OK AUTHENTICATE Completed.
Command 2 took 0.0546 seconds.
CACHE: Using the OCA\Mail\Cache\Cache storage driver.
C: 3 EXAMINE INBOX
S: * FLAGS (\Answered \Seen \Draft \Deleted $Forwarded)
S: * 0 EXISTS
S: * 0 RECENT
S: * OK [PERMANENTFLAGS (\Answered \Seen \Draft \Flagged \Deleted $Forwarded *)] Limited
S: * OK [UIDNEXT 2488] Ok
S: * OK [UIDVALIDITY 1451503145] Ok
S: 3 OK [READ-ONLY] EXAMINE Completed.
Command 3 took 0.0574 seconds.
C: 4 LOGOUT
S: * BYE IMAP4rev1 Server logging out
S: 4 OK LOGOUT completed
Command 4 took 0.0047 seconds.`

And console output. Then I go to Sent folder (click on sidebar) I got a 404 error. Maybe this is root of problem.

image

@ChristophWurst
Copy link
Member

And console output. Then I go to Sent folder (click on sidebar) I got a 404 error. Maybe this is root of problem.

Yup, that is unexpected.

@ChristophWurst
Copy link
Member

I have the feeling that the registered routes are not applied because the MessagesController class does not have any path were it returns a HTTP 404. From your screenshot I see that folder name contains a special character (%2F, so /), this might be the issue, but I'm not quite sure yet.

@serenitatis
Copy link
Author

I try to add mail.ru box and got same error.
image
Maybe it's a Cyrillic related? Also in both case (mail.ru and yandex) I see this error in NC log:
image

@ChristophWurst
Copy link
Member

Also in both case (mail.ru and yandex) I see this error in NC log:

Seems unrelated: #433.

Maybe it's a Cyrillic related?

Possible, but I'm not sure. Maybe it's just an encoding issue of the folder name in the URL.

@stale
Copy link

stale bot commented Feb 19, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 19, 2019
@stale stale bot closed this as completed Mar 12, 2019
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