Project

General

Profile

Actions

Defect #33925

closed

ArgumentError in lib/redmine/twofa/base.rb after updating a source file in development mode

Added by Go MAEDA over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Accounts / authentication
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

The attached patch fix-2fa-argument-error.patch fixes the error described below. The error occurs in development mode. No problem in production mode.

Steps to reproduce:

1. Run Redmine in development mode (bin/rails s)
2. Login with any user
3. Go to "My account" and click "Enable authenticator app"
4. Setup up two-factor authentication for the account
5. Update some source file of Redmine (e.g. run touch config/locales/en.yml)
6. 2. Go to "My account" and click "Generate backup codes"
7. You will see the following error entering your authentication code

ArgumentError in TwofaBackupCodesController#create
A copy of Redmine::Twofa::Base has been removed from the module tree but is still active!


Files

ArgumentError.png (129 KB) ArgumentError.png Go MAEDA, 2020-08-30 09:16
fix-2fa-argument-error.patch (1.26 KB) fix-2fa-argument-error.patch Go MAEDA, 2020-08-30 09:20

Related issues

Related to Redmine - Feature #1237: Add support for two-factor authenticationClosedGo MAEDA2008-05-14

Actions
Actions #1

Updated by Go MAEDA over 4 years ago

  • Related to Feature #1237: Add support for two-factor authentication added
Actions #2

Updated by Felix Schäfer over 4 years ago

Thank you for catching this bug. The patch looks good to me.

Actions #3

Updated by Go MAEDA over 4 years ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the fix as a part of #1237.

Thank you for checking the fix.

Actions

Also available in: Atom PDF