Project

General

Profile

Actions

Defect #11850

closed

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

Added by Hong Choi over 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Category:
Accounts / authentication
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

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

  • 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
      <Directory /var/www/redmine>
        RackBaseURI /redmine
        RackEnv production
        PassengerResolveSymlinksInDocumentRoot on
      </Directory>
      
    • Mysql 5.5.24
    • ruby 1.8.7
    • rails 3.2.8
Actions

Also available in: Atom PDF