<?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: adf-viewer causes 401 after deploy in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12903#M5689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry but I am not able to replicate this problem it could be maybe simple if you provide something to try&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2018 14:06:42 GMT</pubDate>
    <dc:creator>eugenio_romano</dc:creator>
    <dc:date>2018-09-24T14:06:42Z</dc:date>
    <item>
      <title>adf-viewer causes 401 after deploy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12895#M5681</link>
      <description>When I&amp;nbsp;deploy my app to my webserver (Tomcat v7.0.59) when I try to preview any document (with adf-viewer),&amp;nbsp;the document viewer doesn't show it and&amp;nbsp;the console log shows a 401 error like this:GET https://o-alfresco.vmm.be/alfresco/api/-default-/public/alfresco/versions/1/nodes/5c62ee00-6a32-4406-a51</description>
      <pubDate>Mon, 17 Sep 2018 10:13:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12895#M5681</guid>
      <dc:creator>d_moeyersons</dc:creator>
      <dc:date>2018-09-17T10:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer causes 401 after deploy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12896#M5682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please provide any extra details, i.e. what are the browser error details in the Network tab. The stack traces if there's a JS error during that call, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 13:13:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12896#M5682</guid>
      <dc:creator>dvuika</dc:creator>
      <dc:date>2018-09-17T13:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer causes 401 after deploy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12897#M5683</link>
      <description>&lt;P&gt;Details&lt;/P&gt;&lt;TABLE width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;IMG src="/legacyfs/online/alfresco/23060_2018-09-17 15_25_41-Microsoft Edge.png" border="0" alt="" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Network tab capture&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Request URL: &lt;/SPAN&gt;&lt;A href="https://o-alfresco.vmm.be/alfresco/api/-default-/public/alfresco/versions/1/nodes/1370f78d-0eb0-4ddf-bfdf-69be0803eb67/renditions/pdf/content?attachment=false&amp;amp;alf_ticket=TICKET_994a22cb59b72a8a5849bb88b051256b12d21643" target="_blank" rel="nofollow noopener noreferrer"&gt;https://o-alfresco.vmm.be/alfresco/api/-default-/public/alfresco/versions/1/nodes/1370f78d-0eb0-4ddf-bfdf-69be0803eb67/renditions/pdf/content?attachment=false&amp;amp;alf_ticket=TICKET_994a22cb59b72a8a5849bb88b051256b12d21643&lt;/A&gt;&lt;BR /&gt;Request Method: GET&lt;BR /&gt;Status Code: 401 Unauthorized&lt;BR /&gt;Remote Address: 192.168.130.117:443&lt;BR /&gt;Referrer Policy: no-referrer-when-downgrade&lt;BR /&gt;Access-Control-Allow-Credentials: true&lt;BR /&gt;&lt;SPAN&gt;Access-Control-Allow-Origin: &lt;/SPAN&gt;&lt;A href="https://o-dms.vmm.be" target="_blank" rel="nofollow noopener noreferrer"&gt;https://o-dms.vmm.be&lt;/A&gt;&lt;BR /&gt;Content-Length: 360&lt;BR /&gt;Content-Type: text/html;charset=UTF-8&lt;BR /&gt;Date: Mon, 17 Sep 2018 13:24:27 GMT&lt;BR /&gt;Server: webserver&lt;BR /&gt;Set-Cookie: JSESSIONID=B35178E11C94A8CE9C8E75181863F001; Path=/alfresco/; HttpOnly&lt;BR /&gt;Vary: Origin&lt;BR /&gt;WWW-Authenticate: Negotiate&lt;BR /&gt;Accept: */*&lt;BR /&gt;Accept-Encoding: gzip, deflate, br&lt;BR /&gt;Accept-Language: nl-NL,nl;q=0.9,en-US;q=0.8,en;q=0.7&lt;BR /&gt;Connection: keep-alive&lt;BR /&gt;Host: o-alfresco.vmm.be&lt;BR /&gt;&lt;SPAN&gt;Origin: &lt;/SPAN&gt;&lt;A href="https://o-dms.vmm.be" target="_blank" rel="nofollow noopener noreferrer"&gt;https://o-dms.vmm.be&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Referer: &lt;/SPAN&gt;&lt;A href="https://o-dms.vmm.be/dms/vergadersite/vgd-test-vergadersite/vergadering/be6c3e3d-58d1-4629-b838-6601754959d4/verslag-bekijken/1370f78d-0eb0-4ddf-bfdf-69be0803eb67" target="_blank" rel="nofollow noopener noreferrer"&gt;https://o-dms.vmm.be/dms/vergadersite/vgd-test-vergadersite/vergadering/be6c3e3d-58d1-4629-b838-6601754959d4/verslag-bekijken/1370f78d-0eb0-4ddf-bfdf-69be0803eb67&lt;/A&gt;&lt;BR /&gt;User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36&lt;BR /&gt;attachment: false&lt;BR /&gt;alf_ticket: TICKET_994a22cb59b72a8a5849bb88b051256b12d21643&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;There are no js errors.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 13:40:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12897#M5683</guid>
      <dc:creator>d_moeyersons</dc:creator>
      <dc:date>2018-09-17T13:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer causes 401 after deploy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12898#M5684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried same request with Postman? to check if your Tomcat is correctly configured and URL indeed works?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 13:44:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12898#M5684</guid>
      <dc:creator>dvuika</dc:creator>
      <dc:date>2018-09-17T13:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer causes 401 after deploy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12899#M5685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Denys,&lt;/P&gt;&lt;P&gt;I tried it now. The request works fine with Postman. I get a pdf with the content of the document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 13:54:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12899#M5685</guid>
      <dc:creator>d_moeyersons</dc:creator>
      <dc:date>2018-09-17T13:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer causes 401 after deploy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12900#M5686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it looks like your configuration issue in tomcat could you maybe try to follow&amp;nbsp;this guide :&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.alfresco.com/community/application-development-framework/blog/2017/06/20/adf-cors-solving-strategies#jive_content_id_4_Enabling_CORS_in_Apache" title="https://community.alfresco.com/community/application-development-framework/blog/2017/06/20/adf-cors-solving-strategies#jive_content_id_4_Enabling_CORS_in_Apache" rel="nofollow noopener noreferrer"&gt;Enabling CORS in Apache&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 10:05:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12900#M5686</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2018-09-18T10:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer causes 401 after deploy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12901#M5687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugenio,&lt;/P&gt;&lt;P&gt;I have tried this implementation that you mention before, both globally as wel as in the webapp, I have never gotten it working with Alfresco.&lt;/P&gt;&lt;P&gt;I currently use the CORS implementation that&amp;nbsp;is commented out in the alfresco.war\WEB-INF\web.xml . It works fine. And there is no reason that it shouldn't work with the document viewer.&lt;BR /&gt;Also if there are CORS error: the console messages should mention it, it doesn't. And CORS is disabled in my Internet Explorer and MS Edge, and it&amp;nbsp;also fails there, this is no CORS problem.&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 11:27:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12901#M5687</guid>
      <dc:creator>d_moeyersons</dc:creator>
      <dc:date>2018-09-18T11:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer causes 401 after deploy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12902#M5688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also tried it in Apache HTTP server, I got exactly the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a difference between the call that causes 401 and the other calls.&lt;BR /&gt;CORS is active, the headers are returned (as you can see in the logs), so that is not the problem &amp;amp; CORS doesn't trigger 401.&lt;BR /&gt;But there is no Authorization header, instead a alf_ticket is added. Why is that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 13:28:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12902#M5688</guid>
      <dc:creator>d_moeyersons</dc:creator>
      <dc:date>2018-09-20T13:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer causes 401 after deploy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12903#M5689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry but I am not able to replicate this problem it could be maybe simple if you provide something to try&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2018 14:06:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12903#M5689</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2018-09-24T14:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer causes 401 after deploy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12904#M5690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #727174; font-family: arial,helvetica,'helvetica neue',verdana,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;Hi Eugenio&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did some more tests today, I only get the error because my Alfresco server and ADF app are on different servers.&lt;/P&gt;&lt;P&gt;(ADF runs on the same server as the share environment - We have one server for the database Postgres, one server for the Alfresco platform environment, one server for the Share and ADF environment)&lt;/P&gt;&lt;P&gt;When I upload the ADF app to the Alfresco platform (back-end) server, I get no errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also checked the Alfresco logs for csrf errors when the 401 error shows up, i get no such errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried both the Alfresco platform server and the ADF client on one server, or have you tried it on different servers?&lt;BR /&gt;My current ADF app is created for a customized Alfresco server, it has several Java extensions especially made for our organisation, it won't work well on a standard Alfresco setup. But I get the same errors with the ADF demo application:&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Alfresco/alfresco-ng2-components/tree/master/demo-shell" title="https://github.com/Alfresco/alfresco-ng2-components/tree/master/demo-shell" rel="nofollow noopener noreferrer"&gt;alfresco-ng2-components/demo-shell at master · Alfresco/alfresco-ng2-components · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if that is enough or you need more information.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 07:10:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12904#M5690</guid>
      <dc:creator>d_moeyersons</dc:creator>
      <dc:date>2018-09-25T07:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer causes 401 after deploy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12905#M5691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We use ADF apps internally with different servers and have not had any issues so far. I'm afraid we still need steps to reproduce it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try to replicate the issue with Alfresco Content Application? &lt;A class="link-titled" href="https://github.com/Alfresco/alfresco-content-app" title="https://github.com/Alfresco/alfresco-content-app" rel="nofollow noopener noreferrer"&gt;GitHub - Alfresco/alfresco-content-app: Alfresco Example Content Application&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We don't support demo shell, so please also consider using Yeoman generator to create a fresh app and document steps to reproduce the problem (ADF 2.5.0 and ACS 5.2.3 or 6.0.x)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 08:14:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12905#M5691</guid>
      <dc:creator>dvuika</dc:creator>
      <dc:date>2018-09-25T08:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer causes 401 after deploy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12906#M5692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, David has Denys says we run different apps more than once a day with more than 700 e2e test that target also the viewer.&lt;/P&gt;&lt;P&gt;So far those apps are no highlighting&amp;nbsp;any of your problems.&lt;/P&gt;&lt;P&gt;I also checked it manually on the server and they are working fine .&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is for sure your local configuration problem. My suggestion as Denys sasys&amp;nbsp;is recreating a sandbox example with your configuration starting maybe from the example content app.&lt;/P&gt;&lt;P&gt;If you can recreate this error in a sandbox app that I can try exaplaing&amp;nbsp;the step I guess we can help you better&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 09:14:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12906#M5692</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2018-09-25T09:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer causes 401 after deploy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12907#M5693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Denys recommended, I downloaded the Alfresco Content Application:&amp;nbsp;&lt;A href="https://github.com/Alfresco/alfresco-content-app" rel="nofollow noopener noreferrer"&gt;GitHub - Alfresco/alfresco-content-app: Alfresco Example Content Application&lt;/A&gt;. I am using ACS 5.2.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These were the steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Unpack alfresco-content-app-master.zip&lt;/LI&gt;&lt;LI&gt;Edit /proxy.conf.js and change the following values:&lt;/LI&gt;&lt;/UL&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;proxy.conf.js&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;&amp;nbsp;"target": "&lt;STRONG&gt;&lt;A class="jive-link-external-small" href="https://o-alfresco.vmm.be" rel="nofollow noopener noreferrer" target="_blank"&gt;https://o-alfresco.vmm.be&lt;/A&gt;&lt;/STRONG&gt;",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;"secure": &lt;STRONG&gt;true&lt;/STRONG&gt;,&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;UL&gt;&lt;LI&gt;Run: npm install&lt;/LI&gt;&lt;LI&gt;Run: npm start&lt;/LI&gt;&lt;LI&gt;Open &lt;A href="http://localhost:4200/" rel="nofollow noopener noreferrer"&gt;http://localhost:4200/&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Open a document preview&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;--&amp;gt; the document preview works correctly&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;Edit /package.json and change the following value:&lt;/LI&gt;&lt;/UL&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;package.json&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;"build": "npm run server-versions &amp;amp;&amp;amp; npm run build.libs.prod &amp;amp;&amp;amp; node --max-old-space-size=8192 node_modules/@angular/cli/bin/ng build app --prod &lt;STRONG&gt;--base-href /test/&lt;/STRONG&gt;",&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;UL&gt;&lt;LI&gt;Run: npm run build&lt;/LI&gt;&lt;LI&gt;Edit /dist/app/app.config.json and change the following value:&lt;/LI&gt;&lt;/UL&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;app.config.json&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;"ecmHost": "&lt;STRONG&gt;&lt;A class="jive-link-external-small" href="https://o-alfresco.vmm.be" rel="nofollow noopener noreferrer" target="_blank"&gt;https://o-alfresco.vmm.be&lt;/A&gt;&lt;/STRONG&gt;",&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;UL&gt;&lt;LI&gt;Create the file: /dist/app/WEB-INF/web.xml with the following content:&lt;/LI&gt;&lt;/UL&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;web.xml&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;web-app xmlns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee" rel="nofollow noopener noreferrer" target="_blank"&gt;http://java.sun.com/xml/ns/javaee&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; xmlns:xsi="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; xsi:schemaLocation="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee" rel="nofollow noopener noreferrer" target="_blank"&gt;http://java.sun.com/xml/ns/javaee&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" rel="nofollow noopener noreferrer" target="_blank"&gt;http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; version="3.0"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; metadata-complete="true"&amp;gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &amp;lt;display-name&amp;gt;ADF Test&amp;lt;/display-name&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;description&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;ADF Test&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;error-page&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;error-code&amp;gt;404&amp;lt;/error-code&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;location&amp;gt;/index.html&amp;lt;/location&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/error-page&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;lt;/web-app&amp;gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Upload /dist/app/ content to Tomcat server (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://o-dms.vmm.be/test" rel="nofollow noopener noreferrer" target="_blank"&gt;https://o-dms.vmm.be/test&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Start the server&lt;/LI&gt;&lt;LI&gt;Navigate to &lt;A href="https://o-dms.vmm.be/test" rel="nofollow noopener noreferrer"&gt;https://o-dms.vmm.be/test&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Open a document preview&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; 401 on opening a document preview&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 10:38:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12907#M5693</guid>
      <dc:creator>d_moeyersons</dc:creator>
      <dc:date>2018-09-25T10:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer causes 401 after deploy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12908#M5694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the details. We will try to reproduce it locally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile, could you please test the configuration where base href is "./" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;npm run build -- --base-href ./&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 12:22:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12908#M5694</guid>
      <dc:creator>dvuika</dc:creator>
      <dc:date>2018-09-25T12:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer causes 401 after deploy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12909#M5695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same result with --base-href ./&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 13:11:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12909#M5695</guid>
      <dc:creator>d_moeyersons</dc:creator>
      <dc:date>2018-09-25T13:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer causes 401 after deploy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12910#M5696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you could also see if you can reproduce that using ACS 6 and Tomcat 8?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2018 13:42:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12910#M5696</guid>
      <dc:creator>dvuika</dc:creator>
      <dc:date>2018-09-27T13:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer causes 401 after deploy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12911#M5697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Denys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 401 error doesn't come up with ACS 6 &amp;amp; Tomcat 8, the preview is shown.&lt;BR /&gt;It would be nice for us if ACS 5.2.3 would work too. We currently have a few reasons not to upgrade to ACS 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2018 09:34:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12911#M5697</guid>
      <dc:creator>d_moeyersons</dc:creator>
      <dc:date>2018-09-28T09:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: adf-viewer causes 401 after deploy</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12912#M5698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to hear that ACS 6 is working. You can also verify you have everything configured for the old tomcat version (&lt;A class="link-titled" href="https://angular.io/guide/deployment#server-configuration" title="https://angular.io/guide/deployment#server-configuration" rel="nofollow noopener noreferrer"&gt;Angular Docs&lt;/A&gt;) and create a support ticket to get it sorted out for 5.2.3 and tomcat 7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2018 09:47:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/adf-viewer-causes-401-after-deploy/m-p/12912#M5698</guid>
      <dc:creator>dvuika</dc:creator>
      <dc:date>2018-09-28T09:47:42Z</dc:date>
    </item>
  </channel>
</rss>

