Defect #2700

TypeError (can't modify frozen string)

Added by Stefan Urbanek almost 9 years ago. Updated almost 9 years ago.

Status:ClosedStart date:2009-02-08
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:0.8.1
Resolution: Affected version:

Description

I am getting:

TypeError (can't modify frozen string):
    /app/controllers/settings_controller.rb:44:in `<<'
    /app/controllers/settings_controller.rb:44:in `edit'
    /app/controllers/settings_controller.rb:22:in `index'

when trying to access '/settings'.

I am running the application using Passenger with URI my_server/projects. In environment.rb I have set:

config.action_controller.relative_url_root = '/projects'

when I remove the line and run the Redmine application using scripts/server everything works just fine.

Associated revisions

Revision 2423
Added by Jean-Philippe Lang almost 9 years ago

Fixed: TypeError (can't modify frozen string) on settings view (#2700).

History

#1 Updated by Stefan Urbanek almost 9 years ago

Change line:

    @guessed_host_and_path = request.host_with_port

to:
    @guessed_host_and_path = ''
    @guessed_host_and_path += request.host_with_port

in settings_controller.rb around line 44.

#2 Updated by Jean-Philippe Lang almost 9 years ago

  • Status changed from New to Resolved
  • Target version set to 0.8.1
  • Affected version (unused) set to devel

This should be fixed by r2423.

#3 Updated by Jean-Philippe Lang almost 9 years ago

  • Status changed from Resolved to Closed

Merged in 0.8 branch in r2425.

Also available in: Atom PDF