-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: bitbucket-branch-source-plugin
-
None
-
Environment:Bitbucket Branch Source Plugin, any version with only a Bitbucket Data Center endpoint registered
-
937.4.0
 Steps to reproduce:
  1. Register only a Bitbucket Data Center endpoint in Manage Jenkins → Bitbucket Endpoints
  2. Create a new Multibranch Pipeline → Add Source → Bitbucket
  3. Observe the Server URL field shows a validation error immediately on page load before interacting with the form
 Â
  Expected: No validation error on a new form
 Â
  Actual: "Unregistered Server: https://bitbucket.org" (937.2.x) or "Server is required" (current master)
 Â
  Root cause: doCheckServerUrl fires on page load before doFillServerUrlItems completes. The field value is empty at that point, converted to null by @QueryParameter(fixEmpty = true). The null guard returned an error instead of deferring validation.                Â