{"action":"created","issue":{"url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5510","repository_url":"https://api.github.com/repos/roundcube/roundcubemail","labels_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5510/labels{/name}","comments_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5510/comments","events_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5510/events","html_url":"https://github.com/roundcube/roundcubemail/issues/5510","id":188885569,"number":5510,"title":"\"Settings>Folders\" gives HTTP 500","user":{"login":"tronsgaard","id":10196208,"avatar_url":"https://avatars.githubusercontent.com/u/10196208?v=3","gravatar_id":"","url":"https://api.github.com/users/tronsgaard","html_url":"https://github.com/tronsgaard","followers_url":"https://api.github.com/users/tronsgaard/followers","following_url":"https://api.github.com/users/tronsgaard/following{/other_user}","gists_url":"https://api.github.com/users/tronsgaard/gists{/gist_id}","starred_url":"https://api.github.com/users/tronsgaard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tronsgaard/subscriptions","organizations_url":"https://api.github.com/users/tronsgaard/orgs","repos_url":"https://api.github.com/users/tronsgaard/repos","events_url":"https://api.github.com/users/tronsgaard/events{/privacy}","received_events_url":"https://api.github.com/users/tronsgaard/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-12T01:57:53Z","updated_at":"2016-11-12T07:50:31Z","closed_at":"2016-11-12T07:50:31Z","body":"On RoundCube 1.2.2, when I go to Settings -> Folders, the request gives a HTTP 500 error.\r\n\r\nThe following error appears in the log:\r\n\r\n```\r\nFatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 20456091 bytes) in /var/webmail/roundcube/program/include/rcmail_output_html.php on line 776\r\nStack trace:\r\n  1. {main}() /var/webmail/roundcube/index.php:0\r\n  2. include_once() /var/webmail/roundcube/index.php:291\r\n  3. rcmail_output_html->send() /var/webmail/roundcube/program/steps/settings/folders.inc:196\r\n  4. rcmail_output_html->parse() /var/webmail/roundcube/program/include/rcmail_output_html.php:478\r\n  5. rcmail_output_html->write() /var/webmail/roundcube/program/include/rcmail_output_html.php:639\r\n  6. rcmail_output_html->_write() /var/webmail/roundcube/program/include/rcmail_output_html.php:526\r\n  7. rcmail_output_html->parse_with_globals() /var/webmail/roundcube/program/include/rcmail_output_html.php:1635\r\n  8. preg_replace_callback() /var/webmail/roundcube/program/include/rcmail_output_html.php:776\r\n```\r\n\r\nI have also tested with version 1.1.6, and here it works (but the page loads very slowly). \r\n\r\nI assume that the error is caused by the list of files and folders being too long (for historic reasons, our IMAP server is set up with the user home directoriy as root, instead of the mail/ directory). However, if version 1.1.6 can handle it, I think newer versions should be able to handle it as well."},"comment":{"url":"https://api.github.com/repos/roundcube/roundcubemail/issues/comments/260108021","html_url":"https://github.com/roundcube/roundcubemail/issues/5510#issuecomment-260108021","issue_url":"https://api.github.com/repos/roundcube/roundcubemail/issues/5510","id":260108021,"user":{"login":"alecpl","id":546788,"avatar_url":"https://avatars.githubusercontent.com/u/546788?v=3","gravatar_id":"","url":"https://api.github.com/users/alecpl","html_url":"https://github.com/alecpl","followers_url":"https://api.github.com/users/alecpl/followers","following_url":"https://api.github.com/users/alecpl/following{/other_user}","gists_url":"https://api.github.com/users/alecpl/gists{/gist_id}","starred_url":"https://api.github.com/users/alecpl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecpl/subscriptions","organizations_url":"https://api.github.com/users/alecpl/orgs","repos_url":"https://api.github.com/users/alecpl/repos","events_url":"https://api.github.com/users/alecpl/events{/privacy}","received_events_url":"https://api.github.com/users/alecpl/received_events","type":"User","site_admin":false},"created_at":"2016-11-12T07:50:31Z","updated_at":"2016-11-12T07:50:31Z","body":"If your server returns files on folders list it is just wrong. See #5073."}}
{"actor":{"display_login":"alecpl"}}