TWCable / grabbit

Grabbit - Fast Content Sync tool for AEM/CQ
Apache License 2.0
125 stars 64 forks source link

Grabbit won't start in AEM 6.3 because JCRJobRepository uses "admin" session #188

Open sagarsane opened 7 years ago

sagarsane commented 7 years ago

Grabbit uses admin session for the JCR JobRepository implementation. In AEM 6.3, by default you cannot connect to JCR using admin session. It will throw this exception

Caused by: org.apache.sling.api.resource.LoginException: Bundle com.twcable.grabbit is NOT whitelisted

screen shot 2017-06-13 at 12 53 18 pm

See this for more details : https://issues.apache.org/jira/browse/SLING-5135

If we want to continue to use admin for JCR JobRepository implementation, we will have to whitelist the package(s) that need it. Even better, we should come up with a way to not use admin for JCR JobRepository implementation at all. We can't really use the request session in this case, because the JobRepository connects to the JCR on bundle activation for example.

@jbornemann @jdigger

masroormohammed commented 6 years ago

Had to make an additional config update to make sure grabbit worked(to overcome the not whitelisted issue)

screen shot 2018-05-30 at 3 55 38 pm