Page MenuHomePhabricator

Fix excessively severe CSP URI error during first-time setup
ClosedPublic

Authored by epriestley on Apr 21 2018, 4:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 18 2026, 7:40 AM
Unknown Object (File)
Mar 4 2026, 1:55 AM
Unknown Object (File)
Feb 6 2026, 11:59 PM
Unknown Object (File)
Jan 20 2026, 10:03 PM
Unknown Object (File)
Jan 9 2026, 2:53 PM
Unknown Object (File)
Jan 9 2026, 2:53 PM
Unknown Object (File)
Jan 8 2026, 9:10 PM
Unknown Object (File)
Dec 26 2025, 12:56 PM
Subscribers
None

Details

Summary

See D19394. Currently, during first-time setup before you configure "phabricator.base-uri", we may attempt to generate a setup page, try to generate a CSP header for it, and fail to access the environmental config. This causes a too-severe error page ("configure phabricator.base-uri") instead of preflight guidance (like "can't connect to MySQL").

Instead, treat this more like "security.alternate-file-domain" and just bail on CSP if we can't fetch it.

Test Plan

On a fresh (non-explodey laptop) install with critical setup errors (no MySQL installed yet), loaded Phabricator. Before: error about phabricator.base-uri. After: more helpful guidance about installing/configuring MySQL.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable