Alfresco WebDav hyperlink

cancel
Showing results for 
Search instead for 
Did you mean: 
oefractal
Active Member

Alfresco WebDav hyperlink

I just installed Alfresco with Docker container. Now when I try to open Excel document I get an error about hyperlink. The hyperlink looks like this: http://1eac9ad9eeaa:8080/alfresco/aos/Sites/swsdp/documentLibrary/Budget Files/budget.xml. What is strange in hyperlink is hostname part, which I expect to be localhost. Furthermore I managed to open webdav link to this file: the hyperlink was like this: http://localhost:8082/alfresco/aos/sites/swsdp/documentLibrary/Budget Files/budget.xls. So I need the port number to be changed. Is it possible to setup Alfreso to generate proper webdav hyperlink?

3 Replies
cesarista
Customer

Re: Alfresco WebDav hyperlink

Hi:

Probably it is the hostname assigned to the docker machine (which surely it is not localhost). Try to change alfresco.host variable in your docker setup, you may probably use there the IP address assigned to the docker machine.

The localhost:8082 url is a different thing, it is the url mapped of your Alfresco repo to your machine in 8082 port. If you need to change this port, you should change docker-compose yaml configuration file. Just look for 8082, and change it by a free port on your local machine. 

Regards.

--C.

oefractal
Active Member

Re: Alfresco WebDav hyperlink

Hello.

Considering alfresco.host variable, what is the actual file I need to make changes in? I found one in the config-repository.yaml file. And how to find out the IP address assigned to the docker machine?

By the way, the hostname in my hyperlink seems to be equal to docker container ID (I got one using "docker container ls" command).

cesarista
Customer

Re: Alfresco WebDav hyperlink

Hi:

They are two different things:

 1. The alfresco.host variable is part of the alfresco-global.properties file in the docker machine. You may extend your docker deployment, to change this parameter to your current IP of your docker machine, for example, usually 172.17.0.2. You can build and own docker file, or mount a docker volume for alfresco-global.properties file, even to include this var as -Dalfresco.host in JAVA_OPTS.

 2. In docker-compose.yml you may find

services:
   alfresco:
      image: alfresco/alfresco-content-repository-community:6.0.7-ga
      environment:
         JAVA_OPTS : "
            -Ddb.driver=org.postgresql.Driver
            -Ddb.username=alfresco
            -Ddb.password=alfresco
            -Ddb.url=jdbcSmiley Tongueostgresql://postgres:5432/alfresco
            -Dsolr.host=solr6
            -Dsolr.port=8983
            -Dsolr.secureComms=none
            -Dsolr.base.url=/solr
            -Dindex.subsystem.name=solr6
            -Dshare.host=localhost
            -Ddeployment.method=DOCKER_COMPOSE
            -Dcsrf.filter.enabled=false
           "
   ports:
         - 8082:8080 #Browser port

If you change to 8888:8080 you will have a localhost:8888 url for webdav.

Regards.

--C.