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

ArgumentError: 'import/{{oauth2_generic_name}}' is not a supported controller name. #2101

Closed
achretien opened this issue Mar 17, 2020 · 3 comments

Comments

@achretien
Copy link
Contributor

When an oAuth is configured (Azure in our case) the config file is wrongly generated.

There is no else case to remove the unused generic oauth part

@f-io
Copy link

f-io commented Mar 28, 2020

same here with google.

after upgrading from 12.7.7 to 12.7.8 gitlab will fail to start as long as the config contains google_oauth2 settings.

#OAUTH

OAUTH_ENABLED=true
OAUTH_ALLOW_SSO=google_oauth2
OAUTH_GOOGLE_API_KEY=xxxxxxxx.apps.googleusercontent.com
OAUTH_GOOGLE_APP_SECRET=xxxxx
OAUTH_GOOGLE_RESTRICT_DOMAIN=DOMAIN.com
OAUTH_BLOCK_AUTO_CREATED_USERS=false
OAUTH_AUTO_LINK_LDAP_USER=true

gitlab | ArgumentError: 'import/{{oauth2_generic_name}}' is not a supported controller name. This can lead to potential routing problems. See http://guides.rubyonrails.org/routing.html#specifying-a-controller-to-use

@achretien
Copy link
Contributor Author

@solidnerd before releasing 12.8 you should look at this issue there a missing else case and an extra line break in the template.

I can’t send a pull request on my phone but it is easily to correct before new releases

@solidnerd
Copy link
Collaborator

solidnerd commented Mar 28, 2020 via email

solidnerd added a commit to solidnerd/docker-gitlab that referenced this issue Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants