Message5465

Author amak
Recipients amak
Date 2010-01-29.16:40:40
SpamBayes Score 2.2192945e-09
Marked as misclassified No
Message-id <1264783242.11.0.196606388077.issue1549@psf.upfronthosting.co.za>
In-reply-to
Content
Java.io.InputStreams are binary streams, containing bytes. They are used, among other things, for delivering POST data to java servlets, through a ServletInputStream. As such, there should be no line-ending translation on such InputStreams, since they are byte oriented.

But when wrapping an InputStream with a PyFile, through the use of org.python.core.util.FileUtil.wrap(inputstream), line-ending translation takes place. See attached java code which illustrates the issue.

This may only be happening on Windows, where "\r\n" is the standard line ending.

This issue appears to affecting processing of servlet POST data, which by web standards is separated with "\r\n". Again, this may only be happening on Windows.
History
Date User Action Args
2010-01-29 16:40:42amaksetrecipients: + amak
2010-01-29 16:40:42amaksetmessageid: <1264783242.11.0.196606388077.issue1549@psf.upfronthosting.co.za>
2010-01-29 16:40:41amaklinkissue1549 messages
2010-01-29 16:40:40amakcreate