#396 new
Paolo "Nusco" Perrotta

Another bug with argument lists

Reported by Paolo "Nusco" Perrotta | September 23rd, 2010 @ 09:08 AM

Webrat will fail with some adapters (for example Mechanize) when the HTTP request contains an argument with an empty string value. This commonly happens when the user submits a form with a blank text area.

Root cause: In Webrat::Form.query_string_to_params(query_string), the last branch of the case statement is broken. If the query string is an empty string (for example: "my_argument="), it will parse it wrong ({"my_argument" => "my_argument"}).

[Update: this is the more general case of #390]

Comments and changes to this ticket

New-ticket Create new ticket

Create your profile

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

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Pages