DO NOT REPLY [Bug 8339] - Request.getInputStream() has no data
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8339. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8339 Request.getInputStream() has no data [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||WORKSFORME --- Additional Comments From [EMAIL PROTECTED] 2002-04-23 08:39 --- I tested using a modified HelloWorldExample, with a doPost method and traces, using a request like: POST /examples/servlet/HelloWorldExample HTTP/1.1 Host: localhost:8080 Content-length: 10 Content-type: application/x-www-form-urlencoded 0123456789 I entered the query with a telnet. The HelloWorld servlet was able to correctly read the bytes sent, even with the incorrect content-type. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 8339] - Request.getInputStream() has no data
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8339. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8339 Request.getInputStream() has no data [EMAIL PROTECTED] changed: What|Removed |Added Severity|Major |Normal Component|Catalina|Connector:Coyote HTTP/1.1 --- Additional Comments From [EMAIL PROTECTED] 2002-04-22 11:11 --- You're doing the upload with a form encoding content type, which is incorrect here (you're uploading text/xml, and not parameters). Since you are not calling getParameters, the problem would be that the adapter would apparentl parse them anyway (I don't know why yet), which may be incorrect (at least, it should be a lazy evaluation). I'll check to see if there is a bug. Also, your byte reading algorithm is bad (do a loop to do that, and handle negative values). -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 8339] - Request.getInputStream() has no data
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8339. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8339 Request.getInputStream() has no data --- Additional Comments From [EMAIL PROTECTED] 2002-04-22 18:11 --- Absolutely right - stupidly I assumed XmlSerializer was setting the content type when obviously it can't. However I thought getParameter().. OR getReader()/getInputStream() were choices that the servlet could make even if form urlencoded? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 8339] - Request.getInputStream() has no data
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8339. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8339 Request.getInputStream() has no data --- Additional Comments From [EMAIL PROTECTED] 2002-04-22 18:35 --- Yes, as I implied in my comment, I think there's a bug (if you don't call getParameters, it shouldn't parse the parameters). You have a nice workaround in the meantime (set the right content-type, and it shouldn't parse the parameters). -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
DO NOT REPLY [Bug 8339] - Request.getInputStream() has no data
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8339. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8339 Request.getInputStream() has no data --- Additional Comments From [EMAIL PROTECTED] 2002-04-22 18:53 --- Thank you for speedy responses -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]