cancel
Showing results for 
Search instead for 
Did you mean: 

Direct Access URL is not working / cannot be enabled

kkostis
Champ in-the-making
Champ in-the-making

Hi,

I started using the Community Edition of Alfresco by following the Docker compose method on your Docs.

My intention is to upload files via REST and then generate a link so that can download them without any authentication.

According to Docs, I should use the API that generated the direct access url. Correct?

In the meantime, if I use the Discovery API, I see that directAccessUrl is not enabled.

image

After reading docs, I tried to modify the docker-compose file in order to add to JAVA_OPTS the below configuration:

        -DrestApi.directAccessUrl.enabled=true
        -Dsystem.directAccessUrl.enabled=true
        -Dsystem.directAccessUrl.defaultExpiryTimeInSec=9999
        -Dsystem.directAccessUrl.maxExpiryTimeInSec=9999
 
But even after adding these lines, again in Discovery API the result is the same, and when I try to request direct access url for a specific file it returns 501.
 
Could you please assist?
2 REPLIES 2

hsdntknw
Champ on-the-rise
Champ on-the-rise

i have same issue

configured system.directAccessUrl.enabled=true and restApi.directAccessUrl.enabled=true in alfresco-global.properties

sanjaybandhaniya
Elite Collaborator
Elite Collaborator

I dont think default content store supporting this feature. Please correct If I am wrong.