You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Scott MacKenzie (JIRA)" <ji...@apache.org> on 2010/01/14 01:26:55 UTC

[jira] Created: (WICKET-2675) CryptedUrlWebRequestCodingStrategy fails in form with method="get"

CryptedUrlWebRequestCodingStrategy fails in form with method="get"
------------------------------------------------------------------

                 Key: WICKET-2675
                 URL: https://issues.apache.org/jira/browse/WICKET-2675
             Project: Wicket
          Issue Type: Bug
    Affects Versions: 1.4.5
            Reporter: Scott MacKenzie
            Priority: Minor


A form fails to submit when it has the method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.

This happens because the form is constructed by wicket like this:
{code:HTML}
<form wicket:id="form2" method="get" id="form26" action="">
   <div style="display:none">
      <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
      <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
   </div>
   <input type="text" wicket:id="text2" value="" name="text2"/>
   <input type="submit"/>
</form>
{code}
which produces a query string like this:
http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test

"x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="

I am attaching the example quickstart app and a possible fix.

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


[jira] Updated: (WICKET-2675) CryptedUrlWebRequestCodingStrategy fails in form with method="get"

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

Scott MacKenzie updated WICKET-2675:
------------------------------------

    Description: 
A form fails to submit when it has the method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.

This happens because the form is constructed by wicket like this:

<form wicket:id="form2" method="get" id="form26" action="">
   <div style="display:none">
      <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
      <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
   </div>
   <input type="text" wicket:id="text2" value="" name="text2"/>
   <input type="submit"/>
</form>

which can produce a query string in firefox like this:
http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test

"x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="

I am attaching the example quickstart app and a possible fix.

  was:
A form fails to submit when it has the method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.

This happens because the form is constructed by wicket like this:

<form wicket:id="form2" method="get" id="form26" action="">
   <div style="display:none">
      <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
      <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
   </div>
   <input type="text" wicket:id="text2" value="" name="text2"/>
   <input type="submit"/>
</form>

which produces a query string like this:
http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test

"x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="

I am attaching the example quickstart app and a possible fix.


> CryptedUrlWebRequestCodingStrategy fails in form with method="get"
> ------------------------------------------------------------------
>
>                 Key: WICKET-2675
>                 URL: https://issues.apache.org/jira/browse/WICKET-2675
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.4.5
>            Reporter: Scott MacKenzie
>            Priority: Minor
>         Attachments: crypt-bug.patch, crypt-bug.zip
>
>
> A form fails to submit when it has the method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.
> This happens because the form is constructed by wicket like this:
> <form wicket:id="form2" method="get" id="form26" action="">
>    <div style="display:none">
>       <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
>       <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
>    </div>
>    <input type="text" wicket:id="text2" value="" name="text2"/>
>    <input type="submit"/>
> </form>
> which can produce a query string in firefox like this:
> http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test
> "x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="
> I am attaching the example quickstart app and a possible fix.

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


[jira] Updated: (WICKET-2675) CryptedUrlWebRequestCodingStrategy fails in form with method="get"

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

Scott MacKenzie updated WICKET-2675:
------------------------------------

    Attachment: crypt-bug.patch

A possible fix for this bug.

> CryptedUrlWebRequestCodingStrategy fails in form with method="get"
> ------------------------------------------------------------------
>
>                 Key: WICKET-2675
>                 URL: https://issues.apache.org/jira/browse/WICKET-2675
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.4.5
>            Reporter: Scott MacKenzie
>            Priority: Minor
>         Attachments: crypt-bug.patch, crypt-bug.zip
>
>
> A form fails to submit when it has the method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.
> This happens because the form is constructed by wicket like this:
> <form wicket:id="form2" method="get" id="form26" action="">
>    <div style="display:none">
>       <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
>       <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
>    </div>
>    <input type="text" wicket:id="text2" value="" name="text2"/>
>    <input type="submit"/>
> </form>
> which produces a query string like this:
> http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test
> "x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="
> I am attaching the example quickstart app and a possible fix.

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


