Page MenuHomePhabricator

Fix a fatal in blame when the viewer can't see a revision because of a permission issue
ClosedPublic

Authored by epriestley on Jan 19 2018, 9:41 PM.
Tags
None
Referenced Files
F13050322: D18884.id45297.diff
Fri, Apr 19, 2:45 AM
F13050321: D18884.id45295.diff
Fri, Apr 19, 2:45 AM
F13050320: D18884.id.diff
Fri, Apr 19, 2:45 AM
F13048043: D18884.diff
Thu, Apr 18, 3:54 PM
Unknown Object (File)
Wed, Apr 17, 12:40 PM
Unknown Object (File)
Tue, Apr 16, 12:50 PM
Unknown Object (File)
Thu, Apr 11, 4:05 AM
Unknown Object (File)
Tue, Apr 2, 4:44 PM
Subscribers
None
Tokens
"Yellow Medal" token, awarded by allixsenos.

Details

Summary

Fixes T13040. To reproduce:

  • View a file with blame enabled, where some line has an associated revision (say, D123).
  • Edit D123 so it exists and is a valid revision, but the viewer can't see it.
  • Reload the page.

Instead, only add revisions to the map if we actually managed to load them.

Test Plan

Page no longer fatals.

Diff Detail

Repository
rP Phabricator
Branch
permission1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 19082
Build 25748: Run Core Tests
Build 25747: arc lint + arc unit