#SCB2998 (Confirmed) Exception if an invalid issue id with invalid suffix is entered
Johannes Hoechstaedter <[email protected]> Wed, 23 Sep 2009 14:29:00 +0200 (CEST)
| Newsgroups | gmane.comp.java.scarab.issues |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_4748_12370670.1253708946669
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
*SCB2998 [Defect] - Exception if an invalid issue id with invalid suffix is entered*
-------------------------------------------------------------------------------
*Reasons for the changes*
-------------------------------------------------------------------------------
- Fixed at revision: 10853
- Was fixed in branch in revision: 10853
- Example in description synchronized with stack trace.
- Summary revised
** null: () **
-------------------------------------------------------------------------------
*Attribute changes*
-------------------------------------------------------------------------------
- Priority: 3-Normal (New)
- Summary: Exception on enetring issue id with invalid suffix (New)
- Target milestone: 0.22 (New)
- Database: MySQL (New)
- Version: 0.21 (New)
- Status: Unconfirmed (New)
- Short description:
"If an id with an invalid suffix is entered in text field for quick access (assumption is that all suffixes are invalid as suffixes are not supported) e.g. "SCB2f" a stack trace is thrown."
- Stack trace:
"Caused by: java.lang.NumberFormatException: For input string: "+"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at org.tigris.scarab.om.Issue$FederatedId.setUniqueId(Issue.java:317)
at org.tigris.scarab.om.Issue$FederatedId.<init>(Issue.java:283)
at org.tigris.scarab.om.IssueManager.getIssueById(IssueManager.java:120)
at org.tigris.scarab.screens.ViewIssue.getReferredIssue(ViewIssue.java:141)
at org.tigris.scarab.screens.ViewIssue.doBuildTemplate(ViewIssue.java:93)
at org.apache.turbine.modules.SecureModule.doBuildTemplate(SecureModule.java:88)
at org.apache.turbine.modules.Module.doBuild(Module.java:97)
at org.tigris.scarab.screens.Default.doBuild(Default.java:89)
at org.apache.turbine.modules.Module.execute(Module.java:124)
at org.apache.turbine.pipeline.RunModulesValve.runModules(RunModulesValve.java:143)
at org.apache.turbine.pipeline.RunModulesValve.invoke(RunModulesValve.java:107)
... 69 more
"
- Status: Unconfirmed --> Confirmed
- Resolution: Fixed (New)
- Solution: Branch (New)
- Short description:
"If an id with an invalid suffix is entered in text field for quick access (assumption is that all suffixes are invalid as suffixes are not supported) e.g. "SCB2+" a stack trace is thrown."
- Summary: Exception if an invalid issue id with invalid suffix is entered
*Comment Johannes Hoechstaedter*
Parsing for issue id added
At revision: 10853 (b22 branch)
-------------------------------------------------------------------------------
Activity generated by Johannes Hoechstaedter ([email protected]) at 09/23/2009 14:17
[Scarab]: http://www.solitone.org/scarab/issues/id/SCB2998
------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=458&dsMessageId=2398858
To unsubscribe from this discussion, e-mail: [[email protected]].
------=_Part_4748_12370670.1253708946669
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//Tigris//DTD XHTML 1.0 Transitional//EN"
"http://www.solitone.org/scarab/style/tigris_transitional.dtd">
<html>
<head>
<title>Activity report on Defect SCB2998 - Exception if an invalid issue id with invalid suffix is entered</title>
<base href="http://www.solitone.org/scarab" />
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
<style type="text/css">
body {
background: #fff;
color: #000;
}
.app h3, .functnbar {
background-image: url(http://www.solitone.org/scarab/images/nw_maj_rond.gif);
background-repeat: no-repeat;
}
.functnbar, .functnbar2 {
background-color: #aaa;
}
.functnbar2 {
background-color: #aaa;
background-image: url(http://www.solitone.org/scarab/images/sw_maj_rond.gif);
background-repeat: no-repeat;
background-position: bottom left;
}
.functnbar, .functnbar2 {
color: #000;
}
.functnbar a, .functnbar2 a {
color: #000;
text-decoration: underline;
}
.app h3 {
color: #fff;
background-color: #333;
}
.odd td {
background: #ddd;
}
.even td {
background: #efefef;
}
table, th, td {
border: none;
}
#breadcrumbs {
text-decoration: none;
border-top: 1px solid #fff;
background-color: #ccc;
}
.app th {
background-color: #bbb;
}
.infomark {
background: url(http://www.solitone.org/scarab/images/icon_info_sml.gif) top left no-repeat;
font-style: italic;
padding-left: 20px;
min-height: 15px;
}
.url {
align: left;
padding-right: 40px;
min-height: 15px;
text-decoration: underline;
color: blue;
background: url(http://www.solitone.org/scarab/images/icon_url.gif) top right no-repeat;
}
body, th, td {
font-family: Verdana, Helvetica, Arial, sans-serif;
}
pre {
font-family: 'Andale Mono', Courier, monospace;
font-size: small;
}
body, .app h3 {
font-size: small;
}
.functnbar {
font-size: x-small;
}
p {
margin-top: .67em;
margin-bottom: .67em;
}
h3 {
margin-bottom: 0;
}
.app h3 {
padding: 5px;
margin-right: 2px;
margin-left: 2px;
}
.app td, .app th {
padding: 2px 2px;
}
.h3 p {
margin-right: 7px;
margin-left: 7px;
}
.functnbar, .functnbar2 {
padding: 5px;
margin: .67em 2px;
}
body {
padding: 1em;
}
th, td {
text-align: left;
vertical-align: top;
}
.axial th {
text-align: right;
}
.app .axial td th {
text-align: left;
}
.axial th {
width: 12em;
}
.app h3 {
clear: both;
}
.app h3, #banner, #banner td {
background-color: #036;
color: #fff;
}
#banner {
border-top: 1px solid #369;
}
.functnbar2 {
background-image: url(http://www.solitone.org/scarab/images/sw_maj_rond.gif);
background-repeat: no-repeat;
background-position: bottom left;
background-color: #668DB2;
color: #fff;
margin-left: -1px;
margin-right: -1px;
white-space: nowrap;
margin-bottom: 0px;
}
.functnbar {
background-color: #668DB2;
color:#fff;
white-space:nowrap;
margin-bottom:0px;
margin-left:-1px;
margin-right:-1px;
}
.scarab-canvas {
border-width:1px;
border-style:solid;
border-color:#dddddd;
border-top-style:none;
border-bottom-style:none;
margin-left:2px;
margin-right:2px;
}
.scarab-canvas div h3 {
background-color:#E9F1F9;
color:#003163
}
.app h3, .functnbar {
background-image: url(http://www.solitone.org/scarab/images/nw_maj_rond.gif);
background-repeat: no-repeat;
}
.app h3 {
color: #003366;
background-color: #ABC4DB;
}
.app h3 a:link, .app h3 a:visited {
color: #003366 !important;
text-decoration: underline;
}
.axial th {
background-color: #E9F1F9;
color: black;
}
</style>
<link rel="stylesheet" type="text/css" href="/skins/print.css" media="print" />
</head>
<body>
<div id="scb_banner">
<table border="0" cellspacing="0" cellpadding="8" width="100%">
<tr>
<td>
<img src="http://www.solitone.org/scarab/images/logo.gif" alt="Scarab" width="118" height="23" border="0" />
</td>
<td valign="middle">
<table border="0" cellpadding="0" cellspacing="0">
<td>The Self Issue Tracker</td>
<td>
<img hspace="10" src="http://www.solitone.org/scarab/images/trans.gif" border="0"/>
</td>
</table>
</td>
</tr>
</table>
</div>
<div id="breadcrumbs" >
<table border="0" cellspacing="0" cellpadding="8" width="100%">
<tr>
<td>
Modules >
Scarab >
Issue <strong>SCB2998</strong> (<strong>Exception if an invalid issue id with invalid suffix is entered</strong>)
</td>
</tr>
</table>
</div>
<div class="app">
<p class="infomark">
Activity generated by
Johannes Hoechstaedter ([email protected]) at 09/23/2009 14:17
</p>
<div class="scarab-canvas">
<h3 class="functnbar" style="background-color: #668DB2;margin-left:-1px;margin-right:-1px;">
<strong>Issue <strong>SCB2998 </strong>(<strong>Exception if an invalid issue id with invalid suffix is entered</strong>)
</h3>
<h3>Attributes</h3>
<div class="axial">
<table>
<tr>
<th>Issue ID</th>
<td width="25%"><b>SCB2998 (Defect)</b></td>
<td>
</td>
</tr>
<tr>
<th>Created by</th>
<td colspan="2">
<a href="mailTo:[email protected]">Johannes Hoechstaedter</a>
Wed Sep 23 14:17:34 CEST 2009
</td>
</tr>
<tr>
<th>Last modified by</th>
<td colspan="2">
<a href="mailTo:[email protected]">Johannes Hoechstaedter</a>
2009-09-23 14:23:38.0
</td>
</tr>
</table>
</div>
<h3>Summary of activity</h3>
<div class="axial">
<table style="table-layout: fixed" width="100%">
<tr class="even">
<th rowspan="4" width="25%">Reasons for the changes</th>
<td>Fixed at revision: 10853</td>
</tr>
<tr class="odd">
<td>Was fixed in branch in revision: 10853</td>
</tr>
<tr class="even">
<td>Example in description synchronized with stack trace.</td>
</tr>
<tr class="odd">
<td>Summary revised</td>
</tr>
<tr class="even">
<th rowspan="1" width="25%">Issue general information</th>
<td>null: ()</td>
</tr>
<tr class="odd">
<th rowspan="13" width="25%">Attribute changes</th>
<td>Priority: 3-Normal ()</td>
</tr>
<tr class="even">
<td>Summary: Exception on enetring issue id with invalid suffix ()</td>
</tr>
<tr class="odd">
<td>Target milestone: 0.22 ()</td>
</tr>
<tr class="even">
<td>Database: MySQL ()</td>
</tr>
<tr class="odd">
<td>Version: 0.21 ()</td>
</tr>
<tr class="even">
<td>Status: Unconfirmed ()</td>
</tr>
<tr class="odd">
<td>"Short description" set to: "If an id with an invalid suffix is entered in text field for quick access (assumption is that all suffixes are invalid as suffixes are not supported) e.g. "SCB2f" a stack trace is thrown."</td>
</tr>
<tr class="even">
<td>"Stack trace" set to: "Caused by: java.lang.NumberFormatException: For input string: "+"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:447)
at java.lang.Integer.parseInt(Integer.java:497)
at org.tigris.scarab.om.Issue$FederatedId.setUniqueId(Issue.java:317)
at org.tigris.scarab.om.Issue$FederatedId.<init>(Issue.java:283)
at org.tigris.scarab.om.IssueManager.getIssueById(IssueManager.java:120)
at org.tigris.scarab.screens.ViewIssue.getReferredIssue(ViewIssue.java:141)
at org.tigris.scarab.screens.ViewIssue.doBuildTemplate(ViewIssue.java:93)
at org.apache.turbine.modules.SecureModule.doBuildTemplate(SecureModule.java:88)
at org.apache.turbine.modules.Module.doBuild(Module.java:97)
at org.tigris.scarab.screens.Default.doBuild(Default.java:89)
at org.apache.turbine.modules.Module.execute(Module.java:124)
at org.apache.turbine.pipeline.RunModulesValve.runModules(RunModulesValve.java:143)
at org.apache.turbine.pipeline.RunModulesValve.invoke(RunModulesValve.java:107)
... 69 more
"</td>
</tr>
<tr class="odd">
<td>Status: Confirmed (Unconfirmed)</td>
</tr>
<tr class="even">
<td>Resolution: Fixed ()</td>
</tr>
<tr class="odd">
<td>Solution: Branch ()</td>
</tr>
<tr class="even">
<td>"Short description" set to: "If an id with an invalid suffix is entered in text field for quick access (assumption is that all suffixes are invalid as suffixes are not supported) e.g. "SCB2+" a stack trace is thrown."</td>
</tr>
<tr class="odd">
<td>Summary: Exception if an invalid issue id with invalid suffix is entered (Exception on enetring issue id with invalid suffix)</td>
</tr>
<tr class="even">
<th rowspan="2" width="25%">Comments</th>
<td>By <a href="mailTo:[email protected]">Johannes Hoechstaedter</a>
09/23/2009 14:23</td>
</tr>
<tr class="odd">
<td><pre>Parsing for issue id added
At revision: 10853 (b22 branch)</pre></td>
</tr>
</table>
</div>
<div class="functnbar2"">
<table>
<tr>
<td>
<div class="url">
<a title="Bookmark to this issue" href="http://www.solitone.org/scarab/issues/id/SCB2998">
Session-info-free link to SCB2998</a>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
</body>
</html>
------=_Part_4748_12370670.1253708946669--