[jira] Updated: (WICKET-2675) CryptedUrlWebRequestCodingStrategy fails in form with method="get"

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

Scott MacKenzie updated WICKET-2675:
------------------------------------

    Description: 
A form fails to submit when it has the method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.

This happens because the form is constructed by wicket like this:
{code}
<form wicket:id="form2" method="get" id="form26" action="">
   <div style="display:none">
      <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
      <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
   </div>
   <input type="text" wicket:id="text2" value="" name="text2"/>
   <input type="submit"/>
</form>
{code}
which produces a query string like this:
http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test

"x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="

I am attaching the example quickstart app and a possible fix.

  was:
A form fails to submit when it has the method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.

This happens because the form is constructed by wicket like this:
{code:HTML}
<form wicket:id="form2" method="get" id="form26" action="">
   <div style="display:none">
      <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
      <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
   </div>
   <input type="text" wicket:id="text2" value="" name="text2"/>
   <input type="submit"/>
</form>
{code}
which produces a query string like this:
http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test

"x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="

I am attaching the example quickstart app and a possible fix.


> CryptedUrlWebRequestCodingStrategy fails in form with method="get"
> ------------------------------------------------------------------
>
>                 Key: WICKET-2675
>                 URL: https://issues.apache.org/jira/browse/WICKET-2675
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.4.5
>            Reporter: Scott MacKenzie
>            Priority: Minor
>
> A form fails to submit when it has the method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.
> This happens because the form is constructed by wicket like this:
> {code}
> <form wicket:id="form2" method="get" id="form26" action="">
>    <div style="display:none">
>       <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
>       <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
>    </div>
>    <input type="text" wicket:id="text2" value="" name="text2"/>
>    <input type="submit"/>
> </form>
> {code}
> which produces a query string like this:
> http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test
> "x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="
> I am attaching the example quickstart app and a possible fix.

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


[jira] Updated: (WICKET-2675) CryptedUrlWebRequestCodingStrategy fails in form with method="get"

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

Scott MacKenzie updated WICKET-2675:
------------------------------------

    Description: 
A form fails to submit when it has method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.

This happens because the form is constructed by wicket like this:

<form wicket:id="form2" method="get" id="form26" action="">
   <div style="display:none">
      <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
      <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
   </div>
   <input type="text" wicket:id="text2" value="" name="text2"/>
   <input type="submit"/>
</form>

which can produce a query string in firefox like this:
http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test

"x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="

I am attaching the example quickstart app and a possible fix.

  was:
A form fails to submit when it has the method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.

This happens because the form is constructed by wicket like this:

<form wicket:id="form2" method="get" id="form26" action="">
   <div style="display:none">
      <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
      <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
   </div>
   <input type="text" wicket:id="text2" value="" name="text2"/>
   <input type="submit"/>
</form>

which can produce a query string in firefox like this:
http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test

"x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="

I am attaching the example quickstart app and a possible fix.


> CryptedUrlWebRequestCodingStrategy fails in form with method="get"
> ------------------------------------------------------------------
>
>                 Key: WICKET-2675
>                 URL: https://issues.apache.org/jira/browse/WICKET-2675
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.4.5
>            Reporter: Scott MacKenzie
>            Priority: Minor
>         Attachments: crypt-bug.patch, crypt-bug.zip
>
>
> A form fails to submit when it has method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.
> This happens because the form is constructed by wicket like this:
> <form wicket:id="form2" method="get" id="form26" action="">
>    <div style="display:none">
>       <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
>       <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
>    </div>
>    <input type="text" wicket:id="text2" value="" name="text2"/>
>    <input type="submit"/>
> </form>
> which can produce a query string in firefox like this:
> http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test
> "x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="
> I am attaching the example quickstart app and a possible fix.

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


[jira] Updated: (WICKET-2675) CryptedUrlWebRequestCodingStrategy fails in form with method="get"

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

Scott MacKenzie updated WICKET-2675:
------------------------------------

    Attachment: crypt-bug.zip

The quickstart app to reproduce this.

> CryptedUrlWebRequestCodingStrategy fails in form with method="get"
> ------------------------------------------------------------------
>
>                 Key: WICKET-2675
>                 URL: https://issues.apache.org/jira/browse/WICKET-2675
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.4.5
>            Reporter: Scott MacKenzie
>            Priority: Minor
>         Attachments: crypt-bug.patch, crypt-bug.zip
>
>
> A form fails to submit when it has the method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.
> This happens because the form is constructed by wicket like this:
> <form wicket:id="form2" method="get" id="form26" action="">
>    <div style="display:none">
>       <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
>       <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
>    </div>
>    <input type="text" wicket:id="text2" value="" name="text2"/>
>    <input type="submit"/>
> </form>
> which produces a query string like this:
> http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test
> "x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="
> I am attaching the example quickstart app and a possible fix.

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


[jira] Resolved: (WICKET-2675) CryptedUrlWebRequestCodingStrategy fails in form with method="get"

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

Igor Vaynberg resolved WICKET-2675.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4.6
         Assignee: Igor Vaynberg

> CryptedUrlWebRequestCodingStrategy fails in form with method="get"
> ------------------------------------------------------------------
>
>                 Key: WICKET-2675
>                 URL: https://issues.apache.org/jira/browse/WICKET-2675
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.4.5
>            Reporter: Scott MacKenzie
>            Assignee: Igor Vaynberg
>            Priority: Minor
>             Fix For: 1.4.6
>
>         Attachments: crypt-bug.patch, crypt-bug.zip
>
>
> A form fails to submit when it has method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.
> This happens because the form is constructed by wicket like this:
> <form wicket:id="form2" method="get" id="form26" action="">
>    <div style="display:none">
>       <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
>       <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
>    </div>
>    <input type="text" wicket:id="text2" value="" name="text2"/>
>    <input type="submit"/>
> </form>
> which can produce a query string in firefox like this:
> http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test
> "x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="
> I am attaching the example quickstart app and a possible fix.

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


[jira] Updated: (WICKET-2675) CryptedUrlWebRequestCodingStrategy fails in form with method="get"

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

Scott MacKenzie updated WICKET-2675:
------------------------------------

    Comment: was deleted

(was: A possible fix for this bug.)

> CryptedUrlWebRequestCodingStrategy fails in form with method="get"
> ------------------------------------------------------------------
>
>                 Key: WICKET-2675
>                 URL: https://issues.apache.org/jira/browse/WICKET-2675
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.4.5
>            Reporter: Scott MacKenzie
>            Priority: Minor
>         Attachments: crypt-bug.patch, crypt-bug.zip
>
>
> A form fails to submit when it has the method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.
> This happens because the form is constructed by wicket like this:
> <form wicket:id="form2" method="get" id="form26" action="">
>    <div style="display:none">
>       <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
>       <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
>    </div>
>    <input type="text" wicket:id="text2" value="" name="text2"/>
>    <input type="submit"/>
> </form>
> which can produce a query string in firefox like this:
> http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test
> "x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="
> I am attaching the example quickstart app and a possible fix.

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


[jira] Updated: (WICKET-2675) CryptedUrlWebRequestCodingStrategy fails in form with method="get"

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

Scott MacKenzie updated WICKET-2675:
------------------------------------

    Description: 
A form fails to submit when it has the method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.

This happens because the form is constructed by wicket like this:

<form wicket:id="form2" method="get" id="form26" action="">
   <div style="display:none">
      <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
      <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
   </div>
   <input type="text" wicket:id="text2" value="" name="text2"/>
   <input type="submit"/>
</form>

which produces a query string like this:
http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test

"x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="

I am attaching the example quickstart app and a possible fix.

  was:
A form fails to submit when it has the method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.

This happens because the form is constructed by wicket like this:
{code}
<form wicket:id="form2" method="get" id="form26" action="">
   <div style="display:none">
      <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
      <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
   </div>
   <input type="text" wicket:id="text2" value="" name="text2"/>
   <input type="submit"/>
</form>
{code}
which produces a query string like this:
http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test

"x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="

I am attaching the example quickstart app and a possible fix.


> CryptedUrlWebRequestCodingStrategy fails in form with method="get"
> ------------------------------------------------------------------
>
>                 Key: WICKET-2675
>                 URL: https://issues.apache.org/jira/browse/WICKET-2675
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.4.5
>            Reporter: Scott MacKenzie
>            Priority: Minor
>
> A form fails to submit when it has the method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.
> This happens because the form is constructed by wicket like this:
> <form wicket:id="form2" method="get" id="form26" action="">
>    <div style="display:none">
>       <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
>       <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
>    </div>
>    <input type="text" wicket:id="text2" value="" name="text2"/>
>    <input type="submit"/>
> </form>
> which produces a query string like this:
> http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test
> "x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="
> I am attaching the example quickstart app and a possible fix.

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


[jira] Updated: (WICKET-2675) CryptedUrlWebRequestCodingStrategy fails in form with method="get"

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

Scott MacKenzie updated WICKET-2675:
------------------------------------

    Comment: was deleted

(was: The quickstart app to reproduce this.)

> CryptedUrlWebRequestCodingStrategy fails in form with method="get"
> ------------------------------------------------------------------
>
>                 Key: WICKET-2675
>                 URL: https://issues.apache.org/jira/browse/WICKET-2675
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.4.5
>            Reporter: Scott MacKenzie
>            Priority: Minor
>         Attachments: crypt-bug.patch, crypt-bug.zip
>
>
> A form fails to submit when it has the method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.
> This happens because the form is constructed by wicket like this:
> <form wicket:id="form2" method="get" id="form26" action="">
>    <div style="display:none">
>       <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
>       <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
>    </div>
>    <input type="text" wicket:id="text2" value="" name="text2"/>
>    <input type="submit"/>
> </form>
> which can produce a query string in firefox like this:
> http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test
> "x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="
> I am attaching the example quickstart app and a possible fix.

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


[jira] Commented: (WICKET-2675) CryptedUrlWebRequestCodingStrategy fails in form with method="get"

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

Juergen Donnerstag commented on WICKET-2675:
--------------------------------------------

patch applied to 1.4. Issue remains open since it must be tested against 1.5 as well which currently is not possible

> CryptedUrlWebRequestCodingStrategy fails in form with method="get"
> ------------------------------------------------------------------
>
>                 Key: WICKET-2675
>                 URL: https://issues.apache.org/jira/browse/WICKET-2675
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.4.5
>            Reporter: Scott MacKenzie
>            Priority: Minor
>         Attachments: crypt-bug.patch, crypt-bug.zip
>
>
> A form fails to submit when it has method="get" set in a wicket application which is using CryptedUrlWebRequestCodingStrategy.
> This happens because the form is constructed by wicket like this:
> <form wicket:id="form2" method="get" id="form26" action="">
>    <div style="display:none">
>       <input type="hidden" name="form26_hf_0" id="form26_hf_0" />
>       <input type="hidden" name="x" value="vcH4-yiA7z1xdg19IZiML85IPOzB2CaoynoU6UPAVS9n2G2S2bamuw" />
>    </div>
>    <input type="text" wicket:id="text2" value="" name="text2"/>
>    <input type="submit"/>
> </form>
> which can produce a query string in firefox like this:
> http://localhost:8080/crypt-bug/?form26_hf_0=&x=YhsA9niKQasfMz8FBHuRP1lLAZXPdZy8s1XWlmYcu7WwhnsP*VusYw&text2=test
> "x" is the second parameter in the query string, but CryptedUrlWebRequestCodingStrategy accesses this parameter as "?x=" where in this case it is "&x="
> I am attaching the example quickstart app and a possible fix.

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