Vote #72505
完了Can't create a user from ldap by on-the-fly on the redmine server using URI prefix
0%
説明
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 authProblem
** 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 logProcessing 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.rbdef 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 endServer info
** OS : ubuntu 12.04 / apache 2.2.22RackBaseURI /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.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Admin Redmine さんが4年以上前に更新
- カテゴリ を Accounts / authentication_7 にセット
- 対象バージョン を 2.1.1_57 にセット