ist-dresden / composum-nodes

Set of Apache Sling / AEM development tools: JCR browser, user and package management and more
https://www.composum.com/home/nodes.html
MIT License
55 stars 21 forks source link

"Console assets not accessible" in AEM 6.3 after deploying composum-sling-core-package 1.8.0 #105

Closed kwin closed 7 years ago

kwin commented 7 years ago

After deploying the Composum Core Package 1.8.0 into AEM 6.3 all bundles correctly come up but still when trying to request "/bin/browser.html" I get the error "Console assets not accessible..." although the Current user is admin. I checked both /libs/jslibs and /libs/composum and they are there in the underlying Oak and do not carry additional ACLs.

kwin commented 7 years ago

The reason can be found in the log

04.08.2017 15:05:42.352 *INFO* [0:0:0:0:0:0:0:1 [1501851942333] GET /libs/composum/nodes/console/clientlibs/base.min.css HTTP/1.1] com.composum.sling.clientlibs.service.DefaultClientlibService prepare clientlib '/libs/composum/nodes/console/clientlibs/base.min.css'...
04.08.2017 15:05:42.352 *ERROR* [0:0:0:0:0:0:0:1 [1501851942333] GET /libs/composum/nodes/console/clientlibs/base.min.css HTTP/1.1] com.adobe.granite.repository.impl.SlingRepositoryImpl Bundle com.composum.core.commons is NOT whitelisted to use SlingRepository.loginAdministrative

So either the loginAdministrative should be removed and instead a service resolver should be used (preferred) or alternatively the bundle needs to be whitelisted (details in https://sling.apache.org/documentation/the-sling-engine/service-authentication.html#whitelisting-bundles-for-administrative-login).

ist-rw commented 7 years ago

The Core package is implemented to provide a wide range of Sling and AEM versions. Therefore the necessary administrative logins are currently not transformed into service users based logins. But i think we will do this in one of the next releases. Until then we have to whitelist the bundles - configuration added. Thanks for your help.

ist-rw commented 7 years ago

composum-core-1.8.1 released with a whitelist configuration embedded in the composum-core-package

ist-rw commented 7 years ago

Doe's this solve the problem? I would like close this issue.

kwin commented 7 years ago

Yes, this works now. Thanks a lot for the quick fix.