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

Code suggestion apply rejected by plugin: error message is unhelpful and cannot retry

      Issue Summary

      Applying the code suggestion can fail with a generic error when the FILE_EDIT hook rejects the commit. This can be caused by a custom hook or a Yet Another Commit Checker Plugin (YACC).

      Steps to Reproduce

      Check the community ticket for more details: https://community.atlassian.com/t5/Bitbucket-questions/Are-code-suggestions-broken-in-Bitbucket-7-4/qaq-p/1453200

      Expected Results

      • The displayed error message should show detailed information about the reason of rejecting commit.
      • It should be possible to apply the suggestion with a second try.

      Actual Results

      • The displayed error message doesn't give the user any clue what's the reason of the failure.
      • After the failure, the apply button is disabled and the user can't re-apply the suggestion.

      Workaround

      Disable the custom FILE_EDIT hook or disable the Yet Another Commit Checker Plugin.

          Form Name

            [BSERV-12528] Code suggestion apply rejected by plugin: error message is unhelpful and cannot retry

            Carla Baba made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Waiting for Release [ 12075 ] New: Closed [ 6 ]
            Kristy made changes -
            Fix Version/s New: 7.14.0 [ 95494 ]
            Kristy made changes -
            Status Original: In Progress [ 3 ] New: Waiting for Release [ 12075 ]
            Kristy made changes -
            Status Original: Long Term Backlog [ 12073 ] New: In Progress [ 3 ]
            Kristy made changes -
            Assignee New: Kristy [ khughes@atlassian.com ]
            Kristy made changes -
            Remote Link New: This issue links to "Bitbucket Server › Pull Request Build › bugfix-BSERV-12528-exclude-hook-veto-from-suggestion-apply-fail (server-syd-bamboo)" [ 552287 ]
            Kristy made changes -
            Remote Link New: This issue links to "Page (Confluence)" [ 552312 ]
            Carla Baba made changes -
            Attachment New: Screen Shot 2020-10-21 at 4.25.50 pm.png [ 395021 ]
            Naj Kagaoan made changes -
            Labels New: dob-pr
            Naj Kagaoan made changes -
            Status Original: Needs Triage [ 10030 ] New: Long Term Backlog [ 12073 ]

              khughes@atlassian.com Kristy
              madamczak Maciej Adamczak (Inactive)
              Affected customers:
              1 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: