<?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 Webscript Share proxy issue in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/webscript-share-proxy-issue/m-p/19882#M8798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everbody&lt;/P&gt;&lt;P&gt;I'm going into the circle with a webscript issue and need some light.&lt;/P&gt;&lt;P&gt;So I've created a backend webscript to send back metadata fields for a document model.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/sgirardin/easyContent2Metadata/blob/feature/dropdownListsFilled/easyContent2Metadata-platform-jar/src/main/resources/alfresco/extension/templates/webscripts/org/alfresco/extension/ec2m/DropDownList/allMetadataFields.get.desc.xml" title="https://github.com/sgirardin/easyContent2Metadata/blob/feature/dropdownListsFilled/easyContent2Metadata-platform-jar/src/main/resources/alfresco/extension/templates/webscripts/org/alfresco/extension/ec2m/DropDownList/allMetadataFields.get.desc.xml" rel="nofollow noopener noreferrer"&gt;easyContent2Metadata/allMetadataFields.get.desc.xml at feature/dropdownListsFilled · sgirardin/easyContent2Metadata · Gi…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This webscript is called in share to populate a dropdown list. For the moment it works because it (the webscript) is called by directly passing by the repository (&lt;SPAN class=""&gt;&lt;A class="jive-link-external-small" href="http://localhost:8080/alfresco/s/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8080/alfresco/s/&lt;/A&gt;&lt;/SPAN&gt;...).&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/sgirardin/easyContent2Metadata/blob/feature/dropdownListsFilled/easyContent2Metadata-share-jar/src/main/resources/alfresco/web-extension/site-webscripts/org/alfresco/form-controls/dynamic-property-dropdown.ftl" title="https://github.com/sgirardin/easyContent2Metadata/blob/feature/dropdownListsFilled/easyContent2Metadata-share-jar/src/main/resources/alfresco/web-extension/site-webscripts/org/alfresco/form-controls/dynamic-property-dropdown.ftl" rel="nofollow noopener noreferrer"&gt;easyContent2Metadata/dynamic-property-dropdown.ftl at feature/dropdownListsFilled · sgirardin/easyContent2Metadata · Git…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I try to call it like this in the js: Alfresco.constants.PROXY_URI + "/ec2m/dropdownlist/retrieveallMetadataFields?qname I get a 500 error exception with the following log in the console: XML Parsing Error: no root element found&lt;BR /&gt;&lt;SPAN&gt;Location: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://localhost:8080/share/proxy/alfresco//e2cm/dropdownlist/retrieveallMetadataFields?qname=" rel="nofollow noopener noreferrer" target="_blank"&gt;http://localhost:8080/share/proxy/alfresco//e2cm/dropdownlist/retrieveallMetadataFields?qname=&lt;/A&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.alfresco.org/model/custommodelmanagement/1.0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.alfresco.org/model/custommodelmanagement/1.0&lt;/A&gt;&lt;SPAN&gt;}customModelManagementModel&lt;/SPAN&gt;&lt;BR /&gt;Any ideas what goes wrong in the share proxy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alfresco version: 5.2.g&lt;/P&gt;&lt;P&gt;Share version: 5.2.f&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Nov 2017 21:17:49 GMT</pubDate>
    <dc:creator>gluck113</dc:creator>
    <dc:date>2017-11-12T21:17:49Z</dc:date>
    <item>
      <title>Webscript Share proxy issue</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-share-proxy-issue/m-p/19882#M8798</link>
      <description>Hi everbodyI'm going into the circle with a webscript issue and need some light.So I've created a backend webscript to send back metadata fields for a document model.easyContent2Metadata/allMetadataFields.get.desc.xml at feature/dropdownListsFilled · sgirardin/easyContent2Metadata · Gi…&amp;nbsp;This webscri</description>
      <pubDate>Sun, 12 Nov 2017 21:17:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-share-proxy-issue/m-p/19882#M8798</guid>
      <dc:creator>gluck113</dc:creator>
      <dc:date>2017-11-12T21:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript Share proxy issue</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-share-proxy-issue/m-p/19883#M8799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Encode url parameters using&amp;nbsp;encodeURIComponent method.It will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 06:48:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-share-proxy-issue/m-p/19883#M8799</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2017-11-13T06:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Webscript Share proxy issue</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/webscript-share-proxy-issue/m-p/19884#M8800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it worked! Thanks alot. I wouldn't have guessed it was that.&lt;/P&gt;&lt;P&gt;Code works fine with this code:&lt;/P&gt;&lt;PRE&gt;"/ec2m/dropdownlist/retrieveallMetadataFields?qname=" + encodeURIComponent(qnameToSearch.toString());&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 20:54:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/webscript-share-proxy-issue/m-p/19884#M8800</guid>
      <dc:creator>gluck113</dc:creator>
      <dc:date>2017-11-13T20:54:21Z</dc:date>
    </item>
  </channel>
</rss>

