Tom Kmec created WICKET-4592:
--------------------------------

             Summary: WicketAjaxDebug.logError used in 
Wicket.Head.addJavascript - JS error when wicket-ajax.js not loaded
                 Key: WICKET-4592
                 URL: https://issues.apache.org/jira/browse/WICKET-4592
             Project: Wicket
          Issue Type: Bug
    Affects Versions: 1.5.7
            Reporter: Tom Kmec


{{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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to