Skip to content

Commit

Permalink
Introduce Bootstrap and improve overall design
Browse files Browse the repository at this point in the history
  • Loading branch information
k-tamura committed Feb 14, 2017
1 parent 9e3eed8 commit 5ba814d
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ public static void createSimpleResponse(HttpServletResponse res, String htmlTitl
if (htmlTitle != null) {
writer.write("<TITLE>" + htmlTitle + "</TITLE>");
}
writer.write("<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\" integrity=\"sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u\" crossorigin=\"anonymous\">");
writer.write("<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css\" integrity=\"sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp\" crossorigin=\"anonymous\">");
writer.write("<script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js\" integrity=\"sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa\" crossorigin=\"anonymous\"></script>");
writer.write("</HEAD>");
writer.write("<BODY>" + htmlBody + "</BODY>");
writer.write("<BODY STYLE=\"margin:20px;\">" + htmlBody + "</BODY>");
writer.write("</HTML>");

} catch (Exception e) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/indexpage_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ 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
function.description.database.connection.leak=Database connection leak occurs every time you load the page.<br>\
(* Database connection leak occurs if using an external RDBMS such as MySQL)
(&nbsp;<span class="glyphicon glyphicon-info-sign"></span>&nbsp; Database connection leak occurs if using an external RDBMS such as MySQL)
function.name.file.descriptor.leak=File Descriptor Leak
function.description.file.descriptor.leak=File descriptor leak occurs every time you load the page.

Expand All @@ -46,7 +46,7 @@ function.description.ldap.injection=LDAP injection occurs after entering a vulne


section.errors=Errors
description.errors=* Warning:The following OOME links cause severe memory leaks. They can make your computer unstable.<br>\
description.errors=<span class="glyphicon glyphicon-warning-sign"></span>&nbsp; Warning: The following OutOfMemoryError links cause severe memory leaks. They can make your computer unstable.<br>\
The result may change depending on JRE type / version, JVM option, OS, hardware (memory), etc.

function.name.ei.error=ExceptionInInitializerError / NoClassDefFoundError
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/indexpage_ja.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function.name.network.socket.leak=\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bd\u30
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
function.description.database.connection.leak=\u30da\u30fc\u30b8\u3092\u30ed\u30fc\u30c9\u3059\u308b\u305f\u3073\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u30ea\u30fc\u30af\u304c\u767a\u751f\u3057\u307e\u3059\u3002<br> \
(* \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u30ea\u30fc\u30af\u306f\u3001MySQL\u306a\u3069\u306e\u5916\u90e8RDBMS\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306b\u306e\u307f\u767a\u751f\u3057\u307e\u3059)
(&nbsp;<span class="glyphicon glyphicon-info-sign"></span>&nbsp; \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u30ea\u30fc\u30af\u306f\u3001MySQL\u306a\u3069\u306e\u5916\u90e8RDBMS\u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u306b\u306e\u307f\u767a\u751f\u3057\u307e\u3059)
function.name.file.descriptor.leak=\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u30ea\u30fc\u30af
function.description.file.descriptor.leak=\u30da\u30fc\u30b8\u3092\u30ed\u30fc\u30c9\u3059\u308b\u305f\u3073\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u30ea\u30fc\u30af\u304c\u767a\u751f\u3057\u307e\u3059\u3002

Expand All @@ -47,7 +47,7 @@ function.description.ldap.injection=\u8106\u5f31\u306a\u6587\u5b57\u5217\u3092\u


section.errors=\u30a8\u30e9\u30fc
description.errors=\u203b\u8b66\u544a\uff1a\u4ee5\u4e0b\u306eOOME\u306e\u30ea\u30f3\u30af\u306f\u91cd\u5927\u306a\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u3092\u5f15\u304d\u8d77\u3053\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306e\u52d5\u4f5c\u304c\u4e0d\u5b89\u5b9a\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br>\
description.errors=<span class="glyphicon glyphicon-warning-sign"></span>&nbsp;\u8b66\u544a\uff1a\u4ee5\u4e0b\u306eOutOfMemoryError\u306e\u30ea\u30f3\u30af\u306f\u91cd\u5927\u306a\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u3092\u5f15\u304d\u8d77\u3053\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306e\u52d5\u4f5c\u304c\u4e0d\u5b89\u5b9a\u306b\u306a\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br>\
\u7d50\u679c\u306f\u3001JRE\u306e\u7a2e\u985e/\u30d0\u30fc\u30b8\u30e7\u30f3\u3001JVM\u30aa\u30d7\u30b7\u30e7\u30f3\u3001OS\u3001\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\uff08\u30e1\u30e2\u30ea\uff09\u306a\u3069\u306b\u3088\u3063\u3066\u5909\u308f\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002

function.name.ei.error=ExceptionInInitializerError / NoClassDefFoundError
Expand Down
10 changes: 5 additions & 5 deletions src/main/resources/messages_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ label.reversed.name=Reversed Name
label.submit=submit
label.update=Update
msg.c.heap.space.leak.occur=Memory leak occurs in C heap space every time you load this page.<BR><BR> \
* If keeping on loading this page, OutOfMemoryError is finally thrown.
<span class="glyphicon glyphicon-info-sign"></span>&nbsp; If keeping on loading this page, OutOfMemoryError is finally thrown.
msg.cant.create.batch=Can't create a batch file.
msg.db.connection.leak.occur=DB connection leak occurs every time you load this page.
msg.dead.lock.not.occur=Dead Lock does not occur.
Expand All @@ -31,17 +31,17 @@ msg.executed.batch=Created and executed the batch:
msg.file.descriptor.leak.occur=File descriptor leak occurs every time you load this page.
msg.info.jvm.not.crash=JVM crash only occurs if using Oracle JDK 6 or 7.
msg.java.heap.space.leak.occur=Memory leak occurs in Java heap space every time you load this page.<BR><BR> \
* If keeping on loading this page, OutOfMemoryError is finally thrown.
<span class="glyphicon glyphicon-info-sign"></span>&nbsp; If keeping on loading this page, OutOfMemoryError is finally thrown.
msg.note.enter.one=Round off error occurs if you enter 1.
msg.note.enter.specific.nembers=Truncation error occurs if you enter 3 or 7 or 9.
msg.note.enter.too.small.value=Loss of trailing digits occurs if you enter 0.0000000000000001.
msg.note.positive.number=Integer overflow occurs if you enter a large number greater than {0}.
msg.note.sql.deadlock=If you select "asc" and click the "update" button immediately after you select "desc" and click the "update" button, \
then dead lock occurs in database.
msg.note.sql.injection=( * SQL injection occurs if you set password to ' OR '1'='1 )
msg.note.xss=( * XSS occurs if you set name to >tpircs/<;)\"!SSX\"(trela>tpircs< )
msg.note.sql.injection=(&nbsp;<span class="glyphicon glyphicon-info-sign"></span>&nbsp; SQL injection occurs if you set password to ' OR '1'='1 )
msg.note.xss=(&nbsp;<span class="glyphicon glyphicon-info-sign"></span>&nbsp; XSS occurs if you set name to >tpircs/<;)\"!SSX\"(trela>tpircs< )
msg.permgen.space.leak.occur=Memory leak occurs in PermGen space every time you load this page.<BR><BR> \
* If keeping on loading this page, OutOfMemoryError is finally thrown.
<span class="glyphicon glyphicon-info-sign"></span>&nbsp; If keeping on loading this page, OutOfMemoryError is finally thrown.
msg.socket.leak.occur=Network socket leak occurs every time you load this page.
msg.unknown.exception.occur=Unknown exception occurs.
msg.update.records=Updated {0} records.
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/messages_ja.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ label.reversed.name=\u9006\u8ee2\u3057\u305f\u540d\u524d
label.submit=\u9001\u4fe1
label.update=\u66f4\u65b0
msg.c.heap.space.leak.occur=\u3053\u306e\u30da\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u3080\u305f\u3073\u306b\u3001C\u30d2\u30fc\u30d7\u9818\u57df\u306e\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u304c\u767a\u751f\u3057\u307e\u3059\u3002<BR><BR> \
* \u753b\u9762\u3092\u30ed\u30fc\u30c9\u3057\u7d9a\u3051\u308b\u3068\u3001\u6700\u7d42\u7684\u306bOutOfMemoryError\u304c\u30b9\u30ed\u30fc\u3055\u308c\u307e\u3059\u3002
<span class="glyphicon glyphicon-info-sign"></span>&nbsp; \u753b\u9762\u3092\u30ed\u30fc\u30c9\u3057\u7d9a\u3051\u308b\u3068\u3001\u6700\u7d42\u7684\u306bOutOfMemoryError\u304c\u30b9\u30ed\u30fc\u3055\u308c\u307e\u3059\u3002
msg.cant.create.batch=\u30d0\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002
msg.db.connection.leak.occur=\u3053\u306e\u30da\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u3080\u305f\u3073\u306b\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u30ea\u30fc\u30af\u304c\u767a\u751f\u3057\u307e\u3059\u3002
msg.dead.lock.not.occur=\u30c7\u30c3\u30c9\u30ed\u30c3\u30af\u306f\u767a\u751f\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002
Expand All @@ -31,7 +31,7 @@ msg.executed.batch=\u30d0\u30c3\u30c1\u3092\u4f5c\u6210\u3001\u5b9f\u884c\u3057\
msg.file.descriptor.leak.occur=\u3053\u306e\u30da\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u3080\u305f\u3073\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u30c7\u30a3\u30b9\u30af\u30ea\u30d7\u30bf\u30ea\u30fc\u30af\u304c\u767a\u751f\u3057\u307e\u3059\u3002
msg.info.jvm.not.crash=JVM\u30af\u30e9\u30c3\u30b7\u30e5\u306f\u3001Oracle JDK 6\u307e\u305f\u306f7\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u306e\u307f\u767a\u751f\u3057\u307e\u3059\u3002
msg.java.heap.space.leak.occur=\u3053\u306e\u30da\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u3080\u305f\u3073\u306b\u3001Java\u30d2\u30fc\u30d7\u9818\u57df\u306e\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u304c\u767a\u751f\u3057\u307e\u3059\u3002<BR><BR> \
* \u753b\u9762\u3092\u30ed\u30fc\u30c9\u3057\u7d9a\u3051\u308b\u3068\u3001\u6700\u7d42\u7684\u306bOutOfMemoryError\u304c\u30b9\u30ed\u30fc\u3055\u308c\u307e\u3059\u3002
<span class="glyphicon glyphicon-info-sign"></span>&nbsp; \u753b\u9762\u3092\u30ed\u30fc\u30c9\u3057\u7d9a\u3051\u308b\u3068\u3001\u6700\u7d42\u7684\u306bOutOfMemoryError\u304c\u30b9\u30ed\u30fc\u3055\u308c\u307e\u3059\u3002
msg.note.enter.count=\u5927\u304d\u306a\u6587\u5b57\u6570\u3092\u5165\u529b\u3059\u308b\u3068\u3001\u5b8c\u4e86\u3057\u306a\u3044\u30d7\u30ed\u30bb\u30b9\u306e\u5f85\u6a5f\u304c\u767a\u751f\u3057\u307e\u3059\u3002
msg.note.enter.one=1\u3092\u5165\u529b\u3059\u308b\u3068\u3001\u4e38\u3081\u8aa4\u5dee\u304c\u767a\u751f\u3057\u307e\u3059\u3002
msg.note.enter.specific.nembers=3\u30017\u30019\u3092\u5165\u529b\u3059\u308b\u3068\u3001\u6253\u3061\u5207\u308a\u8aa4\u5dee\u304c\u767a\u751f\u3057\u307e\u3059\u3002
Expand All @@ -42,7 +42,7 @@ msg.note.sql.deadlock=\u300c\u964d\u9806\u300d\u3092\u9078\u629e\u3057\u3066\u30
msg.note.sql.injection=(\u203b\u30d1\u30b9\u30ef\u30fc\u30c9\u306b ' OR '1'='1 \u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3001SQL\u30a4\u30f3\u30b8\u30a7\u30af\u30b7\u30e7\u30f3\u304c\u767a\u751f\u3057\u307e\u3059)
msg.note.xss=(\u203b\u540d\u524d\u306b >tpircs/<;)\"!SSX\"(trela>tpircs< \u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3001XSS\u304c\u767a\u751f\u3057\u307e\u3059)
msg.permgen.space.leak.occur=\u3053\u306e\u30da\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u3080\u305f\u3073\u306b\u3001Permanent\u9818\u57df\u306e\u30e1\u30e2\u30ea\u30ea\u30fc\u30af\u304c\u767a\u751f\u3057\u307e\u3059\u3002<BR><BR> \
* \u753b\u9762\u3092\u30ed\u30fc\u30c9\u3057\u7d9a\u3051\u308b\u3068\u3001\u6700\u7d42\u7684\u306bOutOfMemoryError\u304c\u30b9\u30ed\u30fc\u3055\u308c\u307e\u3059\u3002
<span class="glyphicon glyphicon-info-sign"></span>&nbsp; \u753b\u9762\u3092\u30ed\u30fc\u30c9\u3057\u7d9a\u3051\u308b\u3068\u3001\u6700\u7d42\u7684\u306bOutOfMemoryError\u304c\u30b9\u30ed\u30fc\u3055\u308c\u307e\u3059\u3002
msg.socket.leak.occur=\u3053\u306e\u30da\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u3080\u305f\u3073\u306b\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30bd\u30b1\u30c3\u30c8\u30ea\u30fc\u30af\u304c\u767a\u751f\u3057\u307e\u3059\u3002
msg.unknown.exception.occur=\u4e0d\u660e\u306a\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002
msg.update.records={0}\u4ef6\u66f4\u65b0\u3057\u307e\u3057\u305f\u3002
Expand Down
35 changes: 22 additions & 13 deletions src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@
<html>
<head>
<title>EasyBuggy</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</head>
<body>
<body style="margin:20px;">

<h1>
<h2>
<span class="glyphicon glyphicon-knight"></span>&nbsp;
<fmt:message key="section.troubles" />
</h1>
</h2>
<p>
<fmt:message key="description.troubles" />
</p>
Expand Down Expand Up @@ -81,9 +85,10 @@
</p></li>
</ul>

<h1>
<h2>
<span class="glyphicon glyphicon-knight"></span>&nbsp;
<fmt:message key="section.performance.issue" />
</h1>
</h2>
<p>
<fmt:message key="description.performance.issue" />
</p>
Expand All @@ -95,9 +100,10 @@
</p></li>
</ul>

<h1>
<h2>
<span class="glyphicon glyphicon-knight"></span>&nbsp;
<fmt:message key="section.vulnerabilities" />
</h1>
</h2>
<p>
<fmt:message key="description.vulnerabilities" />
</p>
Expand All @@ -119,9 +125,10 @@
</p></li>
</ul>

<h1>
<h2>
<span class="glyphicon glyphicon-knight"></span>&nbsp;
<fmt:message key="section.errors" />
</h1>
</h2>
<p>
<fmt:message key="description.errors" />
</p>
Expand Down Expand Up @@ -173,9 +180,10 @@
</p></li>
</ul>

<h1>
<h2>
<span class="glyphicon glyphicon-knight"></span>&nbsp;
<fmt:message key="section.others" />
</h1>
</h2>
<p>
<fmt:message key="description.others" />
</p>
Expand Down Expand Up @@ -207,9 +215,10 @@
</p></li>
</ul>

<h1>
<h2>
<span class="glyphicon glyphicon-knight"></span>&nbsp;
<fmt:message key="section.exceptions" />
</h1>
</h2>
<p>
<fmt:message key="description.section.exceptions" />
</p>
Expand Down

0 comments on commit 5ba814d

Please sign in to comment.