[
https://issues.apache.org/struts/browse/WW-1804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ted Husted resolved WW-1804.
----------------------------
Resolution: Fixed
Assignee: Ted Husted
> Showcase - view source throws NumberFormatException
> ---------------------------------------------------
>
> Key: WW-1804
> URL: https://issues.apache.org/struts/browse/WW-1804
> Project: Struts 2
> Issue Type: Bug
> Components: Examples
> Affects Versions: 2.0.6
> Environment: Showcase
> Reporter: Claus Ibsen
> Assigned To: Ted Husted
> Priority: Minor
> Fix For: 2.0.7
>
> Attachments: WW-1804-patch.txt
>
>
> I deployed struts2-showcase-2.0.6.war in Tomcat 5.5.20 on Windows.
> Choose 'person manager'
> Choose 'list'
> Choose 'view source' and you get a exception
> java.lang.NumberFormatException: For input string: ""
>
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
> java.lang.Integer.parseInt(Integer.java:468)
> java.lang.Integer.parseInt(Integer.java:497)
>
> org.apache.struts2.showcase.source.ViewSourceAction.execute(ViewSourceAction.java:86)
> The URL triggering the bug:
> http://localhost:8080/struts2-showcase-2.0.6/viewSource.action?config=&className=org.apache.struts2.showcase.person.ListPeopleAction&page=/person//person/listPeople.ftl
> The problem:
> Is that config parameter on the URL is empty (config=).
> It can be fixed by checing if the parameters are not empty instead of just !=
> null in the ViewSourceAction.java
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.