Page MenuHomePhabricator

Fix an issue where Diffusion could fatal if the default branch was deleted
ClosedPublic

Authored by epriestley on Nov 30 2017, 8:35 PM.
Tags
None
Referenced Files
F13281186: D18811.diff
Sun, Jun 2, 9:50 AM
F13273932: D18811.diff
Fri, May 31, 3:03 AM
F13268283: D18811.diff
Wed, May 29, 4:52 AM
F13252041: D18811.diff
Sat, May 25, 1:01 AM
F13230292: D18811.diff
Mon, May 20, 10:31 PM
F13229142: D18811.id.diff
Mon, May 20, 2:41 PM
F13204543: D18811.diff
Wed, May 15, 12:41 AM
F13187551: D18811.diff
Sat, May 11, 4:36 AM
Subscribers
None

Details

Summary

See PHI234. In T12931 we improved the behavior of Diffusion when a repository's default branch is set to a branch that does not exist, but in T11823 the way refcursors work changed, and we can now get a cursor (just with no positions) back for a deleted branch. When we did, we didn't handle things gracefully.

Test Plan
  • Set default branch to a deleted branch, saw nice error instead of fatal.
  • Set default branch to a nonexistent branch which never existed, saw nice error.
  • Set default branch to existing "master", saw repository normally.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable