ASF Bugzilla – Attachment 21716 Details for
Bug 44673
ServletInputStream still readable even when closed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Echo "OK" if the behaviour is correct, "KO" otherwise
InputBufferTest.java (text/plain), 816 bytes, created by
Damien Bonvillain
on 2008-03-25 15:32:18 UTC
(
hide
)
Description:
Echo "OK" if the behaviour is correct, "KO" otherwise
Filename:
MIME Type:
Creator:
Damien Bonvillain
Created:
2008-03-25 15:32:18 UTC
Size:
816 bytes
patch
obsolete
>package test; >import java.io.IOException; >import java.io.InputStream; > >import javax.servlet.ServletException; >import javax.servlet.http.HttpServlet; >import javax.servlet.http.HttpServletRequest; >import javax.servlet.http.HttpServletResponse; > > >public class InputBufferTest extends HttpServlet { > private static final long serialVersionUID = 2064982235235847287L; > > @Override > protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { > try { > InputStream is = request.getInputStream(); > is.read(); > is.close(); > is.read(); > response.getWriter().write("KO"); > } catch (IOException e) { > response.getWriter().write("OK"); > } > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 44673
: 21716