CmisSync
CmisSync copied to clipboard
"Chunked encoding upload is not supported on the HTTP/1.0 protocol" error despite Tomcat setting protocol="HTTP/1.1"
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, Nullable
1 offset, Nullable
1 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, IList
1 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 https://github.com/aegif/CmisSync/issues/411 still?