<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CMIS via squid only works for small files in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cmis-via-squid-only-works-for-small-files/m-p/303153#M256283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to help out somebody who is sitting behind a squid proxy server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using, from Chemistry, the python cmislib but have also tried the java implmentation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that only small files can be uploaded/updated - 125kb seems to be OK, 256kb not although I manage to upload some slightly larger files running everything locally.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's fairly easy to test if you've got squid installed by setting the http(s)_proxy variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i.e.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;export http_proxy=&lt;/SPAN&gt;&lt;A href="http://localhost:3128" rel="nofollow noopener noreferrer"&gt;http://localhost:3128&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;export https_proxy=&lt;/SPAN&gt;&lt;A href="http://localhost:3128" rel="nofollow noopener noreferrer"&gt;http://localhost:3128&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought I'd ask as Squid is mentioned here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://docs.alfresco.com/4.2/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fws-caching-about.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.2/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2Fws-caching-about.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The python error is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "/usr/local/lib/python2.7/dist-packages/cmislib/model.py", line 1185, in createDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = self._cmisClient.post(postUrl.encode('utf-8'), xmlDoc.toxml(encoding='utf-8'), ATOM_XML_ENTRY_TYPE)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "/usr/local/lib/python2.7/dist-packages/cmislib/model.py", line 260, in post&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; **kwargs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "/usr/local/lib/python2.7/dist-packages/cmislib/net.py", line 286, in post&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return opener.open(request)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "/usr/lib/python2.7/urllib2.py", line 400, in open&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; response = self._open(req, data)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "/usr/lib/python2.7/urllib2.py", line 418, in _open&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '_open', req)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = func(*args)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "/usr/lib/python2.7/urllib2.py", line 1207, in http_open&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return self.do_open(httplib.HTTPConnection, req)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise URLError(err)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;urllib2.URLError: &amp;lt;urlopen error [Errno 32] Broken pipe&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The squid logs (edited) are as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Success&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1392803545.462&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 29 127.0.0.1 TCP_MISS/401 329 GET &lt;/SPAN&gt;&lt;A href="http://alfresco/alfresco/cmisatom" rel="nofollow noopener noreferrer"&gt;http://alfresco/alfresco/cmisatom&lt;/A&gt;&lt;SPAN&gt; - DIRECT/ip.ad.dr.ess -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1392803545.620&amp;nbsp;&amp;nbsp;&amp;nbsp; 156 127.0.0.1 TCP_MISS/200 29202 GET &lt;/SPAN&gt;&lt;A href="http://alfresco/alfresco/cmisatom" rel="nofollow noopener noreferrer"&gt;http://alfresco/alfresco/cmisatom&lt;/A&gt;&lt;SPAN&gt; - DIRECT/ip.ad.dr.ess application/atomsvc+xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1392803545.651&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15 127.0.0.1 TCP_MISS/401 329 GET &lt;/SPAN&gt;&lt;A href="http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/path" rel="nofollow noopener noreferrer"&gt;http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/path&lt;/A&gt;&lt;SPAN&gt;? - DIRECT/ip.ad.dr.ess -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1392803545.809&amp;nbsp;&amp;nbsp;&amp;nbsp; 157 127.0.0.1 TCP_MISS/200 7733 GET &lt;/SPAN&gt;&lt;A href="http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/path" rel="nofollow noopener noreferrer"&gt;http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/path&lt;/A&gt;&lt;SPAN&gt;? - DIRECT/ip.ad.dr.ess application/atom+xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1392803545.906&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 29 127.0.0.1 TCP_MISS/401 329 POST &lt;/SPAN&gt;&lt;A href="http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/children" rel="nofollow noopener noreferrer"&gt;http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/children&lt;/A&gt;&lt;SPAN&gt;? - DIRECT/ip.ad.dr.ess -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1392803546.396&amp;nbsp;&amp;nbsp;&amp;nbsp; 489 127.0.0.1 TCP_MISS/409 9280 POST &lt;/SPAN&gt;&lt;A href="http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/children" rel="nofollow noopener noreferrer"&gt;http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/children&lt;/A&gt;&lt;SPAN&gt;? - DIRECT/ip.ad.dr.ess text/html&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1392803546.412&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 14 127.0.0.1 TCP_MISS/401 329 GET &lt;/SPAN&gt;&lt;A href="http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/path" rel="nofollow noopener noreferrer"&gt;http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/path&lt;/A&gt;&lt;SPAN&gt;? - DIRECT/ip.ad.dr.ess -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1392803546.586&amp;nbsp;&amp;nbsp;&amp;nbsp; 172 127.0.0.1 TCP_MISS/200 11509 GET &lt;/SPAN&gt;&lt;A href="http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/path" rel="nofollow noopener noreferrer"&gt;http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/path&lt;/A&gt;&lt;SPAN&gt;? - DIRECT/ip.ad.dr.ess application/atom+xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1392803546.611&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15 127.0.0.1 TCP_MISS/401 378 PUT &lt;/SPAN&gt;&lt;A href="http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/content/manual2.txt" rel="nofollow noopener noreferrer"&gt;http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/content/manual2.txt&lt;/A&gt;&lt;SPAN&gt;? - DIRECT/ip.ad.dr.ess text/plain&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1392803547.127&amp;nbsp;&amp;nbsp;&amp;nbsp; 514 127.0.0.1 TCP_MISS/201 759 PUT &lt;/SPAN&gt;&lt;A href="http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/content/manual2.txt" rel="nofollow noopener noreferrer"&gt;http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/content/manual2.txt&lt;/A&gt;&lt;SPAN&gt;? - DIRECT/ip.ad.dr.ess text/plain&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Failure&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1392803561.654&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 34 127.0.0.1 TCP_MISS/401 329 GET &lt;/SPAN&gt;&lt;A href="http://alfresco/alfresco/cmisatom" rel="nofollow noopener noreferrer"&gt;http://alfresco/alfresco/cmisatom&lt;/A&gt;&lt;SPAN&gt; - DIRECT/ip.ad.dr.ess -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1392803561.808&amp;nbsp;&amp;nbsp;&amp;nbsp; 152 127.0.0.1 TCP_MISS/200 29202 GET &lt;/SPAN&gt;&lt;A href="http://alfresco/alfresco/cmisatom" rel="nofollow noopener noreferrer"&gt;http://alfresco/alfresco/cmisatom&lt;/A&gt;&lt;SPAN&gt; - DIRECT/ip.ad.dr.ess application/atomsvc+xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1392803561.838&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15 127.0.0.1 TCP_MISS/401 329 GET &lt;/SPAN&gt;&lt;A href="http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/path" rel="nofollow noopener noreferrer"&gt;http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/path&lt;/A&gt;&lt;SPAN&gt;? - DIRECT/ip.ad.dr.ess -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1392803562.218&amp;nbsp;&amp;nbsp;&amp;nbsp; 380 127.0.0.1 TCP_MISS/200 7733 GET &lt;/SPAN&gt;&lt;A href="http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/path" rel="nofollow noopener noreferrer"&gt;http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/path&lt;/A&gt;&lt;SPAN&gt;? - DIRECT/ip.ad.dr.ess application/atom+xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1392803562.543&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 30 127.0.0.1 TCP_MISS/401 329 POST &lt;/SPAN&gt;&lt;A href="http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/children" rel="nofollow noopener noreferrer"&gt;http://alfresco/alfresco/cmisatom/5ed06978-3f57-xxxx-a9de-0404443ddb6d/children&lt;/A&gt;&lt;SPAN&gt;? - DIRECT/ip.ad.dr.ess -&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Feb 2014 10:37:50 GMT</pubDate>
    <dc:creator>idwright</dc:creator>
    <dc:date>2014-02-19T10:37:50Z</dc:date>
    <item>
      <title>CMIS via squid only works for small files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-via-squid-only-works-for-small-files/m-p/303153#M256283</link>
      <description>I'm trying to help out somebody who is sitting behind a squid proxy server.Using, from Chemistry, the python cmislib but have also tried the java implmentation.The problem is that only small files can be uploaded/updated - 125kb seems to be OK, 256kb not although I manage to upload some slightly lar</description>
      <pubDate>Wed, 19 Feb 2014 10:37:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-via-squid-only-works-for-small-files/m-p/303153#M256283</guid>
      <dc:creator>idwright</dc:creator>
      <dc:date>2014-02-19T10:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS via squid only works for small files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-via-squid-only-works-for-small-files/m-p/303154#M256284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you verify that this problem does not exist without squid?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 16:00:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-via-squid-only-works-for-small-files/m-p/303154#M256284</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-02-19T16:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS via squid only works for small files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-via-squid-only-works-for-small-files/m-p/303155#M256285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes - it works fine without squid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not an option for my colleague but in my local tests exactly the same code/file works when the http(s)_proxy variables are not set to point to the squid instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 07:53:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-via-squid-only-works-for-small-files/m-p/303155#M256285</guid>
      <dc:creator>idwright</dc:creator>
      <dc:date>2014-02-20T07:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS via squid only works for small files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-via-squid-only-works-for-small-files/m-p/303156#M256286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't had much time for this as we've come up with a work around but thought I'd post the following in case it's useful&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I attach strace to the squid process and log the output to the console then larger files will work - if the output of strace is sent to /dev/null then the original behaviour comes back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the interaction with squid is definitely the problem but it's not clear to me why - different clients exhibit the same symptoms so a possible next step would be to try a different CMIS server and see what happens&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 08:26:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-via-squid-only-works-for-small-files/m-p/303156#M256286</guid>
      <dc:creator>idwright</dc:creator>
      <dc:date>2014-03-28T08:26:36Z</dc:date>
    </item>
  </channel>
</rss>

