Page MenuHomePhabricator

Fix excessively harsh validation of certain complex configuration
ClosedPublic

Authored by epriestley on Jan 11 2016, 10:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 17, 1:32 PM
Unknown Object (File)
Mon, Dec 30, 2:07 PM
Unknown Object (File)
Mon, Dec 30, 11:44 AM
Unknown Object (File)
Fri, Dec 27, 6:25 PM
Unknown Object (File)
Dec 21 2024, 8:50 AM
Unknown Object (File)
Dec 21 2024, 5:43 AM
Unknown Object (File)
Dec 20 2024, 6:26 PM
Unknown Object (File)
Dec 19 2024, 4:43 PM
Subscribers
None

Details

Summary

See IRC. We're supposed to repair configuration, but if custom validators throw a generic Exception or use PhutilTypeSpec to do a check, we may explode way harder than we intend to.

Instead, soften these exceptions into validation exceptions so we repair configuration, raise a setup issue, and continue.

Test Plan

Screen Shot 2016-01-11 at 2.16.15 PM.png (1×3 px, 385 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Fix excessively harsh validation of certain complex configuration.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Jan 11 2016, 10:19 PM
epriestley edited edge metadata.
  • "convert" instead of "conver"
This revision was automatically updated to reflect the committed changes.