You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Stephan Schwab (JIRA)" <ji...@apache.org> on 2010/03/16 19:34:27 UTC
[jira] Created: (TAP5-1054) Not able to pass an empty string as
appName to PageTester
Not able to pass an empty string as appName to PageTester
---------------------------------------------------------
Key: TAP5-1054
URL: https://issues.apache.org/jira/browse/TAP5-1054
Project: Tapestry 5
Issue Type: Bug
Components: documentation, tapestry-core
Affects Versions: 5.1.0.5
Reporter: Stephan Schwab
On http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/test/PageTester.html it states that one can pass in an empty string for appName to PageTester(appPackage, appName) or PageTester(appPackage, appName, contextPath, moduleClasses).
Doing so causes an IllegalArgumentException:
java.lang.IllegalArgumentException: Parameter appName was null or contained only whitespace.
at org.apache.tapestry5.ioc.internal.util.Defense.notBlank(Defense.java:59)
at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:92)
at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:75)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (TAP5-1054) Not able to pass an empty string as
appName to PageTester
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk resolved TAP5-1054.
--------------------------------
Resolution: Fixed
> Not able to pass an empty string as appName to PageTester
> ---------------------------------------------------------
>
> Key: TAP5-1054
> URL: https://issues.apache.org/jira/browse/TAP5-1054
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2, 5.1.0.5
> Reporter: Stephan Schwab
> Assignee: Ulrich Stärk
> Fix For: 5.1.0.8, 5.2.0
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> On http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/test/PageTester.html it states that one can pass in an empty string for appName to PageTester(appPackage, appName) or PageTester(appPackage, appName, contextPath, moduleClasses).
> Doing so causes an IllegalArgumentException:
> java.lang.IllegalArgumentException: Parameter appName was null or contained only whitespace.
> at org.apache.tapestry5.ioc.internal.util.Defense.notBlank(Defense.java:59)
> at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:92)
> at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:75)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-1054) Not able to pass an empty string as
appName to PageTester
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk updated TAP5-1054:
-------------------------------
Component/s: (was: documentation)
Affects Version/s: 5.2
Fix Version/s: 5.2.0
5.1.0.8
Remaining Estimate: 0h
Original Estimate: 0h
> Not able to pass an empty string as appName to PageTester
> ---------------------------------------------------------
>
> Key: TAP5-1054
> URL: https://issues.apache.org/jira/browse/TAP5-1054
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2, 5.1.0.5
> Reporter: Stephan Schwab
> Assignee: Ulrich Stärk
> Fix For: 5.2.0, 5.1.0.8
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> On http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/test/PageTester.html it states that one can pass in an empty string for appName to PageTester(appPackage, appName) or PageTester(appPackage, appName, contextPath, moduleClasses).
> Doing so causes an IllegalArgumentException:
> java.lang.IllegalArgumentException: Parameter appName was null or contained only whitespace.
> at org.apache.tapestry5.ioc.internal.util.Defense.notBlank(Defense.java:59)
> at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:92)
> at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:75)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (TAP5-1054) Not able to pass an empty string as
appName to PageTester
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk resolved TAP5-1054.
--------------------------------
Resolution: Fixed
> Not able to pass an empty string as appName to PageTester
> ---------------------------------------------------------
>
> Key: TAP5-1054
> URL: https://issues.apache.org/jira/browse/TAP5-1054
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2, 5.1.0.5
> Reporter: Stephan Schwab
> Assignee: Ulrich Stärk
> Fix For: 5.1.0.8, 5.2.0
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> On http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/test/PageTester.html it states that one can pass in an empty string for appName to PageTester(appPackage, appName) or PageTester(appPackage, appName, contextPath, moduleClasses).
> Doing so causes an IllegalArgumentException:
> java.lang.IllegalArgumentException: Parameter appName was null or contained only whitespace.
> at org.apache.tapestry5.ioc.internal.util.Defense.notBlank(Defense.java:59)
> at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:92)
> at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:75)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-1054) Not able to pass an empty string as
appName to PageTester
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846081#action_12846081 ]
Ulrich Stärk commented on TAP5-1054:
------------------------------------
>From a quick glance, the appName parameter is solely used to determine the module class name and therefore can be blank - especially since a module class doesn't have to be present. Am I missing something or is it OK to change Defense.notBlank(appName) to Defense.notNull(appName)?
> Not able to pass an empty string as appName to PageTester
> ---------------------------------------------------------
>
> Key: TAP5-1054
> URL: https://issues.apache.org/jira/browse/TAP5-1054
> Project: Tapestry 5
> Issue Type: Bug
> Components: documentation, tapestry-core
> Affects Versions: 5.1.0.5
> Reporter: Stephan Schwab
>
> On http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/test/PageTester.html it states that one can pass in an empty string for appName to PageTester(appPackage, appName) or PageTester(appPackage, appName, contextPath, moduleClasses).
> Doing so causes an IllegalArgumentException:
> java.lang.IllegalArgumentException: Parameter appName was null or contained only whitespace.
> at org.apache.tapestry5.ioc.internal.util.Defense.notBlank(Defense.java:59)
> at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:92)
> at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:75)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (TAP5-1054) Not able to pass an empty string as
appName to PageTester
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk reassigned TAP5-1054:
----------------------------------
Assignee: Ulrich Stärk
> Not able to pass an empty string as appName to PageTester
> ---------------------------------------------------------
>
> Key: TAP5-1054
> URL: https://issues.apache.org/jira/browse/TAP5-1054
> Project: Tapestry 5
> Issue Type: Bug
> Components: documentation, tapestry-core
> Affects Versions: 5.1.0.5
> Reporter: Stephan Schwab
> Assignee: Ulrich Stärk
>
> On http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/test/PageTester.html it states that one can pass in an empty string for appName to PageTester(appPackage, appName) or PageTester(appPackage, appName, contextPath, moduleClasses).
> Doing so causes an IllegalArgumentException:
> java.lang.IllegalArgumentException: Parameter appName was null or contained only whitespace.
> at org.apache.tapestry5.ioc.internal.util.Defense.notBlank(Defense.java:59)
> at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:92)
> at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:75)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (TAP5-1054) Not able to pass an empty string as
appName to PageTester
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk reassigned TAP5-1054:
----------------------------------
Assignee: Ulrich Stärk
> Not able to pass an empty string as appName to PageTester
> ---------------------------------------------------------
>
> Key: TAP5-1054
> URL: https://issues.apache.org/jira/browse/TAP5-1054
> Project: Tapestry 5
> Issue Type: Bug
> Components: documentation, tapestry-core
> Affects Versions: 5.1.0.5
> Reporter: Stephan Schwab
> Assignee: Ulrich Stärk
>
> On http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/test/PageTester.html it states that one can pass in an empty string for appName to PageTester(appPackage, appName) or PageTester(appPackage, appName, contextPath, moduleClasses).
> Doing so causes an IllegalArgumentException:
> java.lang.IllegalArgumentException: Parameter appName was null or contained only whitespace.
> at org.apache.tapestry5.ioc.internal.util.Defense.notBlank(Defense.java:59)
> at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:92)
> at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:75)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (TAP5-1054) Not able to pass an empty string as
appName to PageTester
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ulrich Stärk updated TAP5-1054:
-------------------------------
Component/s: (was: documentation)
Affects Version/s: 5.2
Fix Version/s: 5.2.0
5.1.0.8
Remaining Estimate: 0h
Original Estimate: 0h
> Not able to pass an empty string as appName to PageTester
> ---------------------------------------------------------
>
> Key: TAP5-1054
> URL: https://issues.apache.org/jira/browse/TAP5-1054
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.2, 5.1.0.5
> Reporter: Stephan Schwab
> Assignee: Ulrich Stärk
> Fix For: 5.2.0, 5.1.0.8
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> On http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/test/PageTester.html it states that one can pass in an empty string for appName to PageTester(appPackage, appName) or PageTester(appPackage, appName, contextPath, moduleClasses).
> Doing so causes an IllegalArgumentException:
> java.lang.IllegalArgumentException: Parameter appName was null or contained only whitespace.
> at org.apache.tapestry5.ioc.internal.util.Defense.notBlank(Defense.java:59)
> at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:92)
> at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:75)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TAP5-1054) Not able to pass an empty string as
appName to PageTester
Posted by "Ulrich Stärk (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12846081#action_12846081 ]
Ulrich Stärk commented on TAP5-1054:
------------------------------------
>From a quick glance, the appName parameter is solely used to determine the module class name and therefore can be blank - especially since a module class doesn't have to be present. Am I missing something or is it OK to change Defense.notBlank(appName) to Defense.notNull(appName)?
> Not able to pass an empty string as appName to PageTester
> ---------------------------------------------------------
>
> Key: TAP5-1054
> URL: https://issues.apache.org/jira/browse/TAP5-1054
> Project: Tapestry 5
> Issue Type: Bug
> Components: documentation, tapestry-core
> Affects Versions: 5.1.0.5
> Reporter: Stephan Schwab
>
> On http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/test/PageTester.html it states that one can pass in an empty string for appName to PageTester(appPackage, appName) or PageTester(appPackage, appName, contextPath, moduleClasses).
> Doing so causes an IllegalArgumentException:
> java.lang.IllegalArgumentException: Parameter appName was null or contained only whitespace.
> at org.apache.tapestry5.ioc.internal.util.Defense.notBlank(Defense.java:59)
> at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:92)
> at org.apache.tapestry5.test.PageTester.<init>(PageTester.java:75)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.