This project is archived and is in readonly mode.

#1234 ✓invalid
Asang Dani

image fails to display when image filename contains '+' sign

Reported by Asang Dani | October 19th, 2008 @ 01:15 PM | in 2.x

I am using rails 2.1 on Windows XP SP2. My application has couple of images in public/images folder. When the image file contains name like 'LetUsC++.jpg' it fails to render with following error

Processing ApplicationController#index (for 127.0.0.1 at 2008-10-19 17:28:17) [G ET] Session ID: BAh7BzoMY3NyZl9pZCIlYzJmOTdlMGY3ZjlmYzU4YmI3ZjM3NGFiNTUyZjEx YzIiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhh c2h7AAY6CkB1c2VkewA=--2d71a58f6ef184491e746e6a119bb6a281af9d16 Parameters: {"1224141909"=>nil}

ActionController::RoutingError (No route matches "/images/LetUsC++.jpg" with {:method=>:get}):

c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/routing/recognition_optimisation.rb:67:in `recognize_path'

....

I have tried to debug the issue to no avail. I have tried to load the URL directly with:

http://localhost:3000/images/Let...

and still get the same error. Any ideas?

Regards, Asang Dani

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages