プロジェクト

全般

プロフィール

Vote #72505

完了

Can't create a user from ldap by on-the-fly on the redmine server using URI prefix

Admin Redmine さんが4年以上前に追加. 4年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Accounts / authentication_7
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
7
version_id:
57
issue_org_id:
11850
author_id:
13215
assigned_to_id:
6508
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
47
ステータス-->[Closed]

説明

Hello, I've upgraded my redmine server from 1.3.X to 2.1.0, and encounted weird problem.

  • Condition
    ** Redmine 2.1.0 with URI prefix (ex : http://my.server/redmine )
    ** On-the-fly creation enabled LDAP auth

  • Problem
    ** Existing users can login with their ldap account.
    ** But when new users try to create a new one, redmine displays '404 not found' error.
    ** Redmine log

    Processing by AccountController#login as HTML
    Parameters: {"back_url"=>"http://[MyServerDomain]/redmine/projects/[MyProject]/wiki", "login"=>"로그인 »", "utf8"=>"✓", "password"=>"[FILTERED]", "username"=>"[new_user_id]", "authenticity_token"=>"[Token]"}
    Current user: anonymous
    Missing template, responding with 404
    Rendered common/error.html.erb within layouts/base (0.1ms)
    Completed 404 Not Found in 62ms (Views: 4.6ms | ActiveRecord: 0.0ms)
    
  • Work around
    ** modify app/controllers/account_controller.rb

    
    def onthefly_creation_failed(user, auth_source_options = { })
    @user = user
    session[:auth_source_registration] = auth_source_options unless auth_source_options.empty?
    #render register_path <-- register_path's value : "/redmine/account/register"
    render "/account/register" # remove the prefix
    end
    
  • Server info
    ** OS : ubuntu 12.04 / apache 2.2.22

    
    RackBaseURI /redmine
    RackEnv production
    PassengerResolveSymlinksInDocumentRoot on
    
    

    ** Mysql 5.5.24
    ** ruby 1.8.7
    ** rails 3.2.8


journals

Looks like a regression introduced with r9940.

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Etienne Massip wrote:
> Looks like a regression introduced with r9940.

Very true, I went too fast and replaced a render argument with a route. The test was still passing because #render accepts a string.
--------------------------------------------------------------------------------
Merged into 2.1-stable.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0