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

Bertrand Barraud commented on CMIS-961:
---------------------------------------

Hey again,

I ended by modifying the CMISLIB to be able to set attribute headers from 
repo.createDocument(arg1, arg2, headers={Authorization:'cnxkzkfs'})  in my own 
script.

This way, I can force it from my script only, and I'm not changing the usual 
behavior of the library.

Not the best way either, because I didn't took the time to see why this header 
attr sundenly disappear for file over 2Mb but it fit my needs at the moment, I 
will take a look if you guys fix this bug in next release.

> 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
>            Assignee: Jeff Potts
>         Attachments: Sample-Bigish.pdf, Sample-Smallish.pdf
>
>
> 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)

Reply via email to