<!-- 
RSS generated by JIRA (8.1.3#801003-sha1:6b6f07cffadda9a0d6efe24639daed8ce94dcdd6) at Sat Feb 10 05:51:33 GMT 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Rivet Logic Corporation JIRA </title>
    <link>https://issues.rivetlogic.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.1.3</version>
        <build-number>801003</build-number>
        <build-date>13-09-2019</build-date>
    </build-info>


<item>
            <title>[CMA-44] RestExecuterImpl.createFilePostMethod causes the buffering of the entire file InputStream to determine the size of the stream, hence causing an OutOfMemory: heap space exception</title>
                <link>https://issues.rivetlogic.com/browse/CMA-44</link>
                <project id="10015" key="CMA">Remote Alfresco API rivet</project>
                    <description>RestExecuterImpl.createFilePostMethod is creating an instance of InputStreamRequestEntity using &lt;a href=&quot;http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/methods/InputStreamRequestEntity.html#InputStreamRequestEntity(java.io.InputStream)&quot;&gt;http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/methods/InputStreamRequestEntity.html#InputStreamRequestEntity(java.io.InputStream)&lt;/a&gt; constructor, which implies that it will buffer the entire InputStream to determine the size of the InputStream. For large enough files, this is causing:&lt;br/&gt;
&lt;br/&gt;
com.rivetlogic.core.cma.exception.CmaRuntimeException: java.lang.OutOfMemoryError: Java heap space&lt;br/&gt;
&amp;nbsp;	at com.rivetlogic.core.cma.impl.ContentServiceImpl.writeContentFromStream(ContentServiceImpl.java:124)&lt;br/&gt;
&amp;nbsp;	at com.rivetlogic.hbsp.dewey.listeners.UploadListenerAction.processUpload(UploadListenerAction.java:153)&lt;br/&gt;
...&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&lt;br/&gt;
There is a way to overcome this issue by providing the file size to the content service and channeling it to the RestExecuterImpl.createFilePostMethod method, and using this InputStreamRequestEntity constructor instead: &lt;a href=&quot;http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/methods/InputStreamRequestEntity.html#InputStreamRequestEntity(java.io.InputStream,%20long)&quot;&gt;http://hc.apache.org/httpclient-3.x/apidocs/org/apache/commons/httpclient/methods/InputStreamRequestEntity.html#InputStreamRequestEntity(java.io.InputStream,%20long)&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
This issue affects all versions of CMA/RAAr and will probably require a new writeContentFromStream method to be added to CMA/RAAr.</description>
                <environment></environment>
        <key id="15218">CMA-44</key>
            <summary>RestExecuterImpl.createFilePostMethod causes the buffering of the entire file InputStream to determine the size of the stream, hence causing an OutOfMemory: heap space exception</summary>
                <type id="4" iconUrl="https://issues.rivetlogic.com/secure/viewavatar?size=xsmall&amp;avatarId=11090&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="2" iconUrl="https://issues.rivetlogic.com/images/icons/priorities/critical.svg">Critical</priority>
                        <status id="1" iconUrl="https://issues.rivetlogic.com/images/icons/statuses/open.png" description="The issue is open and ready for the assignee to start work on it.">Open</status>
                    <statusCategory id="2" key="new" colorName="blue-gray"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="djkim">Dong-Jun Kim [X]</reporter>
                        <labels>
                    </labels>
                <created>Fri, 12 Jun 2009 07:34:43 -0400</created>
                <updated>Fri, 15 Oct 2010 10:50:40 -0400</updated>
                                            <version>1.1.2</version>
                    <version>1.1.3</version>
                    <version>1.2.0</version>
                    <version>1.2.1</version>
                    <version>1.2.2</version>
                    <version>1.2.3</version>
                    <version>1.3.0</version>
                    <version>1.3.1</version>
                    <version>1.4.0</version>
                    <version>1.4.1</version>
                    <version>1.4.2</version>
                    <version>1.5.0</version>
                    <version>1.5.1</version>
                    <version>1.6.0</version>
                    <version>1.6.1</version>
                    <version>1.7.0</version>
                    <version>1.7.1</version>
                    <version>1.8.0</version>
                    <version>1.8.1</version>
                    <version>1.9.0</version>
                    <version>1.9.1</version>
                    <version>1.10.0</version>
                                                    <component>CMA Impl</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>0</watches>
                                                                        <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                        <customfield id="customfield_11470" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10020" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>MoSCoW</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10010"><![CDATA[Must do]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11170" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i00iv3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10070" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3057</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>