[ 
https://issues.apache.org/jira/browse/TAPESTRY-1988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kalin Krustev updated TAPESTRY-1988:
------------------------------------

    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

  was:
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


> Page activation paremeter with escaped ( %2f ) slash ( " / " ) character not 
> passed correctly
> ---------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1988
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1988
>             Project: Tapestry
>          Issue Type: Bug
>    Affects Versions: 5.0.3, 5.0.4, 5.0.5, 5.0.6
>            Reporter: Kalin Krustev
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to