Details
-
Bug
-
Resolution: Fixed
-
Low
-
4.14.12, 5.16.10, 6.7.0
-
None
-
Severity 3 - Minor
-
Description
Issue Summary
While the AuditService class file is available for apps to reference, the actual service is not OSGi-exported and cannot be used. Any app which attempts to use AuditService will fail to start.
Steps to Reproduce
- Add a <component-import/> or @ComponentImport for AuditService
Expected Results
The app successfully imports the AuditService.
Actual Results
The app fails to start with an error like the following:
[INFO] 2019-01-01 11:11:11,111 ERROR [spring-startup] c.a.plugin.osgi.factory.OsgiPlugin Plugin 'com.example.myplugin' never resolved service '&auditService' with filter '(objectClass=com.atlassian.bitbucket.audit.AuditService)'
Workaround
There is no workaround for this issue. It will require a software fix in Bitbucket Server, and any app that requires the AuditService will only be able to work when deployed to a fixed version.