maxPostSizeInBytes in DefaultMultipartWrapperFactory is invalid for big values
------------------------------------------------------------------------------

                 Key: STS-837
                 URL: http://www.stripesframework.org/jira/browse/STS-837
             Project: Stripes
          Issue Type: Bug
          Components: ActionBean Dispatching
    Affects Versions: Release 1.5.6
         Environment: Using commons fileupload.
            Reporter: Christian Poitras
            Priority: Minor


When specifying a big value like 2gb for FileUpload.MaximumPostSize, the 
resulting value will greatly differ from the expected value.
This is due to the use of an integer to compute the maximum size at line 127.

To solve the issue, replace
  int number = Integer.parseInt(digits);
By
  long number = Long.parseLong(digits);

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to