You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Arne Baganz (JIRA)" <ji...@apache.org> on 2012/10/16 13:51:03 UTC

[jira] [Created] (WICKET-4816) Handling of semicolons in form action URLs

Arne Baganz created WICKET-4816:
-----------------------------------

             Summary: Handling of semicolons in form action URLs
                 Key: WICKET-4816
                 URL: https://issues.apache.org/jira/browse/WICKET-4816
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.5.8
         Environment: Jetty 8.1.1.v20120215
            Reporter: Arne Baganz


What I expect to happen when there is no semicolon support in Wicket is that a
URL in a form like below stays intact and will not be cut off at the position of
the first semicolon:

<form action="http://localhost:8080/dor/abc_1234:56;023:456_def_78;90.html"
method="post"><input type="submit" value="Submit" /></form>

In my application the part abc_1234:56;023:456_def_78;90.html is "named1" in the
mapping below:

mount(new MountedMapper("dor/#{named1}", TestPage.class, new
MyPageParametersEncoder()));

and parsed in MyPageParametersEncoder.

The officially intended use of semicolons in URLs seems to be specified in "RFC
1808 - Relative Uniform Resource Locators, 2.4.5."
(http://www.faqs.org/rfcs/rfc1808.html). But that´s not what I´m looking for.

If I had not some pages running on this syntax, I could easily swap the
semicolon with another symbol. Nevertheless and if I´m correctly informed, I
think those URLs should not be cut off.

(Quotation from the mailing list)

The quickstart can be tested with the following URLs:

http://localhost:8080/dor/abc_1234:56;023:456_def_78;90.html
http://localhost:8080/dor/abc_1234:56%3B023:456_def_78%3B90.html
http://localhost:8080/dor/?abc=1234:56%3B023:456&def=78%3B90

The crucial part is the action attribute in the form in the page´s source code, which contains i.e. "./abc_1234:56?-1.IFormSubmitListener-form".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WICKET-4816) Handling of semicolons in form action URLs

Posted by "Arne Baganz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-4816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13476951#comment-13476951 ] 

Arne Baganz commented on WICKET-4816:
-------------------------------------

This might be the source code responsible for the cut:

                
> Handling of semicolons in form action URLs
> ------------------------------------------
>
>                 Key: WICKET-4816
>                 URL: https://issues.apache.org/jira/browse/WICKET-4816
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.8
>         Environment: Jetty 8.1.1.v20120215
>            Reporter: Arne Baganz
>         Attachments: myproject.tar.gz
>
>
> What I expect to happen when there is no semicolon support in Wicket is that a
> URL in a form like below stays intact and will not be cut off at the position of
> the first semicolon:
> <form action="http://localhost:8080/dor/abc_1234:56;023:456_def_78;90.html"
> method="post"><input type="submit" value="Submit" /></form>
> In my application the part abc_1234:56;023:456_def_78;90.html is "named1" in the
> mapping below:
> mount(new MountedMapper("dor/#{named1}", TestPage.class, new
> MyPageParametersEncoder()));
> and parsed in MyPageParametersEncoder.
> The officially intended use of semicolons in URLs seems to be specified in "RFC
> 1808 - Relative Uniform Resource Locators, 2.4.5."
> (http://www.faqs.org/rfcs/rfc1808.html). But that´s not what I´m looking for.
> If I had not some pages running on this syntax, I could easily swap the
> semicolon with another symbol. Nevertheless and if I´m correctly informed, I
> think those URLs should not be cut off.
> (Quotation from the mailing list)
> The quickstart can be tested with the following URLs:
> http://localhost:8080/dor/abc_1234:56;023:456_def_78;90.html
> http://localhost:8080/dor/abc_1234:56%3B023:456_def_78%3B90.html
> http://localhost:8080/dor/?abc=1234:56%3B023:456&def=78%3B90
> The crucial part is the action attribute in the form in the page´s source code, which contains i.e. "./abc_1234:56?-1.IFormSubmitListener-form".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Comment Edited] (WICKET-4816) Handling of semicolons in form action URLs

Posted by "Arne Baganz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-4816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13476951#comment-13476951 ] 

Arne Baganz edited comment on WICKET-4816 at 10/16/12 12:11 PM:
----------------------------------------------------------------

This might be the source code responsible for the cut:

org.apache.wicket.util.string.Strings#stripJSessionId(String url)

where it reads: cut off at ";"
                
      was (Author: aws1032):
    This might be the source code responsible for the cut:

                  
> Handling of semicolons in form action URLs
> ------------------------------------------
>
>                 Key: WICKET-4816
>                 URL: https://issues.apache.org/jira/browse/WICKET-4816
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.8
>         Environment: Jetty 8.1.1.v20120215
>            Reporter: Arne Baganz
>         Attachments: myproject.tar.gz
>
>
> What I expect to happen when there is no semicolon support in Wicket is that a
> URL in a form like below stays intact and will not be cut off at the position of
> the first semicolon:
> <form action="http://localhost:8080/dor/abc_1234:56;023:456_def_78;90.html"
> method="post"><input type="submit" value="Submit" /></form>
> In my application the part abc_1234:56;023:456_def_78;90.html is "named1" in the
> mapping below:
> mount(new MountedMapper("dor/#{named1}", TestPage.class, new
> MyPageParametersEncoder()));
> and parsed in MyPageParametersEncoder.
> The officially intended use of semicolons in URLs seems to be specified in "RFC
> 1808 - Relative Uniform Resource Locators, 2.4.5."
> (http://www.faqs.org/rfcs/rfc1808.html). But that´s not what I´m looking for.
> If I had not some pages running on this syntax, I could easily swap the
> semicolon with another symbol. Nevertheless and if I´m correctly informed, I
> think those URLs should not be cut off.
> (Quotation from the mailing list)
> The quickstart can be tested with the following URLs:
> http://localhost:8080/dor/abc_1234:56;023:456_def_78;90.html
> http://localhost:8080/dor/abc_1234:56%3B023:456_def_78%3B90.html
> http://localhost:8080/dor/?abc=1234:56%3B023:456&def=78%3B90
> The crucial part is the action attribute in the form in the page´s source code, which contains i.e. "./abc_1234:56?-1.IFormSubmitListener-form".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (WICKET-4816) Handling of semicolons in form action URLs

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-4816.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5.9
                   6.2.0

Yes, Strings.stripJSessionId() was the problem.
                
> Handling of semicolons in form action URLs
> ------------------------------------------
>
>                 Key: WICKET-4816
>                 URL: https://issues.apache.org/jira/browse/WICKET-4816
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.8
>         Environment: Jetty 8.1.1.v20120215
>            Reporter: Arne Baganz
>            Assignee: Martin Grigorov
>             Fix For: 6.2.0, 1.5.9
>
>         Attachments: myproject.tar.gz
>
>
> What I expect to happen when there is no semicolon support in Wicket is that a
> URL in a form like below stays intact and will not be cut off at the position of
> the first semicolon:
> <form action="http://localhost:8080/dor/abc_1234:56;023:456_def_78;90.html"
> method="post"><input type="submit" value="Submit" /></form>
> In my application the part abc_1234:56;023:456_def_78;90.html is "named1" in the
> mapping below:
> mount(new MountedMapper("dor/#{named1}", TestPage.class, new
> MyPageParametersEncoder()));
> and parsed in MyPageParametersEncoder.
> The officially intended use of semicolons in URLs seems to be specified in "RFC
> 1808 - Relative Uniform Resource Locators, 2.4.5."
> (http://www.faqs.org/rfcs/rfc1808.html). But that´s not what I´m looking for.
> If I had not some pages running on this syntax, I could easily swap the
> semicolon with another symbol. Nevertheless and if I´m correctly informed, I
> think those URLs should not be cut off.
> (Quotation from the mailing list)
> The quickstart can be tested with the following URLs:
> http://localhost:8080/dor/abc_1234:56;023:456_def_78;90.html
> http://localhost:8080/dor/abc_1234:56%3B023:456_def_78%3B90.html
> http://localhost:8080/dor/?abc=1234:56%3B023:456&def=78%3B90
> The crucial part is the action attribute in the form in the page´s source code, which contains i.e. "./abc_1234:56?-1.IFormSubmitListener-form".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (WICKET-4816) Handling of semicolons in form action URLs

Posted by "Arne Baganz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arne Baganz updated WICKET-4816:
--------------------------------

    Attachment: myproject.tar.gz

The quickstart mentioned above.
                
> Handling of semicolons in form action URLs
> ------------------------------------------
>
>                 Key: WICKET-4816
>                 URL: https://issues.apache.org/jira/browse/WICKET-4816
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.8
>         Environment: Jetty 8.1.1.v20120215
>            Reporter: Arne Baganz
>         Attachments: myproject.tar.gz
>
>
> What I expect to happen when there is no semicolon support in Wicket is that a
> URL in a form like below stays intact and will not be cut off at the position of
> the first semicolon:
> <form action="http://localhost:8080/dor/abc_1234:56;023:456_def_78;90.html"
> method="post"><input type="submit" value="Submit" /></form>
> In my application the part abc_1234:56;023:456_def_78;90.html is "named1" in the
> mapping below:
> mount(new MountedMapper("dor/#{named1}", TestPage.class, new
> MyPageParametersEncoder()));
> and parsed in MyPageParametersEncoder.
> The officially intended use of semicolons in URLs seems to be specified in "RFC
> 1808 - Relative Uniform Resource Locators, 2.4.5."
> (http://www.faqs.org/rfcs/rfc1808.html). But that´s not what I´m looking for.
> If I had not some pages running on this syntax, I could easily swap the
> semicolon with another symbol. Nevertheless and if I´m correctly informed, I
> think those URLs should not be cut off.
> (Quotation from the mailing list)
> The quickstart can be tested with the following URLs:
> http://localhost:8080/dor/abc_1234:56;023:456_def_78;90.html
> http://localhost:8080/dor/abc_1234:56%3B023:456_def_78%3B90.html
> http://localhost:8080/dor/?abc=1234:56%3B023:456&def=78%3B90
> The crucial part is the action attribute in the form in the page´s source code, which contains i.e. "./abc_1234:56?-1.IFormSubmitListener-form".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (WICKET-4816) Handling of semicolons in form action URLs

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov reassigned WICKET-4816:
---------------------------------------

    Assignee: Martin Grigorov
    
> Handling of semicolons in form action URLs
> ------------------------------------------
>
>                 Key: WICKET-4816
>                 URL: https://issues.apache.org/jira/browse/WICKET-4816
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.8
>         Environment: Jetty 8.1.1.v20120215
>            Reporter: Arne Baganz
>            Assignee: Martin Grigorov
>         Attachments: myproject.tar.gz
>
>
> What I expect to happen when there is no semicolon support in Wicket is that a
> URL in a form like below stays intact and will not be cut off at the position of
> the first semicolon:
> <form action="http://localhost:8080/dor/abc_1234:56;023:456_def_78;90.html"
> method="post"><input type="submit" value="Submit" /></form>
> In my application the part abc_1234:56;023:456_def_78;90.html is "named1" in the
> mapping below:
> mount(new MountedMapper("dor/#{named1}", TestPage.class, new
> MyPageParametersEncoder()));
> and parsed in MyPageParametersEncoder.
> The officially intended use of semicolons in URLs seems to be specified in "RFC
> 1808 - Relative Uniform Resource Locators, 2.4.5."
> (http://www.faqs.org/rfcs/rfc1808.html). But that´s not what I´m looking for.
> If I had not some pages running on this syntax, I could easily swap the
> semicolon with another symbol. Nevertheless and if I´m correctly informed, I
> think those URLs should not be cut off.
> (Quotation from the mailing list)
> The quickstart can be tested with the following URLs:
> http://localhost:8080/dor/abc_1234:56;023:456_def_78;90.html
> http://localhost:8080/dor/abc_1234:56%3B023:456_def_78%3B90.html
> http://localhost:8080/dor/?abc=1234:56%3B023:456&def=78%3B90
> The crucial part is the action attribute in the form in the page´s source code, which contains i.e. "./abc_1234:56?-1.IFormSubmitListener-form".

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira