Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1936

PageTester's setupRequestFromURI incorrectly uses substring twice on same string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 5.3.3
    • None
    • tapestry-test
    • None

    Description

      I get this error 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.

      I submit a patch to correct it

      Attachments

        1. patch-TAP5-1936.txt
          0.6 kB
          Denis Delangle

        Issue Links

          Activity

            People

              hlship Howard Lewis Ship
              denis.delangle Denis Delangle
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: