Page MenuHomePhabricator

Fix an issue where editing paths in Owners packages could raise an error: undefined index "display"
ClosedPublic

Authored by epriestley on Nov 21 2019, 7:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 7, 7:10 AM
Unknown Object (File)
Sun, May 5, 3:40 PM
Unknown Object (File)
Fri, May 3, 5:19 AM
Unknown Object (File)
Wed, May 1, 6:26 AM
Unknown Object (File)
Sat, Apr 27, 5:50 AM
Unknown Object (File)
Thu, Apr 25, 5:25 AM
Unknown Object (File)
Thu, Apr 25, 12:51 AM
Unknown Object (File)
Tue, Apr 16, 12:07 PM
Subscribers
None

Details

Summary

Fixes T13464. Fully-realized paths have a "path" (normalized, effective path) and a "display" path (user-facing, un-normalized path).

During transaction validation we build ref keys for paths before we normalize the "display" values. A few different approaches could be taken to resolve this, but just default the "display" path to the raw "path" if it isn't present since that seems simplest.

Test Plan

Edited paths in an Owners package, no longer saw a warning in the logs.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Nov 21 2019, 7:28 PM
epriestley requested review of this revision.
This revision was automatically updated to reflect the committed changes.