Bugs: Browse | Submit New | Admin

[#28032] Glassfish gem strips quotes surrounding post parameters

Date:
2010-03-30 13:01
Priority:
3
Submitted By:
Albert Ramstedt (soma)
Assigned To:
Vivek Pandey (vivekp)
Category:
gem
State:
Open
Target Release:
 
Summary:
Glassfish gem strips quotes surrounding post parameters

Detailed description
So, if I submit a post parameters with quotes, like: "A nice quoted string", the rails process only sees A
nice quoted string.

It alters the post parameters, and it is probably just some escaping gone bad. But it is clearly wrong behavior, and
a dealbreaker for us.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2010-05-02 21:43
Sender: Albert Ramstedt

okay, I'll add an example asap.

what version of rails is your radiant app on?

Thing is, we only experience this bug in gfgem, on trinidad,
mongrel, webrick.. all send quotes fine.
Date: 2010-05-02 19:36
Sender: Hirotsugu Asari

A minimal example would be nice. I tried reproducing this myself
with Radiant 0.8.2 and glassfish gem 1.0.2, but it is working
correctly for me.

In the log, I see:

Processing Admin::PagesController#update (for 0:0:0:0:0:0:0:1%0
at 2010-05-02 14:31:40) [PUT]
  Parameters: {"_method"=>"put",
"authenticity_token"=>"jGfv/T52rJGKFh0OjWfOAJ8m
5Gvk6Jxw7RYbmELAIZk=",
"page"=>{"lock_version"=>"0",
"parent_id"=>"1",
"title"=>"\"About\"",
"slug"=>"about",
"breadcrumb"=>"\"About\"",
"description"=>"",
"keywords"=>"",
"parts_attributes"=>{"0"=>{"name&q
uot;=>"body", "id"=>"9",
"_delete"=>"",
"filter_id"=>"",
"content"=>"This is the third post."}},
"layout_id"=>"",
"class_name"=>"",
"status_id"=>"100"},
"commit"=>"Save Changes",
"controller"=>"admin/pages",
"action"=>"update",
"id"=>"8"}
Redirected to http://localhost:3000/admin/pages
Completed in 85ms (DB: 6) | 302 Found
[http://localhost/admin/pages/8]

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item