Closed BenKluwe closed 3 years ago
When the CSRF token is renewed the server responds again but the page stays on 404 - poll not found.
I guess, you refer to this:
If /apps/polls/vote/{pollId}
is answered with 404, the page gets relocated to /apps/polls/not-found
. You have to go back to the votes page.
Anyway, the behavior will change in 1.8. We will start a long poll and wait for updates. When the request fails, while a poll page is displayed, there will be 5 retries to reestablish the connection with a 30 second wait between each retry.
Yes, that is the page that I meant. The new approach is definitely a better, I was thrown into the not-found link a few times due to single request timeouts to the server.
With regard to the CSRF token, I believe it is caused by the manipulation of the php.ini in the user directory, which may be specific to this instance. It runs on a 1and1 server so I don't have direct access to apache and php and when I added my own php.ini in the nextcloud directory values such as memory_limit=xyz or the opcache (tried both options separately and checked permissions on folder for opcache), the invalid CSRF token responses appeared again.
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.
What is going wrong?
Describe the bug A Nextcloud server instance responds with 412 (precodition failed) CSRF check failed after a random number of requests. When the CSRF token is renewed the server responds again but the page stays on 404 - poll not found.
To Reproduce Steps to reproduce the behavior:
Expected behavior The poll page continually polls a Nextcloud server instance for updates without errors.
Actual behavior The poll becomes unavailable (404 - poll not found) after some time (or immediately) and stays that way even when the CSRF token is renewed.
Screenshots
after some time:
Information about your polls installation
Polls version? (see apps page) 1.7.5
Fresh installation or update from a prior version (from which one)? update from previous version (I don't know which version was previous)
How did you install this version?(Appstore or describe installation) Appstore
Information about your Instance of Nextcloud
Nextcloud version: (see Nextcloud admin page) 20.0.8 reported (20.0.8.1 in config)
List of activated apps:
Nextcloud configuration:
Server configuration
Database: mariadb 5.7.32-log
PHP version: 7.3.27
Are you using an external user-backend, if yes which one: no
Client configuration
Device: Desktop (Debian 10)
Browser: Firefox 78.8.0esr (64 bit)
Logs
Nextcloud log (data/nextcloud.log)
taken from when log level was 0:
Browser log
see screenshots
Comment
Attempted fix by adding
'overwriteprotocol' => 'https', 'forcessl' => true,
to config.php as suggested in https://github.com/nextcloud/ios/issues/768I don't know whether or not this is caused by the polls app or the nextcloud server (hence I also don't know if this is the correct repository to post in) because I have observed it frequently in the polls app and sometimes in the files and spreed (talk) app. This issue has been observed on this server instance throughout upgrades from at least Nextcloud 18.
In either case, after the CSRF token is renewed the polls app should go back to the poll that was loaded previously.