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
Create a version controlled project
Create a new branch and select it in the UI
Delete the new branch
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.
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
Error and Stacktrace
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