Tapestry 5
  1. Tapestry 5
  2. TAP5-698

PageTester's setupRequestFromURI incorrectly uses substring twice on same string

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.5
    • Fix Version/s: 5.3
    • Component/s: tapestry-test
    • Labels:
      None

      Description

      Incoming linkPath: /filelist.delete/c$002ftest2-2510777506787452085.txt?t:ac=c
      int comma is set to 52
      path: /filelist.delete/c$002ftest2-2510777506787452085.txt
      then trying to do a path.substring(comma+1)

      Fix: use linkPath instead of path at line 304:

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

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Howard M. Lewis Ship
              Reporter:
              Chris Wilkes
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development