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

WicketAjaxDebug.logError used in Wicket.Head.addJavascript - JS error when wicket-ajax-debug.js not loaded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.7
    • 1.5.8, 6.0.0-beta3
    • None
    • None

    Description

      Wicket.Head.addJavascript (defined in wicket-ajax.js) encapsulates javascript in this code:

      content = 'try

      {'+content+'}

      catch(e)

      {WicketAjaxDebug.logError(e);}

      ';

      However, WicketAjaxDebug can be undefined as it's declared in wicket-ajax-debug.js which might not be included. As a consequence, catch block will fail and obfuscate any error catched.

      I believe this catch block should call Wicket.Log.error(e) instead.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            tomdotcom Tom Kmec
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: