You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Alexey Zlobin (JIRA)" <ji...@apache.org> on 2017/12/29 06:28:00 UTC

[jira] [Created] (WICKET-6515) Function 'submitMultipartForm' doesn't work correctly in FF

Alexey Zlobin created WICKET-6515:
-------------------------------------

             Summary: Function 'submitMultipartForm' doesn't work correctly in FF
                 Key: WICKET-6515
                 URL: https://issues.apache.org/jira/browse/WICKET-6515
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 7.9.0
         Environment: Ubuntu 16.04, Firefox 57.0.1 (64 bit)
            Reporter: Alexey Zlobin


We had done the migration from wicket 6 to wicket 7.9 and after that NextButton with custom AjaxFormSubmitBehavior doesn't work as expected in FireFox (in other browsers it works well). After investigation I found that the reason of this issue lays in this code:

file: wicket-ajax-jquery.js:979

// handled, restore state and return true
form.action = originalFormAction;
form.target = originalFormTarget;
form.method = originalFormMethod;
form.enctype = originalFormEnctype;
form.encoding = originalFormEncoding;

For FF it looks like 'form.action' is receive 'originalFormAction' before request (submit) executing. If I comment out this code then 'form.submit()' will work well for FF and for other browsers.

P.S. Currently I moved this code to handleMultipartComplete but it doesn't cover cases when it will not be completed any way.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)