Page MenuHomeIn-Portal Phabricator

INP-1884 - Actualize "/system/config.php" created during the build
Needs ReviewPublic

Authored by alex on Sun, Nov 17, 10:52 AM.

Details

Reviewers
erik
Test Plan
  1. in a Web Browser:
    • do a clean install of In-Portal and choose to use Memcache for caching
  2. in IDE:
    1. remove contents of the core/units/helpers/xml_helper.php and core/units/helpers/xml_helper5.php files
    2. copy/paste the /tools/build/build.properties file from the /tools/build/build.properties.dist file
    3. edit /tools/build/build.properties file and make these changes:
      • set client.ip.address property to the 127.0.0.1
      • set website.domain property to the value of the $_CONFIG['Misc']['Domain'] key in /system/config.php file
      • set website.path property to the value of the $_CONFIG['Misc']['WebsitePath'] key in /system/config.php file
      • set security.security_hmac_key property to the value of the $_CONFIG['Misc']['SecurityHmacKey'] key in /system/config.php file
      • set security.security_encryption_key property to the value of the $_CONFIG['Misc']['SecurityEncryptionKey'] key in /system/config.php file
      • set db.host property to the value of the $_CONFIG['Database']['DBHost'] key in /system/config.php file
      • set db.name property to the value of the $_CONFIG['Database']['DBName'] key in /system/config.php file
      • set db.user property to the value of the $_CONFIG['Database']['DBUser'] key in /system/config.php file
      • set db.password property to the value of the $_CONFIG['Database']['DBUserPassword'] key in /system/config.php file
      • set db.collation property to the value of the $_CONFIG['Database']['DBCollation'] key in /system/config.php file
      • set db.tableprefix property to the value of the $_CONFIG['Database']['TablePrefix'] key in /system/config.php file
      • set db.charset property to the value of the $_CONFIG['Database']['DBCharset'] key in /system/config.php file
    4. copy/paste contents of the /system/config.php file somewhere to use later in a comparison procedure
  3. in CLI:
    1. delete the /system/build-schema.sql, /system/build-data.sql, /system/build-patch.sql files (if present)
    2. run the phing -f tools/build/build_all.xml db-dump command
    3. confirm, that
      1. command finished without errors
      2. the /system/build-schema.sql, /system/build-data.sql, /system/build-patch.sql files were created
    4. run the phing -f tools/build/build_all.xml build command
    5. confirm, that
      1. command finished without errors
      2. the /system/config.php file is identical to the previously remembered /system/config.php file with these exceptions:
        • the // Generated by Phing. comment is added on the next line after the <?php line
        • the $_CONFIG['Misc']['CacheHandler'] key has 'Fake' value

Diff Detail

Repository
rINP In-Portal
Branch
/in-portal/branches/5.2.x
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 1334
Build 1334: arc lint + arc unit