Ticket #37 (new bug)

Opened 4 months ago

Infinite loop in Mongrel::Gems::require

Reported by: drbrain Assigned to: evanweaver
Priority: minor Milestone: 1.2
Component: Mongrel Keywords:
Cc:

Description

If the gem is loaded but the file inside it does not exist, mongrel enters an infinite loop between lines 9 and 13.

http://mongrel.rubyforge.org/browser/trunk/lib/mongrel/gems.rb?rev=894#L9 http://mongrel.rubyforge.org/browser/trunk/lib/mongrel/gems.rb?rev=894#L13

PS: The exception message is not checked (line 8) to see if the file the user attempted to load was the one that raised the exception. This makes debugging more difficult, the require should only be retried when it was the one that failed.