tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Delangle <denis.delangle...@gmail.com>
Subject Reopen TAP5-698
Date Tue, 22 May 2012 15:15:40 GMT
Hello,

I fear https://issues.apache.org/jira/browse/TAP5-698 should be
reopen. I encountered it when migrating from T5.2 to T5.3.3.

I get something like this when clicking a link with parameters in PageTester
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1937)
	at java.lang.String.substring(String.java:1904)
	at org.apache.tapestry5.test.PageTester.setupRequestFromURI(PageTester.java:345)

That bug was corrected revision 896555 and put back revision 1185926.
The correction is trivial but have been done twice, so the bug is
still there.

The patch to apply is :

Index: src/main/java/org/apache/tapestry5/test/PageTester.java
===================================================================
--- src/main/java/org/apache/tapestry5/test/PageTester.java	(revision 1341503)
+++ src/main/java/org/apache/tapestry5/test/PageTester.java	(working copy)
@@ -342,7 +342,7 @@
         request.clear().setPath(path);

         if (comma > 0)
-            decodeParametersIntoRequest(path.substring(comma + 1));
+            decodeParametersIntoRequest(linkPath.substring(comma + 1));
     }

     private void decodeParametersIntoRequest(String queryString)




I don't see any way to reopen the bug, should I open a new Issue ?

Regards,

Denis

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Mime
View raw message