[ 
https://issues.apache.org/jira/browse/WICKET-4129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sven Meier resolved WICKET-4129.
--------------------------------

    Resolution: Invalid
      Assignee: Sven Meier

FileUploadBase#sizeMax and FileUploadBase#fileSizeMax are two different 
settings, MultipartServletWebRequestImpl configures the former only.

You have either to hook your code into the MultipartServletWebRequestImpl 
creation and set #fileSizeMax yourself or we should a new setting to 
IApplicationSettings.
                
> setting getApplicationSettings().setDefaultMaximumUploadSize() has no effect
> ----------------------------------------------------------------------------
>
>                 Key: WICKET-4129
>                 URL: https://issues.apache.org/jira/browse/WICKET-4129
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.1, 1.5.2
>         Environment: GAE 1.5.5, wicket 1.5-snapshot
>            Reporter: Hielke Hoeve
>            Assignee: Sven Meier
>              Labels: DefaultMaximumUploadSize, GAE, appspot, fileupload, 
> multipart, wicket
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> I am creating an Google Appspot - Wicket application and want to allow users 
> to upload a file. This file can be upto 15MB, since Google uses a limited JRE 
> it is not possible to create Files. 
> When setting DefaultMaximumUploadSize to 15MB nothing changes, Appspot still 
> throws a SecurityException. Wicket is not really using the 
> DefaultMaximumUploadSize setting at all, it is passed along the multipart 
> handling but not used. The DiskFileItemFactory is not receiving the 
> DefaultMaximumUploadSize and sticks to a default value of 10240.
> I am unable to make a patch file at the moment, can make one later if need 
> be. Here is the required change:
> MultipartServletWebRequestImpl.java:90 is currently:
> this(request, filterPrefix, maxSize, upload, new 
> DiskFileItemFactory(Application.get().getResourceSettings().getFileCleaner()));
> and it should be:
> this(request, filterPrefix, maxSize, upload, new DiskFileItemFactory(maxSize, 
> null, Application.get().getResourceSettings().getFileCleaner()));

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