Bugs item #1465359, was opened at 2006-04-05 14:48
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1465359&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Ramnivas Laddad (ramnivas)
Assigned to: Nobody/Anonymous (nobody)
Summary: Crypted URL don't work right for AJAX requests

Initial Comment:
I have a tree with each node containing an AjaxLink.
Clicking on certain links works correctly, but others
fail with a 500 error.

I am using WebRequestWithCryptedUrl, creating by my
application as follows:
   protected WebRequest
newWebRequest(HttpServletRequest servletRequest) {
       return new WebRequestWithCryptedUrl(servletRequest);
   }

WebResponse is similarly crypted.

While trying to debug the problem, I see that for the
failed links, a BadPaddingException (with message
"Given final block not properly padded") is thrown when
AbstractCrypt.decryptStringToByteArray() calls the
crypt() method. This in turn throws a
WicketRuntimeException leading to a 500 error.

I am using just the default crypt factory and this is
with 1.2-beta3.

Here is output from AJAX debug console without and with
crypting:

Without crypting (successful):
 INFO:
 INFO: initiating ajax GET request with...
 INFO: url:
/?wicket:interface=:2:entityTree:node:node:0:node:nodeLink::IBehaviorListener&wicket:behaviorId=0
 INFO: successHandler:function () {
}
 INFO: failureHandler:function () {
}
 INFO: received ajax response. 6636 characters,
envelope following...
 INFO:
 INFO: <?xml version="1.0"
encoding="UTF-8"?><ajax-response><component
id="editEntity"  encoding="wicket1" ><![CDATA[<span
wicket:id="editEntity" id="editEntity">
      ... form elements ...
</span>]]></component></ajax-response>
 INFO: response envelope successfully processed
 INFO: invoking success handler...
 INFO: request successfully processed

======

With crypting (failure for the same link as earlier):
 INFO:
 INFO: initiating ajax GET request with...
 INFO: url:
/?x=iW/cSHhz+Pwr1ojlf7ljA6PRcZX2cS/LaYLnMyZvlhF5gcihT2ZorZgfkLgQh89wUEVc97dD60q0LLPs8gmcHw==&wicket:behaviorId=0
 INFO: successHandler:function () {
}
 INFO: failureHandler:function () {
}


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1465359&group_id=119783


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to