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

»CSRF check failed« when writing new email on tab which was open for longer #417

Closed
jancborchardt opened this issue Jul 28, 2017 · 2 comments

Comments

@jancborchardt
Copy link
Member

jancborchardt commented Jul 28, 2017

Encountered this on our cloud.nc installation with the Mail app:

I had a tab open since yesterday. Just opened from suspend and started to write a new mail in the old tab I had open with the Mail app. On sending, I got a showNotification with »CSRF check failed« and the following console log:

POST 
XHR 
https://cloud.[…].com/apps/mail/accounts/22/draft [HTTP/1.1 412 Precondition failed 200ms]
[message] "send" Array [ Object, Object, Object ] mail.min.js:148:14867
[ui] "document:click" Array [ Object ] mail.min.js:148:14867
[ui] "document:click" Array [ Object ] mail.min.js:148:14867

We should make sure that even if you keep tabs open (what people tend to do, especially when they use the app a lot), the app silently reconnects after wake from suspend.
(Related to similar issue in the notes app nextcloud/notes#122)

@nextcloud/mail @nextcloud/javascript

@ChristophWurst
Copy link
Member

Dup of #258

@lock
Copy link

lock bot commented Nov 20, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and questions.

@lock lock bot locked and limited conversation to collaborators Nov 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants