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)
Fri, Dec 20, 6:17 PM
Unknown Object (File)
Sat, Dec 14, 3:26 PM
Unknown Object (File)
Sat, Dec 7, 1:30 AM
Unknown Object (File)
Fri, Dec 6, 5:04 PM
Unknown Object (File)
Mon, Dec 2, 11:49 PM
Unknown Object (File)
Mon, Dec 2, 11:49 PM
Unknown Object (File)
Mon, Dec 2, 10:30 PM
Unknown Object (File)
Mon, Dec 2, 2:50 AM
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.