aegif / CmisSync

Synchronize content between a CMIS repository and your desktop. Like Dropbox for Enterprise Content Management!

Home Page:http://CmisSync.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Chunked encoding upload is not supported on the HTTP/1.0 protocol" error despite Tomcat setting protocol="HTTP/1.1"

paprika27 opened this issue · comments

Steps to reproduce:
use CmisSync to upload large file to fresh Alfresco 5.1 Community edition

Expected result:
since

curl -i url/share/page/context/mine/myfiles

returns

HTTP/1.1

and

curl -i URL/alfresco/api/-default-/public/cmis/versions/1.1/atom/children?id=***

returns

HTTP/1.1

it should work.

Actual result:

2017-03-10 00:10:29,503 [13] ERROR CmisSync.StatusIconController [(null)] - Error syncing 'archive': Cannot access http://URL/alfresco/api/-default-/public/cmis/versions/1.1/atom/children?id=: Chunked encoding upload is not supported on the HTTP/1.0 protocol.
CmisSync.Lib.Cmis.BaseException: Cannot access http://URL/alfresco/api/-default-/public/cmis/versions/1.1/atom/children?id=
: Chunked encoding upload is not supported on the HTTP/1.0 protocol. ---> DotCMIS.Exceptions.CmisConnectionException: Cannot access http://URL/alfresco/api/-default-/public/cmis/versions/1.1/atom/children?id=***: Chunked encoding upload is not supported on the HTTP/1.0 protocol. ---> System.Net.ProtocolViolationException: Chunked encoding upload is not supported on the HTTP/1.0 protocol.
at System.Net.HttpWebRequest.CheckProtocol(Boolean onRequestStream)
at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
at System.Net.HttpWebRequest.GetRequestStream()
at DotCMIS.Binding.Impl.HttpUtils.Invoke(UrlBuilder url, String method, String contentType, Output writer, BindingSession session, Nullable1 offset, Nullable1 length, IDictionary2 headers) --- End of inner exception stack trace --- at CmisSync.Lib.Sync.CmisRepo.SynchronizedFolder.ProcessRecoverableException(String logMessage, Exception exception) at CmisSync.Lib.Sync.CmisRepo.SynchronizedFolder.CrawlRemote(IFolder remoteFolder, String remotePath, String localFolder, IList1 remoteFiles, IList`1 remoteFolders)
at CmisSync.Lib.Sync.CmisRepo.SynchronizedFolder.CrawlSync(IFolder remoteFolder, String remotePath, String localFolder)
at CmisSync.Lib.Sync.CmisRepo.SynchronizedFolder.CrawlSyncAndUpdateChangeLogToken(IFolder remoteFolder, String remotePath, String localFolder)
at CmisSync.Lib.Sync.CmisRepo.SynchronizedFolder.Sync(Boolean syncFull)
at CmisSync.Lib.Sync.CmisRepo.SynchronizedFolder.<>c__DisplayClass6.<.ctor>b__4(Object o, DoWorkEventArgs args)
--- End of inner exception stack trace ---

Background:
Alfresco is running in a tomcat whose server.xml contains

protocol="HTTP/1.1"

Issue #411 still?