Bug 1131404 - Wordpress quickstart with phpmyadmin embedded will direct to a wrong page when using vhost plugin
Summary: Wordpress quickstart with phpmyadmin embedded will direct to a wrong page whe...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Rajat Chopra
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-19 08:19 UTC by Yan Du
Modified: 2015-05-14 23:37 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-10 00:50:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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