1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 11:22:40 +01:00
phorge-phorge/src/applications/config
epriestley ffdc082852 Add a wide range of HTTP-request-based setup checks
Summary:
Ref T11553. With some regularity, users make various configuration mistakes which we can detect by making a request to ourselves.

I use a magical header to make this request because we want to test everything else (parameters, path).

  - Fixes T4854, probably. Tries to detect mod_pagespeed by looking for a header. This is a documentation-based "fix", I didn't actually install mod_pagespeed or formally test this.
  - Fixes T6866. We now test for parameters (e.g., user somehow lost "QSA").
  - Ref T6709. We now test that stuff is decoded exactly once (e.g., user somehow lost "B").
  - Fixes T4921. We now test that Authorization survives the request.
  - Fixes T2226. Adds a setup check to determine whether gzip is enabled on the web server, and attempts to enable it at the PHP level.
  - Fixes `<space space newline newline space><?php` in `preamble.php`.

Test Plan: Tested all of these setup warnings, although mostly by faking them.

Reviewers: joshuaspence, chad

Reviewed By: chad

Subscribers: Korvin

Maniphest Tasks: T4854, T4921, T6709, T6866, T11553, T2226

Differential Revision: https://secure.phabricator.com/D12622
2016-12-08 15:46:23 -08:00
..
application Update SchemaQuery and the web UI to accommodate multiple master databases 2016-11-12 16:36:52 -08:00
check Add a wide range of HTTP-request-based setup checks 2016-12-08 15:46:23 -08:00
constants Redesign Config Application 2016-08-29 15:49:49 -07:00
controller When we "discover" new fatal setup issues, stop serving traffic 2016-11-21 15:54:40 -08:00
custom Make new logo and wordmark more reasonably configurable by human users 2016-08-07 12:00:21 -07:00
editor Allow bin/config to affect database configuration and migrate between local and database configuration 2014-10-08 16:15:05 -07:00
engine When we "discover" new fatal setup issues, stop serving traffic 2016-11-21 15:54:40 -08:00
exception Apply some autofix linter rules 2014-09-10 06:55:05 +10:00
issue Clean up another insufficiently-general exception 2016-11-23 10:41:19 -08:00
json Improve UI formatting of some configuration values 2015-12-05 09:58:47 -08:00
management Add a "--force" argument to "bin/config done" 2016-12-01 13:53:33 -08:00
module Split setup checks into "preflight" and "normal" checks 2016-09-06 11:57:18 -07:00
option Add IPv6 reserved addresses to the default outbound blacklist 2016-12-05 11:20:13 -08:00
phid Mark PhabricatorPHIDType::getPHIDTypeApplicationClass() as abstract 2015-11-03 06:47:12 +11:00
query Make buildWhereClause() a method of AphrontCursorPagedPolicyAwareQuery 2015-04-20 10:06:09 -07:00
response Add a friendlier "in flight" error page 2016-09-07 06:59:48 -07:00
schema Prepare for InnoDB FULLTEXT support 2016-11-25 15:18:26 -08:00
storage Add "Manual Activities", to tell administrators to rebuild the search index 2016-11-30 11:23:54 -08:00
view Run all minor setup checks on all configured database hosts 2016-11-21 15:55:54 -08:00