[jboss-jira] [JBoss JIRA] Commented: (AS7-1289) Unnecessary URL reconstruction in management console
Takayoshi Kimura (JIRA)
jira-events at lists.jboss.org
Tue Jul 19 21:36:23 EDT 2011
[ https://issues.jboss.org/browse/AS7-1289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615307#comment-12615307 ]
Takayoshi Kimura commented on AS7-1289:
---------------------------------------
With this fix we redirect to provided Host header address. If no Host header, use management interface address.
$ curl -H"Host: ext.example.com:19990" -v http://127.0.0.1:9990/console/
* About to connect() to 127.0.0.1 port 9990 (#0)
* Trying 127.0.0.1... connected
* Connected to 127.0.0.1 (127.0.0.1) port 9990 (#0)
> GET /console/ HTTP/1.1
> User-Agent: curl/7.21.3 (x86_64-redhat-linux-gnu) libcurl/7.21.3 NSS/3.12.10.0 zlib/1.2.5 libidn/1.19 libssh2/1.2.7
> Accept: */*
> Host: ext.example.com:19990
>
< HTTP/1.1 302 Temporary Redirect
< Transfer-encoding: chunked
< Content-type: text/html
< Location: http://ext.example.com:19990/console/index.html
< Date: Wed, 20 Jul 2011 01:24:23 GMT
<
* Connection #0 to host 127.0.0.1 left intact
* Closing connection #0
$ curl -v http://localhost:9990/console/
* About to connect() to localhost port 9990 (#0)
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 9990 (#0)
> GET /console/ HTTP/1.1
> User-Agent: curl/7.21.3 (x86_64-redhat-linux-gnu) libcurl/7.21.3 NSS/3.12.10.0 zlib/1.2.5 libidn/1.19 libssh2/1.2.7
> Host: localhost:9990
> Accept: */*
>
< HTTP/1.1 302 Temporary Redirect
< Transfer-encoding: chunked
< Content-type: text/html
< Location: http://localhost:9990/console/index.html
< Date: Wed, 20 Jul 2011 01:24:39 GMT
<
* Connection #0 to host localhost left intact
* Closing connection #0
> Unnecessary URL reconstruction in management console
> -----------------------------------------------------
>
> Key: AS7-1289
> URL: https://issues.jboss.org/browse/AS7-1289
> Project: Application Server 7
> Issue Type: Bug
> Components: Console
> Affects Versions: 7.0.0.Final
> Reporter: Takayoshi Kimura
> Assignee: Takayoshi Kimura
> Priority: Minor
>
> Management console redirects "/console" to "/console/index.html"and it reconstructs URL from management interface definition.
> ext.example.com:9990/console -> local.example.com:9990/console/index.html
> This URL reconstruction is not necessary and it's better to keep current URL server/port values.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list