<?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 ADF process diagram component - 401 Unauthorized error in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/adf-process-diagram-component-401-unauthorized-error/m-p/8163#M3713</link>
    <description>&lt;P&gt;We have implemented the adf-diagram component in our ADF v4.3 app. When trying to display the diagram for a running process instance we are getting a 401 - Unauthorized error. The logged in user is then immediately logged out. This is only occurring when accessing a process instance on a remote APS server, in this case an aws ec2 instance. The issue does not occur when the app is pointed to a local APS instance. We are also able to reproduce the issue with the demo-shell app when pointed to the same remote server. Here's the error reported:&lt;/P&gt;&lt;P&gt;GET https://myhostport/activiti-app/app/rest/process-instances/587515/model-json 401&lt;/P&gt;&lt;P&gt;Error: HTTP Status 401 – Unauthorized&amp;lt;/h1&amp;gt;&amp;lt;hr class="line" /&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Type&amp;lt;/b&amp;gt; Status Report&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Message&amp;lt;/b&amp;gt; Access Denied&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Description&amp;lt;/b&amp;gt; The request has not been applied because it lacks valid authentication credentials for the target resource.&amp;lt;/p&amp;gt;&amp;lt;hr class="line" /&amp;gt;&amp;lt;h3&amp;gt;Apache Tomcat/8.5.28&amp;lt;/h3&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;BR /&gt;at v.&amp;lt;anonymous&amp;gt; (main-es2015.1c396ef7d23a5ac1eeec.js:1)&lt;BR /&gt;at v.n.emit (main-es2015.1c396ef7d23a5ac1eeec.js:1)&lt;BR /&gt;at XMLHttpRequest.t.onreadystatechange [as __zone_symbol__ON_PROPERTYreadystatechange] (main-es2015.1c396ef7d23a5ac1eeec.js:1)&lt;BR /&gt;at XMLHttpRequest.T (polyfills-es2015.752b36de6112257c6215.js:1)&lt;BR /&gt;at l.invokeTask (polyfills-es2015.752b36de6112257c6215.js:1)&lt;BR /&gt;at Object.onInvokeTask (main-es2015.1c396ef7d23a5ac1eeec.js:1)&lt;BR /&gt;at l.invokeTask (polyfills-es2015.752b36de6112257c6215.js:1)&lt;BR /&gt;at i.runTask (polyfills-es2015.752b36de6112257c6215.js:1)&lt;BR /&gt;at u.invokeTask [as invoke] (polyfills-es2015.752b36de6112257c6215.js:1)&lt;BR /&gt;at p (polyfills-es2015.752b36de6112257c6215.js:1)&lt;/P&gt;</description>
    <pubDate>Tue, 13 Apr 2021 17:35:57 GMT</pubDate>
    <dc:creator>markknaus</dc:creator>
    <dc:date>2021-04-13T17:35:57Z</dc:date>
    <item>
      <title>ADF process diagram component - 401 Unauthorized error</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-process-diagram-component-401-unauthorized-error/m-p/8163#M3713</link>
      <description>&lt;P&gt;We have implemented the adf-diagram component in our ADF v4.3 app. When trying to display the diagram for a running process instance we are getting a 401 - Unauthorized error. The logged in user is then immediately logged out. This is only occurring when accessing a process instance on a remote APS server, in this case an aws ec2 instance. The issue does not occur when the app is pointed to a local APS instance. We are also able to reproduce the issue with the demo-shell app when pointed to the same remote server. Here's the error reported:&lt;/P&gt;&lt;P&gt;GET https://myhostport/activiti-app/app/rest/process-instances/587515/model-json 401&lt;/P&gt;&lt;P&gt;Error: HTTP Status 401 – Unauthorized&amp;lt;/h1&amp;gt;&amp;lt;hr class="line" /&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Type&amp;lt;/b&amp;gt; Status Report&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Message&amp;lt;/b&amp;gt; Access Denied&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;Description&amp;lt;/b&amp;gt; The request has not been applied because it lacks valid authentication credentials for the target resource.&amp;lt;/p&amp;gt;&amp;lt;hr class="line" /&amp;gt;&amp;lt;h3&amp;gt;Apache Tomcat/8.5.28&amp;lt;/h3&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;BR /&gt;at v.&amp;lt;anonymous&amp;gt; (main-es2015.1c396ef7d23a5ac1eeec.js:1)&lt;BR /&gt;at v.n.emit (main-es2015.1c396ef7d23a5ac1eeec.js:1)&lt;BR /&gt;at XMLHttpRequest.t.onreadystatechange [as __zone_symbol__ON_PROPERTYreadystatechange] (main-es2015.1c396ef7d23a5ac1eeec.js:1)&lt;BR /&gt;at XMLHttpRequest.T (polyfills-es2015.752b36de6112257c6215.js:1)&lt;BR /&gt;at l.invokeTask (polyfills-es2015.752b36de6112257c6215.js:1)&lt;BR /&gt;at Object.onInvokeTask (main-es2015.1c396ef7d23a5ac1eeec.js:1)&lt;BR /&gt;at l.invokeTask (polyfills-es2015.752b36de6112257c6215.js:1)&lt;BR /&gt;at i.runTask (polyfills-es2015.752b36de6112257c6215.js:1)&lt;BR /&gt;at u.invokeTask [as invoke] (polyfills-es2015.752b36de6112257c6215.js:1)&lt;BR /&gt;at p (polyfills-es2015.752b36de6112257c6215.js:1)&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 17:35:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-process-diagram-component-401-unauthorized-error/m-p/8163#M3713</guid>
      <dc:creator>markknaus</dc:creator>
      <dc:date>2021-04-13T17:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: ADF process diagram component - 401 Unauthorized error</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-process-diagram-component-401-unauthorized-error/m-p/8164#M3714</link>
      <description>&lt;P&gt;Hi, to be honest, because it works in a scenario but not another it suggests is probably something related to the second's configuration.&lt;/P&gt;
&lt;P&gt;What kind of authentication are you using?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 15:04:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-process-diagram-component-401-unauthorized-error/m-p/8164#M3714</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2021-04-14T15:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: ADF process diagram component - 401 Unauthorized error</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-process-diagram-component-401-unauthorized-error/m-p/8165#M3715</link>
      <description>&lt;P&gt;Most probably you have a CORS error in the console.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 15:45:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-process-diagram-component-401-unauthorized-error/m-p/8165#M3715</guid>
      <dc:creator>mauriziovitale</dc:creator>
      <dc:date>2021-04-14T15:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: ADF process diagram component - 401 Unauthorized error</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-process-diagram-component-401-unauthorized-error/m-p/8166#M3716</link>
      <description>&lt;P&gt;Thank you both for your replies. It does seem that it may have to do with type of authentication. I've tested the adf-diagram component against 2 environments that use basic auth and they both failed. I tested it against another environment that uses OAUTH running in a docker compose and it succeeded.&lt;/P&gt;&lt;P&gt;While the issue is occurring in the adf-diagram component the real problem is the api call that it makes-&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;/app/rest/process-instances/{processInstanceId}/model-json&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;located in the js-api method ModelJsonBpmnApi::getModelJSONForProcessDefinition(). The error can be reproduced in Postman.&amp;nbsp; Is there some configuration in APS that needs to be done to enable calls to /activiti-app/app/rest/... API's?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 23:32:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-process-diagram-component-401-unauthorized-error/m-p/8166#M3716</guid>
      <dc:creator>markknaus</dc:creator>
      <dc:date>2021-04-15T23:32:54Z</dc:date>
    </item>
  </channel>
</rss>

