Uploaded image for project: 'Bitbucket Server'
  1. Bitbucket Server
  2. BSERV-11993

AuditService is not available for apps

    XMLWordPrintable

    Details

      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

      1. 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.

        Attachments

          Activity

            People

            Assignee:
            mgoyal2@atlassian.com Manish
            Reporter:
            bturner Bryan Turner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: