wls-eng / arm-oraclelinux-wls

Microsoft Azure ARM Templates to create Oracle Linux VM with pre-installed Weblogic Server
Apache License 2.0
0 stars 7 forks source link

Bad redirection to admin console if using a DNS label starts with "console" #282

Open galiacheng opened 3 years ago

galiacheng commented 3 years ago

Configuring custom DNS to admin console with label consoletest030122, admin console url was http://consoletest030122.wlseng-azuretest.com:7001.

Accessed admin console with that url.

When clicking second level menu (deployments), the request will append a hostname as prefix again. Like:

http://consoletest030122.wlseng-azuretest.com:7001/consoletest030122.wlseng-azuretest.com:7001/console/console.portal?_nfpb=true&_pageLabel=AppDeploymentsControlPage&AppDeploymentsControlPortlethandle=com.bea.console.handles.JMXHandle%28%22com.bea%3AName%3Dwlsd%2CType%3DDomain%22%29
galiacheng commented 3 years ago

Use an existing sub domain name to deploy a new DNS record, may cause redirecting issue. We need to update doc about this issue.

galiacheng commented 3 years ago

If we use a record name starting with console, also cause bad redirection.

The following PRs changed default value of admin console label to admin instead of console

We need to check this with oracle team.

galiacheng commented 3 years ago

Hello @sanjaymantoor this is the issue.

sanjaymantoor commented 3 years ago

I am able to reproduce the issue. Steps to recreate: 1) Deploy the offer with existing DNS zone 2) Once deployed access admin console using DNS zone set name 3) Click on any left side options like Deployments under Domain tree Links are set with appended host:7002 console again. Looking at below example.

https://**consoletest.wlseng-azuretest.com:7002**/**consoletest.wlseng-azuretest.com:7002**/console/con[…]com.bea%3AName%3DadminDomain%2CType%3DDomain%22%29