You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2009/11/02 21:01:59 UTC
[jira] Created: (SLING-1167) getParameters(String name) internally
uses getParameterMap() causing OutOfMemoryError on file upload
getParameters(String name) internally uses getParameterMap() causing OutOfMemoryError on file upload
----------------------------------------------------------------------------------------------------
Key: SLING-1167
URL: https://issues.apache.org/jira/browse/SLING-1167
Project: Sling
Issue Type: Bug
Components: Engine
Affects Versions: Engine 2.0.6
Reporter: Felix Meschberger
Assignee: Felix Meschberger
Fix For: Engine 2.1.0
The HttpServletRequest.getParameters(String name) internally uses a method which causes all request parameters to be converted to strings before accessing the requested parameter. This may cause an OutOfMemoryError if the request contains (big) uploaded files.
The fix is that the getParameters method is implemented in terms of accessing the RequestParameterMap and converting the RequestParamer[] to a String[] for the single parameter requested.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (SLING-1167) getParameters(String name) internally
uses getParameterMap() causing OutOfMemoryError on file upload
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger closed SLING-1167.
------------------------------------
Close after release
> getParameters(String name) internally uses getParameterMap() causing OutOfMemoryError on file upload
> ----------------------------------------------------------------------------------------------------
>
> Key: SLING-1167
> URL: https://issues.apache.org/jira/browse/SLING-1167
> Project: Sling
> Issue Type: Bug
> Components: Engine
> Affects Versions: Engine 2.0.6
> Reporter: Felix Meschberger
> Assignee: Felix Meschberger
> Fix For: Engine 2.1.0
>
>
> The HttpServletRequest.getParameters(String name) internally uses a method which causes all request parameters to be converted to strings before accessing the requested parameter. This may cause an OutOfMemoryError if the request contains (big) uploaded files.
> The fix is that the getParameters method is implemented in terms of accessing the RequestParameterMap and converting the RequestParamer[] to a String[] for the single parameter requested.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SLING-1167) getParameters(String name) internally
uses getParameterMap() causing OutOfMemoryError on file upload
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger resolved SLING-1167.
--------------------------------------
Resolution: Fixed
Fixed in Rev. 832083
> getParameters(String name) internally uses getParameterMap() causing OutOfMemoryError on file upload
> ----------------------------------------------------------------------------------------------------
>
> Key: SLING-1167
> URL: https://issues.apache.org/jira/browse/SLING-1167
> Project: Sling
> Issue Type: Bug
> Components: Engine
> Affects Versions: Engine 2.0.6
> Reporter: Felix Meschberger
> Assignee: Felix Meschberger
> Fix For: Engine 2.1.0
>
>
> The HttpServletRequest.getParameters(String name) internally uses a method which causes all request parameters to be converted to strings before accessing the requested parameter. This may cause an OutOfMemoryError if the request contains (big) uploaded files.
> The fix is that the getParameters method is implemented in terms of accessing the RequestParameterMap and converting the RequestParamer[] to a String[] for the single parameter requested.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.