chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Esplin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CMIS-961) Connection reset by peer when trying to upload a document over 2M to Alfresco 5.0.d
Date Thu, 03 Dec 2015 23:11:10 GMT

    [ https://issues.apache.org/jira/browse/CMIS-961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15038793#comment-15038793
] 

Richard Esplin commented on CMIS-961:
-------------------------------------

I was able to reproduce this with the Alfresco repository 5.1.c and SVN Head, using the atompub
binding. 

Here is a test case:
{code}
   # CMIS-961
    def testUploadLargeFile(self):
        '''Upload a file larger than 1.5MB'''
        documentName = 'Sample-Smallish.pdf'
#        documentName = "Sample-Bigish.pdf"
        with open(documentName) as bigfile:
            bigfileContents = bigfile.read()
            bigfile.seek(0)
            newDoc = self._repo.createDocument(documentName,
                                               parentFolder=self._testFolder,
                                               contentFile=bigfile)
        self.assertEquals(documentName, newDoc.getName())
        self.assertEquals(newDoc.getContentStream().read(), bigfileContents)
{code}

I created a very large PDF, and removed chunks of pages until the test started passing. The
only difference between the PDFs is the size. It appears that the boundary is around 1.5 MB.

Sample-Smallish.pdf passes
Sample-Bigish.pdf fails

I attached my test PDFs.

> Connection reset by peer when trying to upload a document over 2M to Alfresco 5.0.d
> -----------------------------------------------------------------------------------
>
>                 Key: CMIS-961
>                 URL: https://issues.apache.org/jira/browse/CMIS-961
>             Project: Chemistry
>          Issue Type: Bug
>          Components: python-cmislib
>    Affects Versions: cmislib 0.5.1
>         Environment: Alfresco 5.0.d community edition on an Ubuntu 14.04 LTS based system.
>            Reporter: Willem Ligtenberg
>
> Using Alfresco 5.0.a I was able to store large data files (up to 250M tested) in Alfresco
using:
> doc = repo.createDocument(remoteFile, props, folder, localFile, properties['contentType'],
None)
> Now, small files work, but any file larger than 2M fails.
> Uploading the same file using CMIS Workbench works fine.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message