[ANN] Mongrel Web Server 0.3.12.2 -- Iron Mongrel (Parser Fix)

Z

Zed Shaw

Hello Everyone,

This is an ultra quick announce for a bug fix release to Mongrel. It
corrects a small change in the HTTP parser that causes an error when people
use multi-part forms in a certain way. The fix is literally 4 characters
changed in the parser specification.

Everyone should update to this release and let me know if their forms act
really weird. I've tested various upload types but some folks seem to be
doing original upload encodings. This parser should catch them
consistently.

You can upgrade using:

gem upgrade

Or using:

gem install mongrel

I just posted the gems so it might take a bit to get the fix.


Zed A. Shaw
http://www.zedshaw.com/
http://mongrel.rubyforge.org/
 
J

James Britt

Zed said:
Hello Everyone,
=20
This is an ultra quick announce for a bug fix release to Mongrel. It
corrects a small change in the HTTP parser that causes an error when pe= ople
use multi-part forms in a certain way. The fix is literally 4 characte= rs
changed in the parser specification.
=20
Everyone should update to this release and let me know if their forms a= ct
really weird. I've tested various upload types but some folks seem to = be
doing original upload encodings. This parser should catch them
consistently.
=20
You can upgrade using:
=20
gem upgrade

Won't that upgrade ALL of the installed gems?


--=20
James Britt

=93Design depends largely on constraints.=94
=97 Charles Eames
 
J

Jim Weirich

James said:
Won't that upgrade ALL of the installed gems?

No, it wont.


Actually, it won't do anything.

I'm sure it meant the 'update' command. Something like:

gem update mongrel
 
J

James Britt

Jim said:
No, it wont.


Actually, it won't do anything.

I'm sure it meant the 'update' command. Something like:

gem update mongrel

Ah. But 'update' all by itself still updates *all* gems, without
warning or prompting for confirmation.

(At least I think so; I just ran it, then ctrl-C'ed it, when it appeared
as if it was about to fetch updates for everything, which would make me
sad.)



--
James Britt

http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
http://www.30secondrule.com - Building Better Tools
 
J

Jim Weirich

James said:
Ah. But 'update' all by itself still updates *all* gems, without
warning or prompting for confirmation.

Yes, it will. I meant to say that too, but forgot.
 
J

Jim Weirich

Jonathan said:
I just posted the gems so it might take a bit to get the fix.

I do not know, if this is related to the deployment of the gems.

# gem install mongrel
Attempting local installation of 'mongrel' [...]
Install required dependency daemons? [Yn]
ERROR: While executing gem ... (ArgumentError)
parse error on line 0, col 31: `!ruby/object:Gem::Specification '

Hmmm ... my guess is that you are running Ruby 1.8.2 and the daemons gem
was generated on a Ruby 1.8.3 system. 1.8.3 omitted the "---" prefix on
yaml output which makes it incompatible with 1.8.2 systems. The Yaml in
Ruby 1.8.4 generates the '---' (to be compatible with 1.8.2) and will
accept yaml without the '---' (to be compatible with 1.8.3).

Confused yet?

Your course of action is to

(1) upgrade to Ruby 1.8.4
(2) talk the daemons author (or some other kind soul) to provide an
update

There is also a (3) option, which is try out the beta version of the
gems command (which patches 1.8.3 gems on the fly), but we just started
testing that and I'm not recommending it for general consumption yet.
 
J

Jonathan Weiss

Jim said:
Jonathan said:
I just posted the gems so it might take a bit to get the fix.
I do not know, if this is related to the deployment of the gems.

# gem install mongrel
Attempting local installation of 'mongrel' [...]
Install required dependency daemons? [Yn]
ERROR: While executing gem ... (ArgumentError)
parse error on line 0, col 31: `!ruby/object:Gem::Specification '

Hmmm ... my guess is that you are running Ruby 1.8.2 and the daemons gem
was generated on a Ruby 1.8.3 system.

You're right, I'm on 1.8.2 (on OS X) but I never had any problems with
daemons or older version of Mongrel with it.

I will update Ruby.

Thanks,
Jonathan
 
J

Jim Weirich

Jonathan said:
You're right, I'm on 1.8.2 (on OS X) but I never had any problems with
daemons or older version of Mongrel with it.

I will update Ruby.

Looks like daemons was just updated today. (Actually, my gemwatcher
tells me that almost 20 gems were updated just today. Wow, busy day!)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top