cancel
Showing results for 
Search instead for 
Did you mean: 

/alfresco endpoint shows an incorrect link to 'Alfresco Share'

atTheBeach
Confirmed Champ
Confirmed Champ

I'm on Community 7.4.1, with a native/non-Docker install. This all works, apart from one fairly minor issue.

The dashboard endpoint (/share) is good, and the /alfresco endpoint is generally Ok. However, the /alfresco endpoint includes a  link to 'Alfresco Share', which points to https://vserver/share. This link is incorrect, and should be https://example.com/share. The other links on the Alfresco page correctly point to example.com; this is the only one which is incorrect.

Question: does anyone know how the Alfresco front page is generated? Why does 'Alfresco WebDAV', for example, correctly point to https://example.com/alfresco/webdav, while 'Alfresco Share' incorrectly points to https://vserver/share?

'vserver' is actually this system's hostname. The word 'vserver' doesn't appear anywhere in the Alfresco distribution, so something appears to be running 'hostname' and using it as the endpoint. The problem is that 'hostname' on Ubuntu is not an FQDN, and so is useless for links.

 

1 ACCEPTED ANSWER

atTheBeach
Confirmed Champ
Confirmed Champ

Fixed. In alfresco-global.properties I had set:

alfresco.host=${localname}
share.host=${localname}

I replaced ${localname} with the actual domain name.

The docs say that the "token ${localname} is automatically replaced by the domain name of the repository server." This appears to be a bug: ${localname} is actually replaced with the hostname, which doesn't include the domain name on some Linux distributions.

 

View answer in original post

1 REPLY 1

atTheBeach
Confirmed Champ
Confirmed Champ

Fixed. In alfresco-global.properties I had set:

alfresco.host=${localname}
share.host=${localname}

I replaced ${localname} with the actual domain name.

The docs say that the "token ${localname} is automatically replaced by the domain name of the repository server." This appears to be a bug: ${localname} is actually replaced with the hostname, which doesn't include the domain name on some Linux distributions.