[ https://issues.apache.org/jira/browse/WICKET-1931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marco Rico-Gomez updated WICKET-1931: ------------------------------------- Attachment: wicket-1931.patch I had the same problem and noticed that the class MockHttpServletRequest doesn't handle multipart form requests correct if no files are available (uploadedFiles == null || uploadedFiles.size() == 0). I created a patch which adds a new test case in FormTesterTest and a possible bugfix in MockHttpServletRequest. > FormTester doesn't correctly submit a form when a FileUploadField was not set > (which is not required) > ----------------------------------------------------------------------------------------------------- > > Key: WICKET-1931 > URL: https://issues.apache.org/jira/browse/WICKET-1931 > Project: Wicket > Issue Type: Bug > Components: wicket > Affects Versions: 1.4-M3 > Environment: Windows XP PL SP 2, Java 1.6.0_10 > Reporter: Artur Wronski > Attachments: wicket-1931.patch > > > FormTester doesn't correctly submit a form when a FileUploadField was not > set. > This file is not required. > So it is impossible to create a real test because I am forced to always set a > File to check to whole form. > There was discussion about this problem here: > http://www.nabble.com/FormTester-and-FileUploadField-td18566869.html > I will be very grateful if you can fix it :) > Artur -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.