Tapestry
  1. Tapestry
  2. TAPESTRY-1988

Page activation paremeter with escaped ( %2f ) slash ( " / " ) character not passed correctly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.3, 5.0.4, 5.0.5, 5.0.6
    • Fix Version/s: 5.0.8
    • Component/s: None
    • Labels:
      None

      Description

      Trying to pass string containing escaped slash as parameter value to onActivate() results in Tapestry interpreting it as passing two parameters.

      Example:

      test.java
      ============
      public class Test {
      private String param1;
      void onActivate(String p1)

      { param1=p1; }

      public String getParam1()

      { return param1; }

      }

      test.tml
      ============
      <div test="true" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
      Param 1:$

      {Param1}

      </div>

      url
      ============
      http://localhost/test/aaa%2fbbb

      output
      ============
      aaa

      should output
      ============
      aaa/bbb

      1. context_encode_decode_fix_to_5.0.6.patch
        11 kB
        Yoshikazu Kuramochi
      2. context_encode_decode_fix_to_trunk.patch
        11 kB
        Yoshikazu Kuramochi

        Activity

        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568461 ] jira [ 12591512 ]
        Mark Thomas made changes -
        Workflow jira [ 12419401 ] Default workflow, editable Closed status [ 12568461 ]
        Howard M. Lewis Ship made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Fix Version/s 5.0.8 [ 12312898 ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Howard M. Lewis Ship made changes -
        Assignee Howard M. Lewis Ship [ hlship ]
        Yoshikazu Kuramochi made changes -
        Kalin Krustev made changes -
        Field Original Value New Value
        Description Trying to pass escaped slash as parameter value to onActivate() results in Tapestry interpreting it as passing two parameters.

        Example:

        test.java
        ============
        public class Test {
        private String param1;
        void onActivate(String p1){
        param1=p1;
        }
        public String getParam1() {
        return param1;
        }
        }

        test.tml
        ============
        <div test="true" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
          Param 1:${Param1}
        </div>

        url
        ============
        http://localhost/test/aaa%2fbbb

        output
        ============
        aaa

        should output
        ============
        aaa/bbb
        Trying to pass string containing escaped slash as parameter value to onActivate() results in Tapestry interpreting it as passing two parameters.

        Example:

        test.java
        ============
        public class Test {
        private String param1;
        void onActivate(String p1){
        param1=p1;
        }
        public String getParam1() {
        return param1;
        }
        }

        test.tml
        ============
        <div test="true" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
          Param 1:${Param1}
        </div>

        url
        ============
        http://localhost/test/aaa%2fbbb

        output
        ============
        aaa

        should output
        ============
        aaa/bbb
        Kalin Krustev created issue -

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Kalin Krustev
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development