Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-73448

Fix NPE due to getObjectType() returns null in Audit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • Site - Audit Logs
    • None

    Description

      Issue Summary

      Not able to export Audit Logs from the Export button on UI. The download starts and it fails with the error "Failure: Network Error"

      Steps to Reproduce

      1. Go to link: https://<site>.atlassian.net/wiki/admin/auditlogging.action
      2. Click 'Export'

      Expected Results

      Audit logs should get exported. If the logs are huge, it should take time.

      Actual Results

      The Audit logs download failed after 10 seconds, after downloading 695 KB worth of file.

      Below are logs from the same time:

         url: /wiki/rest/api/audit
         level: WARN
         logger: com.atlassian.confluence.rest.api.model.ExceptionConverter   
      
         message: Could not map exception type   java.lang.NullPointerException with message 'null' to a specific REST status. Defaulting to InternalServerError
         micros_container: confluence
         product: confluence
         url: /wiki/rest/create-dialog/1.0/spaces
         logger: com.atlassian.crowd.embedded.core.CrowdServiceImpl
      
         message: CrowdServiceImpl search nested group relationships returned list with 2 size.
         product: confluence
         url: /wiki/rest/graph
         logger: com.atlassian.confluence.core.persistence.hibernate.HibernateObjectDao
        
         message: Uh oh - found more than one object when single object requested: found 2
         product: confluence

      On the UI, we can go back to approx 55 pages before the below error pops up on the screen:

      Fetch of audit logs failed, please try again.

       

      Workaround

      Currently, there is no known workaround for this behaviour.

      Attachments

        Issue Links

          Activity

            People

              jlai@atlassian.com Jacky Lai
              13f27f9b2775 Jagriti
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: