-
Notifications
You must be signed in to change notification settings - Fork 260
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
Mail 0.7.7 doesn't open textmails anymore #697
Comments
Do you know which version had been installed before? |
Sorry, im think the 0.7.6, but im not sure. It was an automatic update notice from Nextcloudsytem. |
How can i downgrade the mail app? If i delete the mail folder and install the older version then the system install every the new 0.7.7 with the issue. |
Downgrades are not supported, sorry. Please enable debug mode and post your Thanks. |
Also please check out the network tab on your browser's console. Would be interesting if there's a HTTP 500 status code on one of the requests. If so, please take a screenshot of that. |
Btw, nice avatar! :) |
nextcloud.log :
{"reqId":"qLiKSAV1IBOcxPzVwS2L","level":3,"time":"2018-01-09T18:56:10+00:00","remoteAddr":"151.62.106.244","user":"admin","app":"index","method":"GET","url":"\/cloud\/index.php\/apps\/mail\/api\/avatars\/url\/root%40cloud.dtdns.net","message":"Exception: {\"Exception\":\"OCP\\\\AppFramework\\\\QueryException\",\"Message\":\"Could not resolve appName! Class appName does not exist\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(117): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->resolve('appName')\\n#1 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/ServerContainer.php(132): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('appName')\\n#2 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(66): OC\\\\ServerContainer->query('appName')\\n#3 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(96): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->buildClass(Object(ReflectionClass))\\n#4 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(117): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->resolve('OCA\\\\\\\\Mail\\\\\\\\Contro...')\\n#5 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/ServerContainer.php(132): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('OCA\\\\\\\\Mail\\\\\\\\Contro...')\\n#6 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/DependencyInjection\\\/DIContainer.php(416): OC\\\\ServerContainer->query('OCA\\\\\\\\Mail\\\\\\\\Contro...')\\n#7 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(101): OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer->query('OCA\\\\\\\\Mail\\\\\\\\Contro...')\\n#8 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main('AvatarsControll...', 'url', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#9 [internal function]: OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#10 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/Route\\\/Router.php(299): call_user_func(Object(OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler), Array)\\n#11 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/base.php(1004): OC\\\\Route\\\\Router->match('\\\/apps\\\/mail\\\/api\\\/...')\\n#12 \\\/var\\\/www\\\/https\\\/cloud\\\/index.php(48): OC::handleRequest()\\n#13 {main}\",\"File\":\"\\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php\",\"Line\":102}","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko\/20100101 Firefox\/57.0","version":"12.0.4.3"}
{"reqId":"AR555HFxhbLzxj74KJ74","level":3,"time":"2018-01-09T18:56:10+00:00","remoteAddr":"151.62.106.244","user":"admin","app":"PHP","method":"GET","url":"\/cloud\/index.php\/apps\/mail\/api\/accounts\/11\/folders\/SU5CT1g%3D\/messages\/650","message":"Class 'Kwi\\UrlLinker' not found at \/var\/www\/https\/cloud\/apps\/mail\/lib\/Service\/Html.php#64","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko\/20100101 Firefox\/57.0","version":"12.0.4.3"}
{"reqId":"fkI5PoxC2hEyssUvRj3n","level":3,"time":"2018-01-09T18:56:10+00:00","remoteAddr":"151.62.106.244","user":"admin","app":"index","method":"GET","url":"\/cloud\/index.php\/apps\/mail\/api\/avatars\/url\/nospam%40gmx.at","message":"Exception: {\"Exception\":\"OCP\\\\AppFramework\\\\QueryException\",\"Message\":\"Could not resolve appName! Class appName does not exist\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(117): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->resolve('appName')\\n#1 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/ServerContainer.php(132): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('appName')\\n#2 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(66): OC\\\\ServerContainer->query('appName')\\n#3 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(96): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->buildClass(Object(ReflectionClass))\\n#4 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(117): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->resolve('OCA\\\\\\\\Mail\\\\\\\\Contro...')\\n#5 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/ServerContainer.php(132): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('OCA\\\\\\\\Mail\\\\\\\\Contro...')\\n#6 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/DependencyInjection\\\/DIContainer.php(416): OC\\\\ServerContainer->query('OCA\\\\\\\\Mail\\\\\\\\Contro...')\\n#7 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(101): OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer->query('OCA\\\\\\\\Mail\\\\\\\\Contro...')\\n#8 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main('AvatarsControll...', 'url', Object(OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer), Array)\\n#9 [internal function]: OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke(Array)\\n#10 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/Route\\\/Router.php(299): call_user_func(Object(OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler), Array)\\n#11 \\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/base.php(1004): OC\\\\Route\\\\Router->match('\\\/apps\\\/mail\\\/api\\\/...')\\n#12 \\\/var\\\/www\\\/https\\\/cloud\\\/index.php(48): OC::handleRequest()\\n#13 {main}\",\"File\":\"\\\/var\\\/www\\\/https\\\/cloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php\",\"Line\":102}","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko\/20100101 Firefox\/57.0","version":"12.0.4.3"}
|
horde_imap.log :
S: [LITERAL DATA: 21 bytes]
S: BINARY.SIZE[1] 21 BODY[1.MIME] {2311}
S: [LITERAL DATA: 2311 bytes]
S: )
S: 6 OK Fetch completed.
>> Command 6 took 0.04 seconds.
C: 7 LOGOUT
S: * BYE Logging out
S: 7 OK Logout completed.
>> Command 7 took 0.0027 seconds.
^[[B^C
root@vps414402:/var/www/https/cloud/data# tail -f horde_imap.log -n 10000
------------------------------
>> Tue, 09 Jan 2018 18:56:10 +0000
>> Connection to: imap://nospam.dtdns.net/
>> Server connection took 0.0022 seconds.
S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN AUTH=CRAM-MD5 AUTH=DIGEST-MD5] Dovecot ready.
C: 1 STARTTLS
S: 1 OK Begin TLS negotiation now.
>> Command 1 took 0.0002 seconds.
>> Successfully completed TLS negotiation.
C: 2 CAPABILITY
S: * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN AUTH=CRAM-MD5 AUTH=DIGEST-MD5
S: 2 OK Pre-login capabilities listed, post-login capabilities have more.
>> Command 2 took 0.0004 seconds.
C: 3 AUTHENTICATE PLAIN [INITIAL CLIENT RESPONSE (username: nospam@nospam.dtdns.net)]
S: 3 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE] Logged in
>> Command 3 took 0.0044 seconds.
C: 4 EXAMINE INBOX
S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
S: * OK [PERMANENTFLAGS ()] Read-only mailbox.
S: * 283 EXISTS
S: * 0 RECENT
S: * OK [UNSEEN 146] First unseen.
S: * OK [UIDVALIDITY 1501943333] UIDs valid
S: * OK [UIDNEXT 651] Predicted next UID
S: 4 OK [READ-ONLY] Examine completed (0.000 secs).
>> Command 4 took 0.001 seconds.
C: 5 UID FETCH 650 (ENVELOPE BODYSTRUCTURE FLAGS RFC822.SIZE INTERNALDATE BODY.PEEK[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY CONTENT-TYPE)])
S: * 283 FETCH (UID 650 FLAGS (\Seen) RFC822.SIZE 2332 INTERNALDATE "09-Jan-2018 18:43:53 +0100" ENVELOPE ("Tue, 9 Jan 2018 18:41:52 +0100" "testmail from gmx" (("nospam@gmx.at" NIL "nospam" "gmx.at")) (("nospam@gmx.at" NIL "nospam" "gmx.at")) (("nospam@gmx.at" NIL "nospam" "gmx.at")) (("nospam" NIL "nospam" "nospam.dtdns.net")) NIL NIL NIL "") BODYSTRUCTURE ("text" "plain" ("charset" "utf-8") NIL NIL "7bit" 21 2 NIL NIL ("en-US") NIL) BODY[HEADER.FIELDS (IMPORTANCE LIST-POST X-PRIORITY CONTENT-TYPE)] {43}
S: [LITERAL DATA: 43 bytes]
S: )
S: 5 OK Fetch completed.
>> Command 5 took 0.0044 seconds.
C: 6 UID FETCH 650 (BODY.PEEK[1] BINARY.SIZE[1] BODY.PEEK[1.MIME])
S: * 283 FETCH (UID 650 BODY[1] {21}
S: [LITERAL DATA: 21 bytes]
S: BINARY.SIZE[1] 21 BODY[1.MIME] {2311}
S: [LITERAL DATA: 2311 bytes]
S: )
S: 6 OK Fetch completed.
>> Command 6 took 0.04 seconds.
C: 7 LOGOUT
S: * BYE Logging out
S: 7 OK Logout completed.
>> Command 7 took 0.0027 seconds.
|
I have changed the email addresses to preserve spams |
How did you install the app? Did you use a git clone or a package from apps.nextcloud.com? |
This is a pretty bad one. The dependency injection container cannot resolve a class. Unfortunately, the stack trace does not tell us which class it failed to resolve. |
I deleted the contents of the mail folder and then copied the app mail 0.7.6 to the mail directory |
here the error in browser-console
Content Security Policy: Die Direktive 'frame-src' sollte nicht mehr verwendet werden. Bitte verwenden Sie stattdessen die Direktive 'child-src'.
JQMIGRATE: Migrate is installed, version 1.4.0
jquery-migrate.min.js:2:542
Source-Map-Fehler: request failed with status 404
Ressourcen-Adresse: https://xxx.dtdns.net/cloud/core/vendor/blueimp-md5/js/md5.min.js
Source-Map-Adresse: md5.min.js.map
[Weitere Informationen]
Source-Map-Fehler: request failed with status 404
Ressourcen-Adresse: https://xxx.dtdns.net/cloud/core/vendor/DOMPurify/dist/purify.min.js
Source-Map-Adresse: purify.min.js.map
[Weitere Informationen]
Starting Mail …
build.js:20:39680
initializing cache…
build.js:12:74177
Logging system initialised at Tue Jan 09 2018 20:15:52 GMT+0100 (CET)
Logger.ts:93:36
content page starting
Logger.ts:81:36
content page ready
Logger.ts:93:36
In browser content page script, received message from background script
Logger.ts:81:36
Logging system config updated at Tue Jan 09 2018 20:15:53 GMT+0100 (CET)
Logger.ts:93:36
error loading message
{…}
abort: function abort()
always: function always()
complete: function add()
done: function add()
error: function add()
fail: function add()
getAllResponseHeaders: function getAllResponseHeaders()
getResponseHeader: function getResponseHeader()
overrideMimeType: function overrideMimeType()
pipe: function a.Deferred/e.pipe()
progress: function add()
promise: function promise()
readyState: 4
responseText: ""
setRequestHeader: function setRequestHeader()
state: function state()
status: 500
statusCode: function statusCode()
statusText: "Internal Server Error"
success: function add()
then: function then()
__proto__: Object { … }
build.js:75:135646
error
https://xxx.dtdns.net/cloud/apps/mail/js/build/build.js:75:135646
j
jquery.js:3099:9
fireWith
jquery.js:3211:6
x
jquery.js:8266:4
b/<
jquery.js:8605:8
|
Where did you get the app from? |
An attempt to login via another user on the nextcloud now permit to preview the mail. But only the other user. The account admin can't preview mails .. |
Strange things :-| |
On the other account only the HTML mails can be viewed ! |
I confirm, HTML mails can be viewed on all accounts, text mails not . |
PHP Fatal error: Class 'Kwi\UrlLinker' not found in /var/www/https/cloud/apps/mail/lib/Service/Html.php on line 64 |
same here 7.6 worked, 7.7 can't only show html mail. Loading inbox takes ages. |
on th nightly build the issue aren't present 👍 |
Cool, as this also kicked me. |
Sorry for the stray reference. But I also do not see text emails, only HTML encoded ones after updating from 0.7.5 to 0.7.7 but can confirm that the nightly build fixes the issue. |
Now that is quite a surprise. 0.7.7 and the latest nightly on the app store effectively point to the very same archive: https://apps.nextcloud.com/apps/mail (just compare the URLs, they both point to https://github.com/nextcloud/mail/releases/download/v0.7.7/mail.tar.gz). |
I was not using the App store but downloaded and installed the tarball from the host mentioned in the developer docs. |
Thanks for that info. I'll compare the nightly build and the one on the app store. Maybe I've made an error during packaging the app. Sorry for the inconvenience meanwhile. I won't have time to look into this before Monday, but it'll definitely try to fix this ASAP. Although I know it's not a solution for many of you, but the app seems to work fine with Nextcloud 13, which is in RC right now. So if anybody is eager to try out the upcoming Nextcloud 13, you could upgrade to it meanwhile. |
Not true. Same problem here, cannot find Class 'Kwi\UrlLinker' while trying to open text-only mails. On Nextcloud 13b3. Installed via app store. Directory contents in (nextcloud)/apps/mail match those of https://github.com/nextcloud/mail/releases/download/v0.7.7/mail.tar.gz , save one .htaccess file. |
Nightly build makes no difference: in both cases I get the same error message:
|
@nickvergessen @rullzer I've made a suspicious observation. If I install composer deps with Have you ever seen anything like that? As a hotfix I'll change the packaging script and re-publish a release. But it would be great to know why it's failing without the |
For an yet unknown reason, composer suddenly fails to load the UrlLinker class if dependencies haven't been installed with the optimize flag. Ref #697 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
If someone could help me verify this new package works: mail.tar.gz - that would be great 😀 Will publish a release as soon as someone approves the hotfix. |
Works for me! :D Nextcloud 12.0.4. |
Matching your expectations, the mail.tar.gz you provided works in my test environment AS OPPOSED to the 7.7 version from the store. ED: NC 12.0.4 |
Also works for me. |
@ChristophWurst Thank you! It works for me too. |
Works here! |
You're awesome! Thanks to the quick feedback ❤️ |
Steps to reproduce
Mail app
**Mail app version: 0.7.7
Nextcloud version: 12.0.4
Debian Jessie
Apache/2.4.10 (Debian)
PHP Version: 5.6.33
mysql Version: 5.5.58
Useragent : Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
The text was updated successfully, but these errors were encountered: