06-04-2018 02:18 AM
Hi,
I am using ADF 2.3.0 and ACS 5.2.1 and using <adf-content-metadata-card> component to list all properties of a node.
Also, configured contextRootEcm to use a different context in app.config.json which is
When I click on 'More Information' on the properties tab, it does not work. Checked browser console. The context does not set here whereas it perfectly works across adf application.
Not sure why this behavior, maybe context is hard-coded here. See screenshots attached for details.
Can you please check and confirm? Thanks.
06-04-2018 02:41 AM
Instead of changing the context root in the JS-API you can change the ACS url in the `app.config.json` file (ecmHost)
06-04-2018 02:56 AM
Hi Denys,
Yes, I changed both host (ecmHost) and context (contextRootEcm) in ''app.config.json'' only.
The application works absolutely fine. I am able to authenticate, navigate, perform actions on node, etc. all good.
The only thing that does not work is when I click on 'More Information' available in adf-content-metadata-card component. In the browser console, I get --404 Not Found-- and when I check the REST URL, it does not have the context as set in app.config.json. Hence, it fails.
06-04-2018 06:03 AM
Can you try only changing the ecmHost value? typically you should not be changing contextRootEcm if you have correctly configured repository URL
06-04-2018 07:38 AM
Hi Denys,
Denys Vuika Andras Popovics
I know the default context of the repository URL is 'alfresco'.
However, the context of our repository is 'alfresco/content'. This is configured based on organization standards.
Therefore, we have set the context to
Now, our adf-application works perfectly fine. Authentication, navigation, document list rendering, node actions(copy, move, delete, lock/unlock, etc) all works fine. The REST URL for these has the context as 'alfresco/content', so it renders the service fine.
But this is not the case when the application tries to get More Information in adf-metadata-card-content component.
The REST URLs built here does not take the configured context into consideration. Instead, it keeps the default.
Explore our Alfresco products with the links below. Use labels to filter content by product module.