Skip to content

Commit

Permalink
Add a servlet which can cause forward loop
Browse files Browse the repository at this point in the history
  • Loading branch information
k-tamura committed Feb 20, 2017
1 parent f4bf6ba commit dc5f747
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package org.t246osslab.easybuggy.troubles;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@SuppressWarnings("serial")
@WebServlet(urlPatterns = { "/forwardloop" })
public class ForwardLoopServlet extends HttpServlet {

protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
RequestDispatcher dispatch = req.getRequestDispatcher( "/forwardloop");
dispatch.forward(req, res);
}
}
2 changes: 2 additions & 0 deletions src/main/resources/indexpage_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ function.name.jvm.crash.eav=JVM Crash
function.description.jvm.crash.eav=JVM crashes after clicking this link.
function.name.redirect.loop=Redirect Loop
function.description.redirect.loop=Redirect loop occurs after clicking this link.
function.name.forward.loop=Forward Loop
function.description.forward.loop=Forward loop occurs after clicking this link.
function.name.network.socket.leak=Network Socket Leak
function.description.network.socket.leak=Network socket leak occurs every time you load the page.
function.name.database.connection.leak=Database Connection Leak
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/indexpage_ja.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ function.name.jvm.crash.eav=JVM\u30af\u30e9\u30c3\u30b7\u30e5
function.description.jvm.crash.eav=\u3053\u306e\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068JVM\u304c\u30af\u30e9\u30c3\u30b7\u30e5\u3057\u307e\u3059\u3002
function.name.redirect.loop=\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u30eb\u30fc\u30d7
function.description.redirect.loop=\u3053\u306e\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u30eb\u30fc\u30d7\u304c\u767a\u751f\u3057\u307e\u3059\u3002
function.name.forward.loop=\u30d5\u30a9\u30ef\u30fc\u30c9\u30eb\u30fc\u30d7
function.description.forward.loop=\u3053\u306e\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u30d5\u30a9\u30ef\u30fc\u30c9\u30eb\u30fc\u30d7\u304c\u767a\u751f\u3057\u307e\u3059\u3002
function.name.network.socket.leak=\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bd\u30b1\u30c3\u30c8\u30ea\u30fc\u30af
function.description.network.socket.leak=\u30da\u30fc\u30b8\u3092\u30ed\u30fc\u30c9\u3059\u308b\u305f\u3073\u306b\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bd\u30b1\u30c3\u30c8\u30ea\u30fc\u30af\u304c\u767a\u751f\u3057\u307e\u3059\u3002
function.name.database.connection.leak=\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u30ea\u30fc\u30af
Expand Down
5 changes: 5 additions & 0 deletions src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
key="function.name.redirect.loop" /></a>:
<fmt:message key="function.description.redirect.loop" />
</p></li>
<li><p>
<a href="forwardloop" target="_blank"><fmt:message
key="function.name.forward.loop" /></a>:
<fmt:message key="function.description.forward.loop" />
</p></li>
<li><p>
<a href="jvmcrasheav" target="_blank"><fmt:message
key="function.name.jvm.crash.eav" /> </a>:
Expand Down

0 comments on commit dc5f747

Please sign in to comment.