OctopusDeploy / Issues

| Public | Bug reports and known issues for Octopus Deploy and all related tools
https://octopus.com
161 stars 20 forks source link

Unable to modify runbooks when last selected branch was deleted #8947

Open KennethBates opened 3 months ago

KennethBates commented 3 months ago

Severity

One report with a workaround

Version

2024.3.8336

Latest Version

None

What happened?

If the last selected branch on a version controlled project is deleted, you're unable to modify/run runbooks and are greeted with the below error.

Reproduction

  1. Create a version controlled project
  2. Create a new branch and select it in the UI
  3. Delete the new branch
  4. Try to access and modify a runbook

Error and Stacktrace

An unexpected error occurred in Octopus v2024.3.8336: Cannot read properties of null (reading 'Links')
TypeError: Cannot read properties of null (reading 'Links')
Eo.get (https://octopus-operations.octopus.app/vendor.aeaac2d1c4576f2c09fc.hashedasset.js:2:1590058)
https://octopus-operations.octopus.app/app-main.abc51b32e004431d3bff.hashedasset.js:2:4091866
https://octopus-operations.octopus.app/app-main.abc51b32e004431d3bff.hashedasset.js:2:4091877
HJe.<anonymous> (https://octopus-operations.octopus.app/app-main.abc51b32e004431d3bff.hashedasset.js:1:403586)
<computed> [as doBusyTaskInternal] (https://octopus-operations.octopus.app/app-main.abc51b32e004431d3bff.hashedasset.js:1:274764)
https://octopus-operations.octopus.app/app-main.abc51b32e004431d3bff.hashedasset.js:1:403105
https://octopus-operations.octopus.app/app-main.abc51b32e004431d3bff.hashedasset.js:2:4091802
cl (https://octopus-operations.octopus.app/vendor-react.fcf82edac725d6c3de08.hashedasset.js:2:209540)
Ps (https://octopus-operations.octopus.app/vendor-react.fcf82edac725d6c3de08.hashedasset.js:2:228445)
t.unstable_runWithPriority (https://octopus-operations.octopus.app/vendor.aeaac2d1c4576f2c09fc.hashedasset.js:2:1293498)
Git repository error
There was an error retrieving the variables from the Git repository. The runbook can not be published until the error is resolved.

More Information

Report (private): https://octopus.zendesk.com/agent/tickets/197554 Related issue on the Triggers page: https://github.com/OctopusDeploy/Issues/issues/8273

Workaround

  1. Navigate to a version controlled page and switch to an existing branch.
  2. Restore the deleted branch.