Project

General

Profile

Actions

Bug #20331

open

Trying to access Administer -> Settings menu when :login: is set to false causes error

Added by Callum Scott almost 7 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Authentication
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When accessing the settings menu and having :login: set to false in the settings.yaml the user gets the following error:

Oops, we're sorry but something went wrong undefined method `test_mail_user_url' for #<#<Class:0x0000000c491c20>:0x0000000c4b56e8>

I've attached a full stack trace for completeness.

The issue appears at first glance to be due to the Anon admin not having an email set

id | login | firstname | lastname | mail | admin | last_login_on | auth_source_id | created_at | updated_at | password_hash | password_salt | locale | avatar_hash | default_organization_id | default_location_id | lower_login | mail_enabled | timezone | description
----+-------------------+-----------+----------+-----------------+-------+---------------+----------------+----------------------------+----------------------------+------------------------------------------+------------------------------------------+--------+-------------+-------------------------+---------------------+-------------------+--------------+----------+-------------
1 | foreman_admin | Anonymous | Admin | | t | | 2 | 2017-07-18 12:32:58.723954 | 2017-07-18 12:32:58.723954 | | | | | | | foreman_admin | t | |
2 | foreman_api_admin | API | Admin | | t | | 2 | 2017-07-18 12:32:58.781433 | 2017-07-18 12:32:58.781433 | | | | | | | foreman_api_admin | t | |
3 | admin | Admin | User | | t | | 1 | 2017-07-18 12:32:58.826554 | 2017-07-18 12:32:58.826554 | 78ab2fb675f4884dbbbb0243514b4308c0c863d5f | d574ca25190a6503d6e2dd1c2ac810ed4a359dee | | | | | admin | t | |

This either needs to be set, or a more sensible message given to the user to advise that :login: should be set to true.


Files

production.log production.log 43 KB Callum Scott, 07/18/2017 10:48 AM
Actions #1

Updated by Marek Hulán almost 7 years ago

  • Category set to Authentication
Actions

Also available in: Atom PDF