chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Esplin (JIRA)" <>
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


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

Here is a test case:
   # 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 =
            newDoc = self._repo.createDocument(documentName,
        self.assertEquals(documentName, newDoc.getName())
        self.assertEquals(newDoc.getContentStream().read(), bigfileContents)

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:
>             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
> doc = repo.createDocument(remoteFile, props, folder, localFile, properties['contentType'],
> 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

View raw message