Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-10986

Accessing BuildStatus properties from BuildStatusSetEvents can produce unexpected nulls

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 5.13.0, 5.9.2, 5.11.2, 5.10.2, 5.12.1
    • None
    • None
    • None

    Description

      When a BuildStatusSetEvent is raised, apps which attempt to access properties on the BuildStatus it contains can receive unexpected null values from methods which are explicitly documented as not being able to return them. (BuildState seems to be the most common.)

      This issue was originally raised as Eernie/bitbucket-webhooks-plugin#88. However, nothing in how that app is using the BuildStatusSetEvent should trigger these null values. Instead, the issue appears to be related to the fact that the BuildStatus instance on the event is an ActiveObjects proxy, rather than a simple POJO.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bturner Bryan Turner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: