Bug 971895 - PHP cart now serves index.php in preference to index.html in PROD
Summary: PHP cart now serves index.php in preference to index.html in PROD
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Mrunal Patel
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-07 14:05 UTC by Clayton Coleman
Modified: 2015-05-14 23:21 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-11 04:18:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Clayton Coleman 2013-06-07 14:05:25 UTC
My app before and after V2 has changed - it's a PHP app with all the content in index.html, but it still has an index.php.

aws2012-claytondev.rhcloud.com

Earlier (I believe immediately prior to this release) index.html was being served in favor of index.php.  Now, index.php is being served.

This may break an unspecified number of apps like mine - essentially reveal JS static pages built in the PHP cart, relying on index.html to be the default.

The workaround is to delete index.php, but we need to know how many users this has effected and potentially revert the behavior.

Comment 2 Meng Bo 2013-06-09 03:10:05 UTC
Checked on devenv-stage_369,

Both index.html and index.php can be detected when access the app home page for php app.

Move bug to verified.

Comment 3 Jianwei Hou 2013-06-09 08:52:27 UTC
Verified this with v2 -> v2 migration, since devenv-stage_365 ami is wiped out from EC2, have to upgrade from devenv-stage_353 to 369, migrate from v1 to v2. Recreate the bug manually and fix it with migration

Steps(after instance is upgraded to devenv-stage_369 and cartridges are migrated to v2):
add index.php and index.html files to php/ under app repo, make contents of two files different and identical
1. On node, modify the php/env/OPENSHIFT_PHP_IDENT , change value:
redhat:php:5.3:0.0.2 => redhat:php:5.3:0.0.1
2. Edit php/configuration/etc/conf.d/php.conf , set value as:
DirectoryIndex index.php
3. Restart app and access the url --> should get the index.php page
4. rhc-admin-migrate --version 2.0.28a
5. After migration is complete, ssh into gear, check the contents in php/configuration/etc/conf.d/php.conf
DirectoryIndex index.html index.php
6. Access app url

Result:
After step 6, get the index.html page


Note You need to log in before you can comment on or make changes to this bug.