<?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: Share: A JSONObject text must begin with '{' in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/share-a-jsonobject-text-must-begin-with/m-p/271116#M224246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After learning out how to debug Alfresco in Eclipse, I found the root of the problem: I had the following property in my catalina.properties file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;http.nonProxyHosts="localhost"&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;The quotes were not being removed by the code. This line should instead be&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;http.nonProxyHosts=localhost&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jan 2012 21:58:57 GMT</pubDate>
    <dc:creator>jevon</dc:creator>
    <dc:date>2012-01-09T21:58:57Z</dc:date>
    <item>
      <title>Share: A JSONObject text must begin with '{'</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-a-jsonobject-text-must-begin-with/m-p/271114#M224244</link>
      <description>Hi,I have been trying to get Alfresco 4.0.b working on an existing Tomcat 7.0.22 on Windows XP using MySQL. I can get the explorer application to work fine, but I can't get the Share application to work at all.Tomcat is running on port 8081, but I have followed the instructions at https://wiki.alfre</description>
      <pubDate>Mon, 19 Dec 2011 00:06:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-a-jsonobject-text-must-begin-with/m-p/271114#M224244</guid>
      <dc:creator>jevon</dc:creator>
      <dc:date>2011-12-19T00:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Share: A JSONObject text must begin with '{'</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-a-jsonobject-text-must-begin-with/m-p/271115#M224245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I installed Wireshark to debug the network traffic, and I think I found the cause of the problem (&lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/en/viewtopic.php?p=123456#p123456" rel="nofollow noopener noreferrer"&gt;#123456&lt;/A&gt;&lt;SPAN&gt; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;): we are behind a HTTP proxy, and Share is not respecting these settings – in particular, to NOT use the proxy for localhost: (In this log, 130.123.172.212 == localhost)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;130.123.172.212 -&amp;gt; proxy: GET &lt;A href="http://localhost:8081/alfresco/s/api/admin/restrictions?guest=true" rel="nofollow noopener noreferrer"&gt;http://localhost:8081/alfresco/s/api/admin/restrictions?guest=true&lt;/A&gt; HTTP/1.1&lt;BR /&gt;proxy -&amp;gt; 130.123.172.212: HTTP/1.1 201 Moved Permanently&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Location: &lt;A href="http://130.123.172.212" rel="nofollow noopener noreferrer"&gt;http://130.123.172.212&lt;/A&gt;&lt;BR /&gt;130.123.172.212 -&amp;gt; proxy: GET &lt;A href="http://130.123.172.212" rel="nofollow noopener noreferrer"&gt;http://130.123.172.212&lt;/A&gt; HTTP/1.1&lt;BR /&gt;proxy -&amp;gt; 130.123.172.212: either 200 OK or 404 Not Found, depending on the proxy&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;Share should not even be calling the web proxy, since 130.123.172.212 == localhost. It's picking up a web proxy location from &lt;/SPAN&gt;&lt;EM&gt;somewhere&lt;/EM&gt;&lt;SPAN&gt;, but I have no idea where.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This exact problem was reported in &lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/ALF-1518" rel="nofollow noopener noreferrer"&gt;ALF-1518&lt;/A&gt;&lt;SPAN&gt; and apparently was fixed, but I haven't found how to set or override the proxy. In particular, none of these methods work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* Through Control Panel/Internet Options&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Through Control Panel/Java/Network Settings&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Through TOMCAT_HOME/conf/catalina.conf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Through TOMCAT_HOME/bin/setenv.bat&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Through manually setting JAVA_OPTS in System/Runtime Properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Manually aliasing 130.123.172.212 to localhost in windows/system32/drivers/etc/hosts&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that these methods don't work because I am trying to manually set a different proxy on a different IP. So. How do I get Share to respect proxy settings?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: A list of properties that I've set: -Dhttp.proxyHost=xxx -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=localhost -Dhttp.proxySet=true&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2011 01:13:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-a-jsonobject-text-must-begin-with/m-p/271115#M224245</guid>
      <dc:creator>jevon</dc:creator>
      <dc:date>2011-12-19T01:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Share: A JSONObject text must begin with '{'</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-a-jsonobject-text-must-begin-with/m-p/271116#M224246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After learning out how to debug Alfresco in Eclipse, I found the root of the problem: I had the following property in my catalina.properties file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;http.nonProxyHosts="localhost"&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;The quotes were not being removed by the code. This line should instead be&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;http.nonProxyHosts=localhost&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 21:58:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-a-jsonobject-text-must-begin-with/m-p/271116#M224246</guid>
      <dc:creator>jevon</dc:creator>
      <dc:date>2012-01-09T21:58:57Z</dc:date>
    </item>
  </channel>
</rss>

