mirror of
https://github.com/nextcloud/twofactor_gateway.git
synced 2026-04-25 17:15:53 +03:00
[GH-ISSUE #426] PHP 8 Support #95
Labels
No labels
0. to triage
1. to develop
3. to review
blocked
bug
discussion
duplicate
enhancement
enhancement
gateway:signal
gateway:signal
gateway:signal
gateway:sms
gateway:telegram
hacktoberfest
help wanted
invalid
needs info
php
pull-request
question
technical debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/twofactor_gateway-nextcloud#95
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sunjam on GitHub (Feb 26, 2021).
Original GitHub issue: https://github.com/nextcloud/twofactor_gateway/issues/426
Related to #425 php8 support was introduced in v21. Thanks
@ChristophWurst commented on GitHub (Mar 1, 2021):
I don't have time to maintain this app right now.
@nursoda commented on GitHub (Mar 20, 2021):
Wow, that had quite severe consequences for me after migrating to NC21 and PHP8: I use 'enforce 2FA'.
One of my users had enabled SMS (via gateway) only (not even backup codes). He could not log on even as I put him in a group that was excluded from enforcement: He only gets a warning that a configured 2FA provider isn't available and a button to set up 2FA – but pressing it results in the same dialog. (1st/user deadlock situation)
So I tried to clean the 2FA associations using OCC:
Obviously without result, probably because the app is not working due to NC21/PHP8 incompatibilities. (2nd/admin deadlock situation)
So I tried to disable twofactor_gateway, but occ yielded 'no such provider id'. In the end, I just deleted the app folder but even that didn't solve the above user issue.
Well, yes, I could delete a line in the database, but I try to avoid that at all cost to keep my DB consistent.
In my opinion, this is a general design issue since it happens that apps aren't maintained temporarily or permanently (see Christoph's message above). In such case, Nextcloud should provide proper means to delete associations independent of the availability of apps that were available in a former NC version.
Question: Does this belong here or should a bug be opened somewhere else?
@ChristophWurst commented on GitHub (Mar 22, 2021):
I'm not sure I can follow. Yes, this app is mostly community driven, hence at times we can do more, other times less maintenance. The app isn't released for Nextcloud 21 nor php8, so we also do not overpromise. Ref https://apps.nextcloud.com/apps/twofactor_gateway.
@nursoda commented on GitHub (Mar 22, 2021):
@ChristophWurst Sorry, no offense intended. I just think that the overall system NC (not the app) should provide means to mitigate culprits experienced from "upgrades + no longer available apps". This is a general requirement to long-term system stability.
@ChristophWurst commented on GitHub (Mar 22, 2021):
None taken :)
We didn't intentionally abandon the app. We still want to make it available to people. But at this point there are no volunteers to drive the project, hence it stalled.
@boppy commented on GitHub (Apr 7, 2021):
Can (at least) one of you verify my PR in #438 is working? I tested it with a fresh installation but it would be nice, if you could verify...
@jandr commented on GitHub (May 19, 2021):
I downloaded the contents of your PR and replaced my twofactor_gateway folder within the
appsdirectory. I re-enabled the app in my settings, and when I tried logging in, the configured options were available (e.g. Telegram). However, when attempting to use the gateway I was faced with the following error in the URL/login/challenge/gateway_telegram:I don't see anything relevant in my server logs, though, to identify what the error or problem could be, as the only log line I see is:
Nothing else shows up on PHP's log or in Apache's error.log.
Probably just replacing the old app with the new files might not be enough, so any pointers on how to update this in a live installation will help test the app there so we can provide feedback on the PR.
@boppy commented on GitHub (May 19, 2021):
See my Comment here. You might want to try with a fresh app installation by:
@jandr commented on GitHub (May 19, 2021):
I have checked this on NC21 with PHP8.0, on an installation that was running version 0.17 of twofactor_gateway, and with the instructions stated, I can confirm it worked for me flawlessly.
@nursoda commented on GitHub (May 21, 2021):
I confirm that boppys modified app works fine for SMS on PHP8 (Arch NGINX PHP-FPM MariaDB) with NC 21.0.2.
However, the PHP 7.2 dependency needed to be removed from composer.json (
composer config --unset platform) and there are warnings on composer install (and even more on composer update), and the instructions above might improve usingcomposer install --no-dev. They also omit how to clean out dev files after building. I usedrm -rf composer.* krankerl.toml package* screenshots tests node_modules.