struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (WW-1804) Showcase - view source throws NumberFormatException
Date Mon, 12 Mar 2007 15:23:51 GMT

     [ https://issues.apache.org/struts/browse/WW-1804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen updated WW-1804:
----------------------------

    Flags: [Patch]

> 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
>            Priority: Minor
>         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.


Mime
View raw message