<?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 Different results depending on access mechanism in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/different-results-depending-on-access-mechanism/m-p/261078#M214208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm experiencing a problem that slowly becomes a real pain to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the following webscript to retrieve information about an object (assume I already logged in with admin:admin):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://MYHOST.com:8080/alfresco/service/cmis/s/workspace:SpacesStore/i/62442fb2-2ffe-4e04-a9ea-0909bd6ac235?returnVersion=latest" rel="nofollow noopener noreferrer"&gt;http://MYHOST.com:8080/alfresco/service/cmis/s/workspace:SpacesStore/i/62442fb2-2ffe-4e04-a9ea-0909bd6ac235?returnVersion=latest&lt;/A&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;SPAN&gt;Whenever I access this script via Firefox or Chrome or whatever browser there may be, the result is correct, showing the latest version of that document in question, including all changes made to the metadata in the lifecycle of that document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;But&lt;/STRONG&gt;&lt;SPAN&gt;, when I try to access the webscript on the command line by CURL or maybe even WGET&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;curl -uadmin:admin &lt;A href="http://MYHOST.com:8080/alfresco/service/cmis/s/workspace:SpacesStore/i/62442fb2-2ffe-4e04-a9ea-0909bd6ac235?returnVersion=latest" rel="nofollow noopener noreferrer"&gt;http://MYHOST.com:8080/alfresco/service/cmis/s/workspace:SpacesStore/i/62442fb2-2ffe-4e04-a9ea-0909bd6ac235?returnVersion=latest&lt;/A&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;the result is the very first version of that document. The changes made to the metadata in Share are not reflected in the XML delivered to that request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can reproduce that all the time. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please, could anyone give me a hint what (maybe trivial) error I'm running in?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot, best regard,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Flo B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2011 09:52:34 GMT</pubDate>
    <dc:creator>flob</dc:creator>
    <dc:date>2011-07-28T09:52:34Z</dc:date>
    <item>
      <title>Different results depending on access mechanism</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/different-results-depending-on-access-mechanism/m-p/261078#M214208</link>
      <description>Hi all,I'm experiencing a problem that slowly becomes a real pain to me.I am using the following webscript to retrieve information about an object (assume I already logged in with admin:admin):http://MYHOST.com:8080/alfresco/service/cmis/s/workspace&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;pacesStore/i/62442fb2-2ffe-4e04-a9ea-0909bd6ac235</description>
      <pubDate>Thu, 28 Jul 2011 09:52:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/different-results-depending-on-access-mechanism/m-p/261078#M214208</guid>
      <dc:creator>flob</dc:creator>
      <dc:date>2011-07-28T09:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Different results depending on access mechanism</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/different-results-depending-on-access-mechanism/m-p/261079#M214209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried checking the locale settings?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe from the browser you are using a different locale.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco uses locale to create indexes that involve searches.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 09:57:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/different-results-depending-on-access-mechanism/m-p/261079#M214209</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2011-07-28T09:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Different results depending on access mechanism</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/different-results-depending-on-access-mechanism/m-p/261080#M214210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the hint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All systems (Alfresco server and the Linux boxes invoking CURL) use en_US.UTF-8.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Only the windows machine on which the browser access to the webscript is successful uses de_DE&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I guess that can't be the solution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Flo B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 10:22:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/different-results-depending-on-access-mechanism/m-p/261080#M214210</guid>
      <dc:creator>flob</dc:creator>
      <dc:date>2011-07-28T10:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Different results depending on access mechanism</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/different-results-depending-on-access-mechanism/m-p/261081#M214211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I had the same problem and it was the stupid language. In my OpenCmis code, I had &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;parameter.put(SessionParameter.LOCALE_ISO3166_COUNTRY, "");&lt;BR /&gt;parameter.put(SessionParameter.LOCALE_ISO639_LANGUAGE, "en");&lt;BR /&gt;parameter.put(SessionParameter.LOCALE_VARIANT, "US");&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;When I commented out these lines, everything started to work great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 20:38:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/different-results-depending-on-access-mechanism/m-p/261081#M214211</guid>
      <dc:creator>mathwizard</dc:creator>
      <dc:date>2011-09-19T20:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Different results depending on access mechanism</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/different-results-depending-on-access-mechanism/m-p/261082#M214212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi mathwizard,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for sharing your solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Indeed, that was the problem. I figured it out some weeks ago (sorry, I've forgotten to paste my solution).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone is doing CMIS-Queries via PHP and CURL, be sure to include the following headers (change 'Accept-Language' according to your preferred language):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;$this-&amp;gt;curl = curl_init();&lt;BR /&gt;$headers = array('Accept-Language: de_DE', 'Cache-Control: max-age=0', 'Accept-Charset: utf-8');&lt;BR /&gt;curl_setopt($this-&amp;gt;curl, CURLOPT_HTTPHEADER, $headers);&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Florian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 07:20:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/different-results-depending-on-access-mechanism/m-p/261082#M214212</guid>
      <dc:creator>flob</dc:creator>
      <dc:date>2011-09-20T07:20:39Z</dc:date>
    </item>
  </channel>
</rss>

