<?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: Alfresco Webscript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-webscript/m-p/292401#M245531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi rutaveejshah,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The variable you are referring - Alfresco.constants.PROXY_URI is for calling Alfresco webscripts only from Share client side js.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/api/people/admin/preferences" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/api/people/admin/preferences&lt;/A&gt;&lt;SPAN&gt; [Alfresco script]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco.constants.PROXY_URI +&amp;nbsp; "api/people/admin/preferences" which will&amp;nbsp; be &lt;/SPAN&gt;&lt;A href="http://localhost:8080/share/proxy/alfresco/api/people/admin/preferences" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/api/people/admin/preferences&lt;/A&gt;&lt;SPAN&gt; [From Share client side js]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Need to use proxy for ajax call as a work around solution for cross site scripting .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are calling alfresco script from share script js controller then no&amp;nbsp; need to use prpxy, you can use remote object.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Sep 2013 06:41:30 GMT</pubDate>
    <dc:creator>niketapatel</dc:creator>
    <dc:date>2013-09-27T06:41:30Z</dc:date>
    <item>
      <title>Alfresco Webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-webscript/m-p/292400#M245530</link>
      <description>Hello Everyone!I have craete a webscript in alfresco. I have call that webscript from share yui user interface. Now for calling that webscript i have used the whole path like&amp;nbsp; http://localhost:8080/alfresco/service/{web script url} NOw is there any service url avilable which will replace http://loca</description>
      <pubDate>Fri, 27 Sep 2013 05:43:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-webscript/m-p/292400#M245530</guid>
      <dc:creator>rutaveejshah</dc:creator>
      <dc:date>2013-09-27T05:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-webscript/m-p/292401#M245531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi rutaveejshah,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The variable you are referring - Alfresco.constants.PROXY_URI is for calling Alfresco webscripts only from Share client side js.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/api/people/admin/preferences" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/api/people/admin/preferences&lt;/A&gt;&lt;SPAN&gt; [Alfresco script]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco.constants.PROXY_URI +&amp;nbsp; "api/people/admin/preferences" which will&amp;nbsp; be &lt;/SPAN&gt;&lt;A href="http://localhost:8080/share/proxy/alfresco/api/people/admin/preferences" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/share/proxy/alfresco/api/people/admin/preferences&lt;/A&gt;&lt;SPAN&gt; [From Share client side js]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Need to use proxy for ajax call as a work around solution for cross site scripting .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are calling alfresco script from share script js controller then no&amp;nbsp; need to use prpxy, you can use remote object.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 06:41:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-webscript/m-p/292401#M245531</guid>
      <dc:creator>niketapatel</dc:creator>
      <dc:date>2013-09-27T06:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-webscript/m-p/292402#M245532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, is there any way to disable the call to /proxy/alfresco/api?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By now, i'm trying to automatically access to edit-metadata page after uploading a file via the html-uploader. I've added this little piece of code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Show edit-metadata form after upload (by Tiziano)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var nodeRefURL="edit-metadata?nodeRef=" + response.nodeRef;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco.util.navigateTo(nodeRefURL); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;at the end of _onUploadSucces method in html-upload.js.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The script works correctly but, when parsing the url to the browser, /proxy/alfresco/api is added between share/ and /page and this results in 404 error-page not found.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If i delete /proxy/alfresco/api from the url, the edit-metadata page is displayed correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;correct URL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://debianalfrescotest:8080/share/page/edit-metadata?nodeRef=workspace://SpacesStore/407f179a-8d75-4676-ae1e-bd4ddd341216" rel="nofollow noopener noreferrer"&gt;http://debianalfrescotest:8080/share/page/edit-metadata?nodeRef=workspace://SpacesStore/407f179a-8d75-4676-ae1e-bd4ddd341216&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;parsed URL (results in 404 error)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://debianalfrescotest:8080/share/proxy/alfresco/api/page/edit-metadata?nodeRef=workspace://SpacesStore/407f179a-8d75-4676-ae1e-bd4ddd341216" rel="nofollow noopener noreferrer"&gt;http://debianalfrescotest:8080/share/proxy/alfresco/api/page/edit-metadata?nodeRef=workspace://SpacesStore/407f179a-8d75-4676-ae1e-bd4ddd341216&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, how can I disable the call to /proxy/alfresco/api?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 09:34:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-webscript/m-p/292402#M245532</guid>
      <dc:creator>tytanix</dc:creator>
      <dc:date>2013-11-12T09:34:00Z</dc:date>
    </item>
  </channel>
</rss>

