<?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: Emails using wrong {shareUrl} in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/emails-using-wrong-shareurl/m-p/115065#M31947</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm testing Alfresco Community 7 and had also this issue.&lt;/P&gt;&lt;P&gt;To fix it, in &lt;STRONG&gt;alfresco-global.properties&lt;/STRONG&gt; I replaced share.host=localhost -&amp;gt; share.host=mydomain.com&lt;/P&gt;&lt;P&gt;share.context=share&lt;BR /&gt;#&lt;STRONG&gt;share.host=localhost&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;share.host=mydomain.com&lt;/STRONG&gt;&lt;BR /&gt;share.port=443&lt;BR /&gt;share.protocol=https&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 08 Dec 2021 07:08:18 GMT</pubDate>
    <dc:creator>rivorazaf</dc:creator>
    <dc:date>2021-12-08T07:08:18Z</dc:date>
    <item>
      <title>Emails using wrong {shareUrl}</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/emails-using-wrong-shareurl/m-p/115058#M31940</link>
      <description>&lt;P&gt;Basic Info:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Alfresco Community 6.2 build&lt;/LI&gt;&lt;LI&gt;Running in Bitnami image on Azure&lt;/LI&gt;&lt;LI&gt;SSL secured site with a let’s encrypt certificate successfully installed, and can use Alfresco for other things successfully.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The system generated email messages for the workflow all direct to the wrong URL. I’ve replaced the starting part of the URL with mycompanyURL, but the rest is accurate and functional.&lt;BR /&gt;&lt;A href="http://mycompanyURL.azure.com:8080/share/page/task-edit?taskId=activiti$1445" target="_blank" rel="nofollow noopener noreferrer"&gt;http://mycompanyURL.azure.com:8080/share/page/task-edit?taskId=activiti$1445&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If I override the built-in URL manually with the following, I get to the intended workflow task.&lt;BR /&gt;&lt;A href="https://mycompanyname.azure.com/share/page/task-edit?taskId=activiti$1445" target="_blank" rel="nofollow noopener noreferrer"&gt;https://mycompanyname.azure.com/share/page/task-edit?taskId=activiti$1445&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This might be a problem with more system-generated email messages, but this was the first one we encountered trying to use the outbound email setup.&lt;/P&gt;&lt;P&gt;I’m guessing this is a configuration setting, but not sure how to correct it.&lt;BR /&gt;In the /opt/bitnami/apache-tomcat/shared/classes/alfresco-global.properties I found the following but messing with those caused all kinds of system chaos, so they are back to original settings.&lt;/P&gt;&lt;P&gt;alfresco.context=alfresco&lt;BR /&gt;alfresco.host=mycompanyname.azure.com&lt;BR /&gt;alfresco.port=8080&lt;BR /&gt;alfresco.protocol=http&lt;/P&gt;&lt;P&gt;share.context=share&lt;BR /&gt;share.host=mycompanyname.azure.com&lt;BR /&gt;share.port=8080&lt;BR /&gt;share.protocol=http&lt;BR /&gt;For my setup, http and 8080 are locked down as all traffic needs to be secured via SSL. However, the above is what is the settings are in the alfresco-global.properties file are.&lt;/P&gt;&lt;P&gt;Looking at the Email Templates - Workflow Notification - the link is specified as follows:&lt;/P&gt;&lt;P&gt;${shareUrl}/page/task-edit?taskId=${args.workflowId}&lt;BR /&gt;It’s the {shareUrl} that seems to be malformed and pointing to a default setting that is not accurate. My site has to be accessed via SSL, so https via port 443 as noted above. Normally the port is not specified in the URL when using the system.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions on how to fix this would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Jason&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 12:44:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/emails-using-wrong-shareurl/m-p/115058#M31940</guid>
      <dc:creator>JasonB</dc:creator>
      <dc:date>2020-05-21T12:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Emails using wrong {shareUrl}</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/emails-using-wrong-shareurl/m-p/115059#M31941</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have you tried to change port 8080 to 443 in the global-propery file？&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 13:30:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/emails-using-wrong-shareurl/m-p/115059#M31941</guid>
      <dc:creator>ryo39</dc:creator>
      <dc:date>2020-05-21T13:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Emails using wrong {shareUrl}</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/emails-using-wrong-shareurl/m-p/115060#M31942</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Did you set the test message in the&amp;nbsp;alfresco-global.properties&lt;/P&gt;&lt;PRE&gt;# Outbound Mail test message on system start up show mail subsystem up.
mail.testmessage.to= myname@mydomain.com
mail.testmessage.send=true
mail.testmessage.subject=Outbound SMTP Alfresco
mail.testmessage.text=The Outbound SMTP email subsystem is working&lt;/PRE&gt;&lt;P&gt;If you don't receive taht message when you start the system, no need to go further...&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 14:27:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/emails-using-wrong-shareurl/m-p/115060#M31942</guid>
      <dc:creator>opsys</dc:creator>
      <dc:date>2020-05-21T14:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Emails using wrong {shareUrl}</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/emails-using-wrong-shareurl/m-p/115061#M31943</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/81119"&gt;@ryo39&lt;/A&gt;&amp;nbsp;Too simplistic - just changing the port number creates a protocol mismatch.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 15:36:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/emails-using-wrong-shareurl/m-p/115061#M31943</guid>
      <dc:creator>JasonB</dc:creator>
      <dc:date>2020-05-21T15:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Emails using wrong {shareUrl}</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/emails-using-wrong-shareurl/m-p/115062#M31944</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/81779"&gt;@opsys&lt;/A&gt;&amp;nbsp;- Outbound messages are sending/receiving properly, that how I know the links are malformed.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 15:37:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/emails-using-wrong-shareurl/m-p/115062#M31944</guid>
      <dc:creator>JasonB</dc:creator>
      <dc:date>2020-05-21T15:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Emails using wrong {shareUrl}</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/emails-using-wrong-shareurl/m-p/115063#M31945</link>
      <description>&lt;P&gt;To resolve the issue, I decided to run a series of experiments on the system. Thankfully, it’s not in production yet, as some of these made the system widely unstable.&lt;/P&gt;&lt;P&gt;Each of the following experiments consisted of changes to the global.properties file.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Experiment 1&lt;/STRONG&gt;&lt;BR /&gt;alfresco.port=8080 (default)&lt;BR /&gt;alfresco.protocol=http (default)&lt;BR /&gt;share.port=443 (changed)&lt;BR /&gt;share.protocol=http (default)&lt;BR /&gt;&lt;STRONG&gt;Results&lt;/STRONG&gt;&lt;BR /&gt;Alfresco Site seems to work.&lt;BR /&gt;Emails now include:&lt;BR /&gt;&lt;A href="http://mycompanyURL.azure.com:443/share/page/task-edit?taskId=activiti$1647" target="_blank" rel="nofollow noopener noreferrer"&gt;http://mycompanyURL.azure.com:443/share/page/task-edit?taskId=activiti$1647&lt;/A&gt;&lt;BR /&gt;Clicking on that links send me to a “400 Bad Request” error page&lt;BR /&gt;You can’t mismatch 443 with http. You either change both or neither of them.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Experiment 2&lt;/STRONG&gt;&lt;BR /&gt;alfresco.port=8080 (default)&lt;BR /&gt;alfresco.protocol=http (default)&lt;BR /&gt;share.port=443 (changed)&lt;BR /&gt;share.protocol=https (changed)&lt;BR /&gt;&lt;STRONG&gt;Results&lt;/STRONG&gt;&lt;BR /&gt;Alfresco Site seems to work.&lt;BR /&gt;Emails now include:&lt;BR /&gt;&lt;A href="https://mycompanyURL.azure.com/share/page/task-edit?taskId=activiti$1747" target="_blank" rel="nofollow noopener noreferrer"&gt;https://mycompanyURL.azure.com/share/page/task-edit?taskId=activiti$1747&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Experiment 3&lt;/STRONG&gt;&lt;BR /&gt;alfresco.port=8080 (default)&lt;BR /&gt;alfresco.protocol=http (default)&lt;BR /&gt;share.port= (changed)&lt;BR /&gt;share.protocol=https (changed)&lt;BR /&gt;&lt;STRONG&gt;Results&lt;/STRONG&gt;&lt;BR /&gt;Alfresco Site becomes completely unstable, with the top frame showing the following error.&lt;BR /&gt;An error has occured in the Share component: /share/service/components/dashlets/my-sites.&lt;BR /&gt;It responded with a status of 500 - Internal Error.&lt;BR /&gt;Error Code Information: 500 - An error inside the HTTP server which prevented it from fulfilling the request.&lt;BR /&gt;Error Message: 04210001 Failed to execute script 'classpath*:alfresco/site-webscripts/org/alfresco/components/dashlets/my-sites.get.js': 04210000 04210001 Failed during processing of IMAP server status configuration from Alfresco: 04210000 Unable to retrieve IMAP server status from Alfresco: 401&lt;BR /&gt;Server: Alfresco Spring WebScripts - v7.10.0 schema 1,000&lt;BR /&gt;Time: May 21, 2020, 2:55:55 PM&lt;BR /&gt;Your request could not be processed at this time. Please contact your system administrator for further information.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Final Commentary:&lt;/STRONG&gt;&lt;BR /&gt;I had also tried other variations that caused the system to be unstable or not have the desired result. Do not mess with the alfresco.port or alfresco.protocol ports, despite the mismatch from the systems SSL requirements. The key seems to be the following:&lt;BR /&gt;&lt;EM&gt;share.port=443 (changed)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;share.protocol=https (changed)&lt;/EM&gt;&lt;BR /&gt;That is not the most obvious change combination, as somewhere in the code when you specify https, it automatically hides the port from being added to the URL. I did not see that combination in the documentation anywhere I could find. This combination is important when securing the site with SSL, as without it, all the emails sent from the system have the wrong link.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 15:42:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/emails-using-wrong-shareurl/m-p/115063#M31945</guid>
      <dc:creator>JasonB</dc:creator>
      <dc:date>2020-05-21T15:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Emails using wrong {shareUrl}</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/emails-using-wrong-shareurl/m-p/115064#M31946</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/81800"&gt;@JasonB&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Glad you resolved your issue &amp;amp; thanks for providing your solution - helpful to other users.&lt;/P&gt;
&lt;P&gt;Cheers,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 09:48:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/emails-using-wrong-shareurl/m-p/115064#M31946</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-05-22T09:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Emails using wrong {shareUrl}</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/emails-using-wrong-shareurl/m-p/115065#M31947</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm testing Alfresco Community 7 and had also this issue.&lt;/P&gt;&lt;P&gt;To fix it, in &lt;STRONG&gt;alfresco-global.properties&lt;/STRONG&gt; I replaced share.host=localhost -&amp;gt; share.host=mydomain.com&lt;/P&gt;&lt;P&gt;share.context=share&lt;BR /&gt;#&lt;STRONG&gt;share.host=localhost&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;share.host=mydomain.com&lt;/STRONG&gt;&lt;BR /&gt;share.port=443&lt;BR /&gt;share.protocol=https&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 07:08:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/emails-using-wrong-shareurl/m-p/115065#M31947</guid>
      <dc:creator>rivorazaf</dc:creator>
      <dc:date>2021-12-08T07:08:18Z</dc:date>
    </item>
  </channel>
</rss>

