<?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: Web script cannot be called from Share  if name end with '/' in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/web-script-cannot-be-called-from-share-if-name-end-with/m-p/302440#M255570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In share url as "Alfresco.constants.PROXY_URI***" will be submited to a spring mvc controller which is class&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;org.springframework.extensions.webscripts.servlet.mvc.EndPointProxyController&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; ,in this controller class the request url is rebuild for data webscript request, during the rebuilding process ,the ending slash will be removed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That means your &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; url: Alfresco.constants.PROXY_URI + "mytest/"&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; will be submited to &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://localhost:8080/alfresco/service/mytest" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/mytest&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;,which can't be found( in your desc.xml url is setted to "/mytest/") ,so changing "/mytest/" to "/mytest" will work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Sep 2014 04:48:14 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2014-09-20T04:48:14Z</dc:date>
    <item>
      <title>Web script cannot be called from Share  if name end with '/'</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-cannot-be-called-from-share-if-name-end-with/m-p/302439#M255569</link>
      <description>Hi, I've got a quite strange issue which is the Webscript defined in Alfresco cannot be called from Share if it ends with "/" in its url tag. To be more specific, I have defined an Alfresco side web service "mytest"(defined as &amp;lt;url&amp;gt;/mytest/&amp;lt;/url&amp;gt;) which is working when I access it with t</description>
      <pubDate>Fri, 19 Sep 2014 15:05:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-cannot-be-called-from-share-if-name-end-with/m-p/302439#M255569</guid>
      <dc:creator>sunquanbin</dc:creator>
      <dc:date>2014-09-19T15:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Web script cannot be called from Share  if name end with '/'</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/web-script-cannot-be-called-from-share-if-name-end-with/m-p/302440#M255570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In share url as "Alfresco.constants.PROXY_URI***" will be submited to a spring mvc controller which is class&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;org.springframework.extensions.webscripts.servlet.mvc.EndPointProxyController&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; ,in this controller class the request url is rebuild for data webscript request, during the rebuilding process ,the ending slash will be removed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That means your &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; url: Alfresco.constants.PROXY_URI + "mytest/"&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; will be submited to &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;A href="http://localhost:8080/alfresco/service/mytest" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/mytest&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;,which can't be found( in your desc.xml url is setted to "/mytest/") ,so changing "/mytest/" to "/mytest" will work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Sep 2014 04:48:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/web-script-cannot-be-called-from-share-if-name-end-with/m-p/302440#M255570</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-09-20T04:48:14Z</dc:date>
    </item>
  </channel>
</rss>

