You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2016/04/26 09:13:00 UTC
[Bug 59377] New: Missing POST parameter
https://bz.apache.org/bugzilla/show_bug.cgi?id=59377
Bug ID: 59377
Summary: Missing POST parameter
Product: Tomcat 6
Version: 6.0.44
Hardware: Other
OS: Linux
Status: NEW
Severity: critical
Priority: P2
Component: Catalina
Assignee: dev@tomcat.apache.org
Reporter: 275379004@qq.com
Our server hosted in CentOS, running tomcat 6.0.44, randomly we got problems
with parameter lost via POST.
In the fronted, it writes:
$.post(url, {
templateId: some integer, non-null value,
data: some base64 encoded string
}, function (result) {
...
});
And, the server side reads
String sTemplateId = controller.getParameter("templateId");
Most of the time, it runs OK. But randomly returns null, with a not slight
probability.
I search this problem over the internet, found it started ever since almost 12
year age, and yet I met it.
Here's some relative talks:
http://www.tek-tips.com/viewthread.cfm?qid=810751
http://stackoverflow.com/questions/13560023/request-parameters-are-dropped-in-tomcat
http://grokbase.com/t/tomcat/users/0933d46htg/tomcat-w-apr-data-lost-in-http-post-request
http://tomcat.10.x6.nabble.com/Missing-Request-Parameters-td2018269.html
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 59377] Missing POST parameter
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59377
--- Comment #1 from mgrigorov <mg...@apache.org> ---
Which JavaScript library do you use? $.post looks like jQuery but then all
request parameters should be in 'data'. 'templateId' is something random and
jQuery will just ignore it. I guess it works only in the cases when
'templateId' is also in the 'data'.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 59377] Missing POST parameter
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59377
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #5 from Mark Thomas <ma...@apache.org> ---
Bugzilla is not a support forum. This question belongs on the users' mailing
list.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 59377] Missing POST parameter
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59377
--- Comment #4 from Esmool <27...@qq.com> ---
(In reply to mgrigorov from comment #3)
> Can you create a mini application that reproduces the problem?
> This will help debugging it!
> Thanks!
OK, later, after work. Thank you~
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 59377] Missing POST parameter
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59377
--- Comment #2 from Esmool <27...@qq.com> ---
(In reply to mgrigorov from comment #1)
> Which JavaScript library do you use? $.post looks like jQuery but then all
> request parameters should be in 'data'. 'templateId' is something random and
> jQuery will just ignore it. I guess it works only in the cases when
> 'templateId' is also in the 'data'.
jQuery 1.11.1
$.post() is shorter wrap of $.ajax(), only $.ajax() need parameters put in
field 'data'. The formal rule of $.post() looks like
$.post(url, queryParams, callback, resutsDataType);
the 'data' field in my case is only a customized post parameter wish to send,
no other particular syntax meaning.
It worked fine most of the time, so I believe this is not the key point.
BTW, I noticed that when the server resulted in parameter lost, the client side
will appear in pending(waiting response from server) for a longer time then
normal. In my case, normal time is about 1 second, and 10+ seconds if it fails.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 59377] Missing POST parameter
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59377
--- Comment #3 from mgrigorov <mg...@apache.org> ---
Can you create a mini application that reproduces the problem?
This will help debugging it!
Thanks!
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org