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

Update base.rb #2

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

nicolasmetters
Copy link

Updating the required_attribute_mapping to add "admin".

Otherwise, attribute isn't retrieved and can't be used in 👍 plugins/redmine_saml/lib/redmine_saml/patches/user_patch.rb

Updating the required_attribute_mapping to add "admin".

Otherwise, attribute isn't retrieved and can't be used in 👍 plugins/redmine_saml/lib/redmine_saml/patches/user_patch.rb
Avoid error due to adding "admin" attribute to the requested list:

ActiveRecord::NotNullViolation (PG::NotNullViolation: ERROR:  null value in column "admin" of relation "users" violates not-null constraint
DETAIL:  Failing row contains (84, firstname.lastname, , firstname, lastname, null, 1, null, en, null, 2023-11-16 04:33:51.28808, 2023-11-16 04:33:51.28808, User, only_my_events, null, f, null, null, null, null, f, t).
):

plugins/redmine_saml/lib/redmine_saml/patches/user_patch.rb:28:in `find_or_create_from_omniauth'
Update SAML invalid ticket to suggest most frequent source of error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant