Bug 896386 - [fork][US1262] Accessing app's url will be redirected to url/app after removing ssl
Summary: [fork][US1262] Accessing app's url will be redirected to url/app after removi...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Mrunal Patel
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-17 07:44 UTC by Jianwei Hou
Modified: 2015-05-14 23:04 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-13 23:05:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
page content (358.27 KB, image/png)
2013-01-17 07:44 UTC, Jianwei Hou
no flags Details

Description Jianwei Hou 2013-01-17 07:44:46 UTC
Created attachment 680051 [details]
page content

Description of problem:
After removing ssl from an application and accessing the app's origin url, I was always redirected to the OpenShift's web console page(https://rubyapp-462t1.dev.rhcloud.com/app).
But custom domain url(alias) still works well, which shows the app's actual web page content

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

How reproducible:
Always

Steps to Reproduce:
1. Create an application with alias
2. Add ssl cert to app, access app via both url and alias should work fine
oo-ssl-cert-add --with-container-uuid 7aa82d65fb464fe48a30eb7f10c3d8c1 --with-namespace 426t3 --with-container-name py1 --with-alias-name py1.jhou.com --with-ssl-cert server.crt server.crt --with-priv-key server.key
3. Remove ssl from app
oo-ssl-cert-remove --with-container-uuid 7aa82d65fb464fe48a30eb7f10c3d8c1 --with-namespace 426t3 --with-container-name py1 --with-alias-name py1.jhou.com --with-ssl-cert server.crt server.crt --with-priv-key server.key
4. Visit app's origin url
  
Actual results:
Redirected to url/app
eg: visiting https://py1-426t3.dev.rhcloud.com/ will be redirected to https://py1-426t3.dev.rhcloud.com/app
And the webpage content is same with OpenShift web consle.

Expected results:
App should work fine.

Additional info:
The page content and the url is save and attached

Comment 1 Mrunal Patel 2013-01-17 19:27:05 UTC
Fixed in mrunalp/origin-server/dev/sni_l branch. Fix will be available in the
next fork_ami.

Comment 2 Jianwei Hou 2013-01-18 02:32:35 UTC
Verified on fork_ami_US1262_SNI_432

The app works fine after removing cert and key

Steps:
1. oo-ssl-cert-remove --with-container-name php1 --with-container-uuid c1cb7e53a57a4d759b760860eff26ee0 --with-namespace 432t --with-alias-name php1.jhou.com --with-ssl-cert server.crt  --with-priv-key server.key 
2. Visit app's origin url, still works fine


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