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

Bitbucket can send 'null' as the email address when notifying Jira about new commits

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 6.3.2
    • Fix Version/s: 6.5.2
    • Component/s: None
    • Labels:
      None

      Description

      Issue Summary

      When Bitbucket communicates with Jira about one or several commits that are linked to an issue, Bitbucket can sometimes send the field initiator:email as 'null'. This behaviour can cause an unexpected error in Jira as it always expects a value for that field.

      Steps to Reproduce

      This issue has only been reproduced on repositories that use the SVN Mirror for Bitbucket Server app. For some reason, the commits can be created with missing fields and then Bitbucket sends those commits to Jira with missing data.

      Synthetic reproduction: This issue can be reproduced by manually setting "email" field into null in cwd_user table. The actual reason why "SVN Mirror for Bitbucket Server" causes Bitbucket to  report commits in the way it does is still unknown.

      Expected Results

      When there is a situation where a commit does not contain an email address linked to it, Bitbucket should send an empty collection instead.

      Actual Results

      Bitbucket is sending the initiator email field as collection with single 'null' element.

      Workaround

      No workaround

        Attachments

          Activity

            People

            Assignee:
            khughes@atlassian.com Kristy
            Reporter:
            malonso@atlassian.com Miguel Alonso
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: