You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Funk (JIRA)" <ji...@apache.org> on 2009/07/23 18:47:14 UTC
[jira] Created: (WICKET-2394) KittenCaptcha example broken
KittenCaptcha example broken
----------------------------
Key: WICKET-2394
URL: https://issues.apache.org/jira/browse/WICKET-2394
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.4-RC7, 1.4-RC6, 1.4-RC5, 1.4-RC4, 1.4-RC3, 1.4-RC2, 1.4-RC1, 1.4-M3, 1.4-M2, 1.4-M1
Environment: Server & Browsers running on:
Linux DLKA-59HZ13J 2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 19:49:51 UTC 2009 i686 GNU/Linux
Browser: Firefox and Konqueror
URL: http://svn.apache.org/repos/asf/wicket/trunk
Repository Root: http://svn.apache.org/repos/asf
Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
Revision: 796623
Reporter: Martin Funk
Fix For: 1.4.0
KittenCaptcha example broken
Nullpointer thrown
ERROR - RequestCycle -
java.lang.NullPointerException
at org.apache.wicket.extensions.captcha.kittens.KittenCaptchaPanel$2.onEvent(KittenCaptchaPanel.java:183)
at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:299)
Following diff does the trick. But maybe this is platform dependent as I currently can test undre linux environment.
Index: src/main/java/org/apache/wicket/extensions/captcha/kittens/KittenCaptchaPanel.java
===================================================================
--- src/main/java/org/apache/wicket/extensions/captcha/kittens/KittenCaptchaPanel.java (revision 796623)
+++ src/main/java/org/apache/wicket/extensions/captcha/kittens/KittenCaptchaPanel.java (working copy)
@@ -170,7 +170,7 @@
// ajax request passing in mouse co-ordinates
return generateCallbackScript("showLoadingIndicator(); wicketAjaxGet('" +
getCallbackUrl(onlyTargetActivePage) +
- "&x=' + getEventX(this, event) + '&y=' + getEventY(this, event)");
+ "&x=' + getEventX(this, event) + '&y=' + getEventY(this, event)");
}
@SuppressWarnings("unchecked")
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (WICKET-2394) KittenCaptcha example broken
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-2394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg resolved WICKET-2394.
-----------------------------------
Resolution: Fixed
Assignee: Igor Vaynberg
> KittenCaptcha example broken
> ----------------------------
>
> Key: WICKET-2394
> URL: https://issues.apache.org/jira/browse/WICKET-2394
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4-M1, 1.4-M2, 1.4-M3, 1.4-RC1, 1.4-RC2, 1.4-RC3, 1.4-RC4, 1.4-RC5, 1.4-RC6, 1.4-RC7
> Environment: Server & Browsers running on:
> Linux DLKA-59HZ13J 2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 19:49:51 UTC 2009 i686 GNU/Linux
> Browser: Firefox and Konqueror
> URL: http://svn.apache.org/repos/asf/wicket/trunk
> Repository Root: http://svn.apache.org/repos/asf
> Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
> Revision: 796623
> Reporter: Martin Funk
> Assignee: Igor Vaynberg
> Fix For: 1.4.0
>
>
> KittenCaptcha example broken
> Nullpointer thrown
> ERROR - RequestCycle -
> java.lang.NullPointerException
> at org.apache.wicket.extensions.captcha.kittens.KittenCaptchaPanel$2.onEvent(KittenCaptchaPanel.java:183)
> at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177)
> at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:299)
> Following diff does the trick. But maybe this is platform dependent as I currently can test undre linux environment.
> Index: src/main/java/org/apache/wicket/extensions/captcha/kittens/KittenCaptchaPanel.java
> ===================================================================
> --- src/main/java/org/apache/wicket/extensions/captcha/kittens/KittenCaptchaPanel.java (revision 796623)
> +++ src/main/java/org/apache/wicket/extensions/captcha/kittens/KittenCaptchaPanel.java (working copy)
> @@ -170,7 +170,7 @@
> // ajax request passing in mouse co-ordinates
> return generateCallbackScript("showLoadingIndicator(); wicketAjaxGet('" +
> getCallbackUrl(onlyTargetActivePage) +
> - "&x=' + getEventX(this, event) + '&y=' + getEventY(this, event)");
> + "&x=' + getEventX(this, event) + '&y=' + getEventY(this, event)");
> }
>
> @SuppressWarnings("unchecked")
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.