Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2394

KittenCaptcha example broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 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
    • 1.4.0
    • wicket
    • None

    Description

      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")

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            funkattack Martin Funk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: