Dear Apache Sling Team,

Jackrabbit Oak has internal dependencies on the
org.apache.jackrabbit.oak.api.ContentRepository service. For instance, the
registration of
org.apache.jackrabbit.oak.spi.security.authentication.external.impl.jmx.SynchronizationMBean
will not occur if a ContentRepository service is unavailable (see link
<https://github.com/apache/jackrabbit-oak/blob/b5c317af752b3c421c9d341a7cfca407dff29af5/oak-auth-external/src/main/java/org/apache/jackrabbit/oak/spi/security/authentication/external/impl/ExternalLoginModuleFactory.java#L203-L206>
).

However, the sling-org-apache-sling-jcr-oak-server bundle, which is
responsible for repository initialization and initializes the
ContentRepository object, does not register it as a ContentRepository
service type.

What are your thoughts on changing this as demonstrated in my proof of
concept: link
<https://github.com/apache/sling-org-apache-sling-jcr-oak-server/compare/master...ciechanowiec:sling-org-apache-sling-jcr-oak-server:poc-content-repo-registration>?
The change appears to be very simple, and I can submit a pull request once
I receive confirmation that it is worth considering.
Kind regards,

Herman Ciechanowiec
her...@ciechanowiec.eu

Reply via email to