Tapestry
  1. Tapestry
  2. TAPESTRY-1297

incorrect context generated for URLs with final slash

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0.3
    • Component/s: None
    • Labels:
      None

      Description

      When using a URL of the form "http://www.host.com/page/", rather than "http://www.host.com/page" (note the final slash), the context which gets generated and passed on to event handlers like onActivate( ) is an array with a single empty string, rather than an empty array.

      Attaching a small fix, including unit tests.

        Activity

        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12567974 ] jira [ 12591087 ]
        Mark Thomas made changes -
        Workflow jira [ 12398202 ] Default workflow, editable Closed status [ 12567974 ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Howard M. Lewis Ship [ hlship ]
        Fix Version/s 5.0 [ 12312018 ]
        Fix Version/s 5.0.3 [ 12312338 ]
        Resolution Fixed [ 1 ]
        Daniel Gredler made changes -
        Field Original Value New Value
        Attachment fix-context-for-paths-with-final-slash.patch [ 12351999 ]
        Daniel Gredler created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development