<?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 Re: CMIS Query length limited to 7884 characters? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-length-limited-to-7884-characters/m-p/277130#M230260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the tip, that got me on the right track.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran into the same problem when trying to execute a ~13k long CMIS query (don't ask…), so I decided to bump up it up to 20k.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since my Tomcat server is only indirectly accessible through Apache (via mod_proxy_ajp), there were some extra measures that had to be taken in order to get this to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Set the &lt;/SPAN&gt;&lt;A href="http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html" rel="nofollow noopener noreferrer"&gt;packetSize&lt;/A&gt;&lt;SPAN&gt; attribute for your AJP Connector.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;Connector port="8009" protocol="AJP/1.3" redirectPort="8443" tomcatAuthentication="false" enableLookups="false" packetSize="20480"/&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. In your Apache configuration, set the &lt;/SPAN&gt;&lt;A href="http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestfieldsize" rel="nofollow noopener noreferrer"&gt;LimitRequestFieldSize&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyiobuffersize" rel="nofollow noopener noreferrer"&gt;ProxyIOBufferSize&lt;/A&gt;&lt;SPAN&gt; directives to a corresponding value&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;LimitRequestFieldSize 20480&lt;BR /&gt;ProxyIOBufferSize 20480&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2011 00:30:52 GMT</pubDate>
    <dc:creator>stefan776</dc:creator>
    <dc:date>2011-07-27T00:30:52Z</dc:date>
    <item>
      <title>CMIS Query length limited to 7884 characters?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-length-limited-to-7884-characters/m-p/277128#M230258</link>
      <description>Hi all,We are working on a project using CMIS 0.3.0 to connect to an Alfresco 3.4.0 repository.We noticed that when executing a query longer than 7884 characters an exception occurs. The server side (CMIS @ Alfresco) shows the following stack trace&lt;IMG id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;rg.springframework.extensions.webscripts.WebScript</description>
      <pubDate>Wed, 15 Jun 2011 15:08:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-query-length-limited-to-7884-characters/m-p/277128#M230258</guid>
      <dc:creator>geert</dc:creator>
      <dc:date>2011-06-15T15:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Query length limited to 7884 characters?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-length-limited-to-7884-characters/m-p/277129#M230259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks to a mailing list reply from Florian, we were able to fix it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On 15 Jun 2011, at 18:00, Florian Müller wrote:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Hi Mano,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; It's not an OpenCMIS issues, but it is not Alfresco specific either. All Tomcat based CMIS repositories have this issue and it may affect other HTTP servers as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; The CMIS specification says that the server has to add a Location header to its query response that is "representing the feed for that query". That basically means that the query is repeated in the HTTP header.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; The default header buffer size in Tomcat 6 and 7 is 8k. If you remove all other headers you end up with about 7884 byte – plus/minus a few bytes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; You can increase header buffer size in Tomcat. See [1].&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; Florian&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; [1] &lt;/SPAN&gt;&lt;A href="http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#Standard_Implementation" rel="nofollow noopener noreferrer"&gt;http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#Standard_Implementation&lt;/A&gt;&lt;SPAN&gt; -&amp;gt; maxHttpHeaderSize&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2011 07:18:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-query-length-limited-to-7884-characters/m-p/277129#M230259</guid>
      <dc:creator>geert</dc:creator>
      <dc:date>2011-06-16T07:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Query length limited to 7884 characters?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-query-length-limited-to-7884-characters/m-p/277130#M230260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the tip, that got me on the right track.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran into the same problem when trying to execute a ~13k long CMIS query (don't ask…), so I decided to bump up it up to 20k.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since my Tomcat server is only indirectly accessible through Apache (via mod_proxy_ajp), there were some extra measures that had to be taken in order to get this to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Set the &lt;/SPAN&gt;&lt;A href="http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html" rel="nofollow noopener noreferrer"&gt;packetSize&lt;/A&gt;&lt;SPAN&gt; attribute for your AJP Connector.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;Connector port="8009" protocol="AJP/1.3" redirectPort="8443" tomcatAuthentication="false" enableLookups="false" packetSize="20480"/&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. In your Apache configuration, set the &lt;/SPAN&gt;&lt;A href="http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestfieldsize" rel="nofollow noopener noreferrer"&gt;LimitRequestFieldSize&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyiobuffersize" rel="nofollow noopener noreferrer"&gt;ProxyIOBufferSize&lt;/A&gt;&lt;SPAN&gt; directives to a corresponding value&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;LimitRequestFieldSize 20480&lt;BR /&gt;ProxyIOBufferSize 20480&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2011 00:30:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-query-length-limited-to-7884-characters/m-p/277130#M230260</guid>
      <dc:creator>stefan776</dc:creator>
      <dc:date>2011-07-27T00:30:52Z</dc:date>
    </item>
  </channel>
</rss>

