Rails 1.1.3: Security fix and minor fixes
Posted by David June 27, 2006 @ 08:07 PM
We’ve found and fixed a security issue with routing that could cause excess CPU usage in Rails processes when triggered by certain URLs. We strongly encourage anyone running 1.1.x to upgrade to the latest version. It’s fully backwards compatible and should serve as a small drop-in fix.
If you’re running the latest Edge Rails, though, there’s no need to update. We’ve rewritten the routes functionality on edge and the new version doesn’t have this problem.
To upgrade, you as always can just do: gem install rails --include-dependencies
Note: This release doesn’t include any of the new CRUD/resource-based features. All of the new features we’ve been working on over the last couple of months will become available in 1.2.0, which is scheduled for “soonish”. This 1.1.3 release is purely to address the security issue and another few minor fixes that were available on the STABLE branch as well.

What are the “certain URLs”?
What happened to DRY David?
You are repeating the same thing twice :)
It seems activesupport 1.3.1 is missing from the repository:
$ gem update -y
Upgrading installed gems… Attempting remote upgrade of actionmailer Attempting remote installation of ‘actionmailer’ ERROR: While executing gem … (Gem::GemNotFoundException) Could not find activesupport (= 1.3.1) in the repository
heh, yeah WET post here ;) Thanks for the security update.
no tag release for this?
Maybe he is going to refactor his post?
I’d like to know what the certain urls are as well.
Do we need to change the RAILS_GEM_VERSION value in environment.rb, or does that just mean the minimum gem version, so all apps will use 1.1.3?
“What happened to DRY David?”
What are you talking about?
Got the activesupport 1.3.1 error too. Looks like it’s on the server (http://gems.rubyforge.org/gems/activesupport-1.3.1.gem) but gem list—remote doesn’t pick it up.
$ gem install rails—include-dependencies—install-dir vendor Attempting local installation of ‘rails’ Local gem file not found: rails*.gem Attempting remote installation of ‘rails’ Updating Gem source index for: http://gems.rubyforge.org ERROR: While executing gem … (Gem::GemNotFoundException) Could not find activesupport (= 1.3.1) in the repository
Just download and install the gem manually from rubyforge.
gem install—local activesupport-1.3.1
It typically takes a while for the gems to propagate across servers. ;)
Pat: You need to update it.
joojoobeans:
The original post was repeated, as if he wrote it in one app and pasted it into the field to post, but pasted it twice.
So my comment is a bit off since he updated the post.
I get the error:
ERROR: While executing gem … (Errno::EACCES) Permission denied – /usr/local/lib/ruby/gems/1.8/cache/activerecord-1.14.3.gem
Can anybody provide more information on these new CRUD/resource-based features?
This update seems to have broken my application. Routing to controllers inside directories doesn’t work any longer.
e.g. /article/read/723 works fine /edit/article/edit/723 does not work.
Anyone knows what CRUD/resource-based is?
Same here, no routes to controllers inside directories.
We’ve found a few bugs, which have already been fixed in stable. Seems like we’ll be pushing out 1.1.4 today. Sorry about this, guys. Certainly looks a tad sloppy.
No worries, with the RAILS_GEM_VERSION option isn’t a problem switching froma a rails version to another!
Good work for the new rails version!
This update seems to have broken my application too, activerecord not work now, I use postgresql database and use postgres-pr driver,but I get the error: uninitialized constant PGconn ... when I visit http://localhost:3000
If you upgraded to RubyGems 0.9.0 you may be experiencing some gem update problems.
delete the source_cache file to resolve.
Darn I got bit by the “controllers inside directories” bug too. I knew I should have saved my frozen gems. :-) Looking forward to 1.1.4.
Is anyone else seeing the postgres “error: uninitialized constant PGconn … when I visit http://localhost:3000” issue? I am as well, but have no idea what the problem is