Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-10346

HTTP redirect if both http and https socket-binding is configured for http-interface

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 7.1.0.DR16
    • Management, Undertow
    • None
    • 0
    • 0% 0%

      In case when both http and https socket-binding is configured for management http-interface and http port is accessed then server tries to redirect automatically to https port. Access http is not possible.

      It causes that it is impossible to connect to http-interface with clients which do not supports https (even if http port is provided by application server), i.e. following ModelControllerClient is not able to connect to http-interface when both http and https socket-binding is configured:

      ModelControllerClient client = ModelControllerClient.Factory
              .create(new ModelControllerClientConfiguration.Builder()
                      .setProtocol("remote+http")
                      .setPort(9990)
                      .setHostName("localhost")
                      .setConnectionTimeout(10000).build())
      

      See:

      curl -v -H 'Upgrade: jboss-remoting' http://localhost:9990
      * Rebuilt URL to: http://localhost:9990/
      * Hostname was NOT found in DNS cache
      *   Trying 127.0.0.1...
      * Connected to localhost (127.0.0.1) port 9990 (#0)
      > GET / HTTP/1.1
      > User-Agent: curl/7.38.0
      > Host: localhost:9990
      > Accept: */*
      > Upgrade: jboss-remoting
      > 
      < HTTP/1.1 302 Found
      < Connection: keep-alive
      < Location: https://localhost:9993/
      < Content-Length: 0
      < Date: Thu, 13 Apr 2017 11:59:56 GMT
      < 
      * Connection #0 to host localhost left intact
      

            Unassigned Unassigned
            olukas Ondrej Lukas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: