[Bug 211991] www/gitlab: Error: undefined method `user_omniauth_authorize_path'

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Aug 19 09:54:12 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211991

            Bug ID: 211991
           Summary: www/gitlab: Error: undefined method
                    `user_omniauth_authorize_path'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: tz at freebsd.org
          Reporter: vanav at vanav.org
          Assignee: tz at freebsd.org
             Flags: maintainer-feedback?(tz at freebsd.org)

After upgrade to v8.9.6 got fatal error:

Started GET "/users/sign_in" for 213.239.198.179 at 2016-08-19 12:49:45 +0300
Processing by SessionsController#new as */*
Completed 500 Internal Server Error in 39ms (ActiveRecord: 0.4ms)

ActionView::Template::Error (undefined method `user_omniauth_authorize_path'
for #<#<Class:0x0000080d606f20>:0x0000081d16b4b0>):
    1: = form_tag(user_omniauth_authorize_path("crowd"), id: 'new_crowd_user' )
do
    2:   = text_field_tag :username, nil, {class: "form-control top",
placeholder: "Username", autofocus: "autofocus"}
    3:   = password_field_tag :password, nil, {class: "form-control bottom",
placeholder: "Password"}
    4:   - if devise_mapping.rememberable?
  app/views/devise/sessions/_new_crowd.html.haml:1:in
`_app_views_devise_sessions__new_crowd_html_haml__3245918192574132824_17258311080'
  app/views/devise/shared/_signin_box.html.haml:23:in
`_app_views_devise_shared__signin_box_html_haml___1717938267566868456_17293018760'
  app/views/devise/sessions/new.html.haml:4:in
`_app_views_devise_sessions_new_html_haml___1076747443708209319_17292267440'
  app/controllers/sessions_controller.rb:24:in `new'
  lib/gitlab/middleware/go.rb:16:in `call'

I think it may be related with rubygem-omniauth-* versions.

# pkg info|grep -i omni
rubygem-gitlab_omniauth-ldap-1.2.1 LDAP strategy for OmniAuth
rubygem-omniauth-1.3.1         Generalized Rack framework for multiple-provider
authentication
rubygem-omniauth-auth0-1.4.1   Authentication broker supporting different
identity providers
rubygem-omniauth-azure-oauth2-0.0.6 Azure OAuth2 Strategy for OmniAuth
rubygem-omniauth-bitbucket-0.0.2 OmniAuth strategy for Bitbucket
rubygem-omniauth-cas3-1.1.3    CAS 3.0 Strategy for OmniAuth
rubygem-omniauth-facebook-3.0.0 Facebook OAuth2 Strategy for OmniAuth
rubygem-omniauth-github-1.1.2  Official OmniAuth strategy for GitHub
rubygem-omniauth-gitlab-1.0.2  OmniAuth strategy for GitLab
rubygem-omniauth-google-oauth2-0.4.1 Google OAuth2 strategy for OmniAuth 1.x
rubygem-omniauth-oauth-1.1.0   Generic OAuth strategy for OmniAuth
rubygem-omniauth-oauth2-1.4.0  Abstract OAuth2 strategy for OmniAuth
rubygem-omniauth-saml-1.6.0    OmniAuth strategy for SAML
rubygem-omniauth-shibboleth-1.2.1 OmniAuth Shibboleth strategies for OmniAuth
1.x
rubygem-omniauth-twitter-1.2.1 OmniAuth strategy for Twitter
rubygem-omniauth_crowd-2.2.3   OmniAuth provider for Atlassian Crowds REST API

BTW, don't you think that current version binding is broken? rubygem-* ports
can update in any time, and it breaks gitlab. In practice, gitlab breaks after
every update of rubygem-* ports. I suggest to move to bundler for stability.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list