<?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 Call the Audit query webscript from a js file in the repo in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/call-the-audit-query-webscript-from-a-js-file-in-the-repo/m-p/295710#M248840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently working on an auditing report and having issues when calling the Audit query webscript (&lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/api/audit/query/AuditExampleLogin2" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/api/audit/query/AuditExampleLogin2&lt;/A&gt;&lt;SPAN&gt;) from a javascript file in the repo. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried the following after enabling the 'remote' object for alfresco (its enabled only for share OOTB)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; var url = "&lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/api/audit/query/AuditExampleLogin2?verbose=true" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/api/audit/query/AuditExampleLogin2?verbose=true&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; var theUrl = "/api/audit/query/AuditExampleLogin2?verbose=true";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; var json = remote.call(theUrl);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; //var connector = remote.connect("http");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; //var json = connector.call(url);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; logger.log(json);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but the returned json is complaining about authentication&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{ "status" : { "code" : 401, "name" : "Unauthorized", "description" : "The request requires HTTP authentication." }, "message" : "07200002 Authentication failed for Web Script org\/alfresco\/repository\/audit\/query.get", "exception" : "org.springframework.extensions.webscripts.WebScriptException - 07200002 Authentication failed for Web Script org\/alfresco\/repository\/audit\/query.get", &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone please advice?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kavi&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Aug 2014 05:55:59 GMT</pubDate>
    <dc:creator>kavilash23</dc:creator>
    <dc:date>2014-08-20T05:55:59Z</dc:date>
    <item>
      <title>Call the Audit query webscript from a js file in the repo</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/call-the-audit-query-webscript-from-a-js-file-in-the-repo/m-p/295710#M248840</link>
      <description>Hi Guys,I am currently working on an auditing report and having issues when calling the Audit query webscript (http://localhost:8080/alfresco/service/api/audit/query/AuditExampleLogin2) from a javascript file in the repo. I have tried the following after enabling the 'remote' object for alfresco (it</description>
      <pubDate>Wed, 20 Aug 2014 05:55:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/call-the-audit-query-webscript-from-a-js-file-in-the-repo/m-p/295710#M248840</guid>
      <dc:creator>kavilash23</dc:creator>
      <dc:date>2014-08-20T05:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Call the Audit query webscript from a js file in the repo</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/call-the-audit-query-webscript-from-a-js-file-in-the-repo/m-p/295711#M248841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should also pass the alf_ticket for admin user while invoking the audit webscript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 09:05:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/call-the-audit-query-webscript-from-a-js-file-in-the-repo/m-p/295711#M248841</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2014-08-20T09:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Call the Audit query webscript from a js file in the repo</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/call-the-audit-query-webscript-from-a-js-file-in-the-repo/m-p/295712#M248842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks ramesh you were very helpfull&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2014 04:00:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/call-the-audit-query-webscript-from-a-js-file-in-the-repo/m-p/295712#M248842</guid>
      <dc:creator>kavilash23</dc:creator>
      <dc:date>2014-08-22T04:00:40Z</dc:date>
    </item>
  </channel>
</rss>

