# Mongrel Web Server 0.3.12.2 -- Iron Mongrel (Parser Fix)

**URL:** <https://www.ruby-forum.com/t/mongrel-web-server-0-3-12-2-iron-mongrel-parser-fix/93554>\
**Category:** Ruby\
**Created:** [April 4, 2006, 7:11pm UTC](https://www.ruby-forum.com/t/mongrel-web-server-0-3-12-2-iron-mongrel-parser-fix/93554 "2006-04-04T19:11:14Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [April 4, 2006, 7:11pm UTC](https://www.ruby-forum.com/t/mongrel-web-server-0-3-12-2-iron-mongrel-parser-fix/93554/1 "2006-04-04T19:11:14Z")

</div>

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

> **[Zed A. shaw](https://zedshaw.com/)**
>
> Personal essays and writings by Zed A. Shaw.

[http://mongrel.rubyforge.org/](http://mongrel.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [April 4, 2006, 7:41pm UTC](https://www.ruby-forum.com/t/mongrel-web-server-0-3-12-2-iron-mongrel-parser-fix/93554/2 "2006-04-04T19:41:43Z")

</div>

Zed S. wrote:

> consistently.
> 
> You can upgrade using:
> 
> gem upgrade

Won’t that upgrade ALL of the installed gems?

–  
James B.

?Design depends largely on constraints.?  
? Charles Eames

---

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [April 4, 2006, 7:45pm UTC](https://www.ruby-forum.com/t/mongrel-web-server-0-3-12-2-iron-mongrel-parser-fix/93554/3 "2006-04-04T19:45:21Z")

</div>

James B. wrote:

> Zed S. wrote:
> 
> > consistently.
> > 
> > You can upgrade using:
> > 
> > gem upgrade
> 
> 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

–  
– Jim W.

---

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [April 4, 2006, 8:50pm UTC](https://www.ruby-forum.com/t/mongrel-web-server-0-3-12-2-iron-mongrel-parser-fix/93554/4 "2006-04-04T20:50:23Z")

</div>

James B. wrote:

> Jim W. wrote:
> 
> > > Won’t that upgrade ALL of the installed gems?
> 
> 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.

–  
– Jim W.

---

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [April 4, 2006, 8:36pm UTC](https://www.ruby-forum.com/t/mongrel-web-server-0-3-12-2-iron-mongrel-parser-fix/93554/5 "2006-04-04T20:36:59Z")

</div>

Jim W. wrote:

> > Won’t that upgrade ALL of the installed gems?

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 B.

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

---

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [April 4, 2006, 8:55pm UTC](https://www.ruby-forum.com/t/mongrel-web-server-0-3-12-2-iron-mongrel-parser-fix/93554/6 "2006-04-04T20:55:17Z")

</div>

> 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’  
Local gem file not found: mongrel\*.gem  
Attempting remote installation of ‘mongrel’  
Updating Gem source index for: [http://gems.rubyforge.org](http://gems.rubyforge.org)  
Select which gem to install for your platform (powerpc-darwin8.0)

1. mongrel 0.3.12.2 (ruby)
2. mongrel 0.3.12.2 (mswin32)
3. mongrel 0.3.12.1 (mswin32)
4. mongrel 0.3.12.1 (ruby)
5. mongrel 0.3.12 (ruby)
6. mongrel 0.3.12 (mswin32)
7. mongrel 0.3.11 (ruby)
8. mongrel 0.3.11 (mswin32)
9. mongrel 0.3.10.1 (ruby)
10. mongrel 0.3.10 (ruby)
11. mongrel 0.3.9 (ruby)
12. mongrel 0.3.8 (mswin32)
13. mongrel 0.3.8 (ruby)
14. mongrel 0.3.7.1 (mswin32)
15. mongrel 0.3.7.1 (ruby)
16. mongrel 0.3.7 (ruby)
17. mongrel 0.3.6 (mswin32)
18. mongrel 0.3.6 (ruby)
19. mongrel 0.3.5 (ruby)
20. mongrel 0.3.5 (mswin32)
21. mongrel 0.3.4 (ruby)
22. mongrel 0.3.4 (mswin32)
23. mongrel 0.3.3 (ruby)
24. mongrel 0.3.2 (ruby)
25. mongrel 0.3.1 (ruby)
26. mongrel 0.3 (ruby)
27. mongrel 0.2.2 (ruby)
28. mongrel 0.2.1 (ruby)
29. mongrel 0.2.0 (ruby)
30. Cancel installation

> 1  
> Install required dependency daemons? [Yn]  
> ERROR: While executing gem … (ArgumentError)  
> parse error on line 0, col 31: `!ruby/object:Gem::Specification ’

Jonathan

---

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [April 4, 2006, 10:03pm UTC](https://www.ruby-forum.com/t/mongrel-web-server-0-3-12-2-iron-mongrel-parser-fix/93554/7 "2006-04-04T22:03:47Z")

</div>

Jonathan W. wrote:

> > 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.

–  
– Jim W.

---

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [April 4, 2006, 11:08pm UTC](https://www.ruby-forum.com/t/mongrel-web-server-0-3-12-2-iron-mongrel-parser-fix/93554/8 "2006-04-04T23:08:03Z")

</div>

Jim W. wrote:

> 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

---

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [April 5, 2006, 8:34am UTC](https://www.ruby-forum.com/t/mongrel-web-server-0-3-12-2-iron-mongrel-parser-fix/93554/9 "2006-04-05T08:34:31Z")

</div>

Thanks folks, I was rushing to get that fix out since the parser was  
broken  
for people doing file uploads.

Zed A. Shaw

> **[Zed A. shaw](https://zedshaw.com/)**
>
> Personal essays and writings by Zed A. Shaw.

[http://mongrel.rubyforge.org/](http://mongrel.rubyforge.org/)

---

<div class="post-metadata">

**Author:** ![Zed\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/da6949/32.png) [@Zed\_S](https://www.ruby-forum.com/u/Zed_S)\
**Post date:** [April 4, 2006, 11:17pm UTC](https://www.ruby-forum.com/t/mongrel-web-server-0-3-12-2-iron-mongrel-parser-fix/93554/10 "2006-04-04T23:17:24Z")

</div>

Jonathan W. wrote:

> Jim W. wrote:
> 
> > 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.

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

–  
– Jim W.
