Bug 1131404

Summary: Wordpress quickstart with phpmyadmin embedded will direct to a wrong page when using vhost plugin
Product: OpenShift Online Reporter: Yan Du <yadu>
Component: ContainersAssignee: Rajat Chopra <rchopra>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: jhonce, jokerman, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-10 00:50:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yan Du 2014-08-19 08:19:57 UTC
Description of problem:

When visiting the homepage of Wordpress quickstart which has phpmyadmin added, it will redirect to a wrong page when using vhost frontend plugin


Wordoress without phpmyadmin embedded could not reproduce the issue



Version-Release number of selected component (if applicable):
devenv_5089



How reproducible:
always



Steps to Reproduce:

1. Create wordpress quickstart
# rhc app create wordpress54 php-5.4 mysql-5.1 phpmyadmin --from-code=https://github.com/openshift/wordpress-example

2. Change to use vhost plugin

3. Access the app by http://$app-url/ and https://$app-url/




Actual results:

3.1 Access the app by http: direct to a wrong page (http://wordpress54-librat29.dev.rhcloud.com/phpmyadminwp-admin/install.php)

3.2 Access the app by https: app could show normally (direct to the right page http://wordpress54-librat29.dev.rhcloud.com/wp-admin/install.php)

3.3 After configured worpdress according the mainpage of the app, then access http://$app-url/ again, app will not direct to the wrong page.





Expected results:
Wordpress will direct to http://$app-url/wp-admin/install.php when access http://$app-url/ in vhost plugin mode




Additional info:
Wordpress work well by accessing the app with http/https when using mod-rewrite mode

Comment 1 Rajat Chopra 2014-08-19 19:54:32 UTC
Fix with https://github.com/openshift/origin-server/pull/5727
This fix potentially breaks bz1073022. Need to verify.

Comment 2 Rajat Chopra 2014-08-19 21:08:22 UTC
So, it turns out bz1073022 has been broken anyway because of jenkins version upgrade. Worse, we cannot do anything until we upgrade Apache to a version >= 2.2.18 (we are .15). 

Once apache is upgrade, we need to put this option :
AllowEncodedSlashes NoDecode

And everything should fall in place.


Meanwhile, this bug should have the fix work nicely as in comment#1

Comment 3 Yan Du 2014-08-20 05:54:58 UTC
Test on devenv_5095

Issue could not be reproduced. wordpress direct to the right page after using vhost plugin.

Move to verified.